andre.bonkowski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Sep-20 22:48 UTC
Not receiving form data using form_remote_for
Hi.
I''m having a problem that I am sure there is a simple solution for, but
I can''t see it.
I have the following partial:
<% form_for :time_entry, TimeEntry.new,
:url => hash_for_time_entries_url(:period => @period, :action =>
''new''),
:html => { :id => ''time-entry-form'' } do |f| %>
<table border="0" cellspacing="0"
cellpadding="5" width="100%">
<tr>
<td><label
for="time_entry_hours">Timer:</label></td>
<td><%= f.text_field(''hours'', :size => 4, :value
=> entry.hours)
-%></td>
<td><label
for="time_entry_decription">Beskrivelse:</label></td>
<td><%= f.text_field(''description'', :size => 40,
:value =>
entry.description)-%></td>
<td id=''submit''> <%= submit_tag
''Lagre'' %></td>
</tr>
</table>
<% end %>
On submit I receive: Parameters:
{"time_entry"=>{"description"=>"Test",
"hours"=>"10"}, "commit"=>"Lagre",
"period"=>"3", "action"=>"new",
"controller"=>"period"} as I expected but when changing
the form_for to
form_remote_for I only receive this:
Parameters: {"period"=>"3",
"action"=>"new",
"controller"=>"period"}
Does anyone have a clue what I am missing here?
Thanks, Andrè
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
try to remote all the table stuff. I have the same here but don''t yet know why it behaves like this. marcel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
rake rails:update seemed to fix the problem. André -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---