Displaying 3 results from an estimated 3 matches for "for_for".
Did you mean:
form_for
2008 Nov 15
0
form_tag with the new template
...ges
new.html.erb looks like this
<% form_tag :controller=> "languages", :action => "create" do %>
Language <%= text_field_tag "language" %>
<%= submit_tag "Create" %>
<% end %>
Instead of
<% for_for(@language) |f| do %>
Language<%= f.text_field :language %>
<% f.submit "create" %>
<% end %>
Any reason this should not route properly.
I get a 500 Internal server error?
--~--~---------~--~----~------------~-------~--~----~
You received this message be...
2006 Nov 04
0
Controller don''t receives form parameters using form_remote_for
...t;=>{"description"=>"Test",
"hours"=>"10"}, "commit"=>"Lagre", "period"=>"3", "action"=>"new",
"controller"=>"period"} as I expected but when changing the for_for to
form_remote_for I only receive this:
Parameters: {"period"=>"3", "action"=>"new", "controller"=>"period"}
Does anyone see what I''m missing here?
Thanks, Andr?
--
Posted with http://DevLists.com. Sign up and s...
2010 Feb 20
23
Rails 3 possible bug in Routing
Hi, I just ran into this ActionController::RoutingError and just
wanted to check if someone can confirm this as a bug in the Rails 3
beta gem.
config/routes.rb contains:
get ''login'' => ''session#new''
post ''login'' => ''session#create'', :as => :login
GET /login works fine:
Started GET