[Rails] Re: Executing action without reloading
That was actually my first try and it didn't result...I changed the
form tag for "form_remote_tag" and got the folloowing form tag
generated:
<form action="/concepts/sendContactMail/0?
property_id=18&type_id=3" method="post" onsubmit="new
Ajax.Request('/concepts/sendContactMail/0?
property_id=18&type_id=3', {asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;">
But the page is still reloaded.
On 11 ene, 14:34, Me <chabg...@gmail.com> wrote:
> Get it out of the hash, it is a stand alone value.
>
> <% form_for :support, @support, :url => { :controller =>
> "concepts", :action => "sendContactMail", :id => 0, :type_id =>
> @contactType.id, :property_id => @property.id }, :remote =>
> true do |fContact| %>
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home