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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Ajax in ruby on rails
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password