[Rails] form_remote_tag and doesn't pass params ?

Wed, 11 Feb 2009 01:28:56 -0800

Hello,

This code works as expected:

<% form_remote_tag(:url => {:action => 'create_ajax'}) do %>

Referencia <%= text_field 'expedient', 'reference' %><br/>

<%= submit_tag 'Send Email' %>

<% end %>

Processing ExpedientsController#create_ajax (for 127.0.0.1 at 2009-02-11
10:21:15) [POST]
  Session ID: d0862b3026b383198421acc44e03749c
  Parameters: {"expedient"=>{"reference"=>"1234"}, "commit"=>"Send
Email",
"authenticity_token"=>"fee980baf3cb7450236dd32e8a25dd0f0eb3911f"}



But, if I want to add a <table><tr><td>... for the input fields, RoR
doesn't receive the params, this code doesn't work:

<% form_remote_tag(:url => {:action => 'create_ajax'}) do %>

<table class="edit">
<tr><td>referencia</td><td><%= text_field 'expedient', 'reference' %><%=
submit_tag 'Send Email' %></td></tr>
</table>

<% end %>

Processing ExpedientsController#create_ajax (for 127.0.0.1 at 2009-02-11
10:21:55) [POST]
  Session ID: d0862b3026b383198421acc44e03749c
  Parameters: {"commit"=>"Send Email",
"authenticity_token"=>"fee980baf3cb7450236dd32e8a25dd0f0eb3911f"}



I can't see any strange code in the source html resultant page ...

any ideas ?

thanks!

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

Reply via email to