Hi Sharanya Suresh
This you can also do with only a slight modification to
submit_to_remote like
<%= submit_to_remote 'create', 'Create', :url => {:action => 'create'},
:update => {:success => 'success_div', :failure => 'failure_div'} %>
No other change in controller So for example
if @design.save
#do this
else
#do if fail
end
Sijo
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---