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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---