Ok, let's see. My form declaration is:
<% form_for :support, @support, :url => { :controller =>
"concepts", :action => "sendContactMail", :id => 0, :type_id =>
@contactType.id, :property_id => @property.id, :remote => true } do |
fContact| %>
   .....
   <%= fContact.submit "Enviar mensaje", :onclick => "return
validateInterestedForm();" %>
<% end %>

Setting the remote as shown above doesn't seems to work, what would be
the right form?
Another question, in the action that will be executed (senContactMail)
must I set something special (I guess I have to remove the redirect_to
but is there anything else I have to do?).

Thanks for your help, I never used AJAX before and am actually quite
interested in learning how to use it.

On 11 ene, 14:15, Me <[email protected]> wrote:
> Same syntax in the form.  
>
> form_for @whatever, :remote => true
>
> submit_tag

-- 
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.

Reply via email to