Forum: Ruby on Rails form_remote_tag and <table> doesn't pass params ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D48be99143e13e40d1c44a4da63a53f4?d=identicon&s=25 Mongeta 99 (raimon)
on 2009-02-11 10:28
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.
This topic is locked and can not be replied to.