[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ajax in ruby on rails

Saravanankumar Saru

3/20/2007 6:30:00 AM

Hi,
I have user model & a method to edit it.
Using normal ruby with html, i did it.
But, using ajax i want to submit the page.

I know there is a tag
"<%=form_remote_tag %> "
But, already i've used
"<% form_for :user ...%>

I want to submit the page using ajax.
Is it possible? If, it is, please help me to how to do it?

Thanks.

--
Posted via http://www.ruby-....

1 Answer

Deepak kumar Shivhare

3/20/2007 6:42:00 AM

0

Saravanankumar Saravanan wrote:
> Hi,
> I have user model & a method to edit it.
> Using normal ruby with html, i did it.
> But, using ajax i want to submit the page.
>
> I know there is a tag
> "<%=form_remote_tag %> "
> But, already i've used
> "<% form_for :user ...%>
>
> I want to submit the page using ajax.
> Is it possible? If, it is, please help me to how to do it?
>
> Thanks.

Hello,

Check it out the following link. May it will help you.

http://blog.invisible.ch/files/rails-reference-1.1.htm...

and
Having multiple submit buttons is fairly easy with a regular form_for
tag. You merely create your submit buttons like below.


<%= submit_tag "Send", :name => "send_button" %>
<%= submit_tag "Save Draft", :name => "draft_button" %>

Thanx
Deepak
http://www...

--
Posted via http://www.ruby-....