search for: equipment_path

Displaying 2 results from an estimated 2 matches for "equipment_path".

2009 Jul 01
1
form_for resources with :singular specified
...ng "Only get and post requests are allowed. (ActionController::MethodNotAllowed)" I tried: - form_for @equipment, equipment_instance_path(@equipment) do |f| That gives the same error. There has to be something better than: - form_for @equipment, :url => (@equipment.new_record? ? equipment_path : equipment_instance_path(@equipment)), :html => (@equipment.new_record? ? { :method => :post } : { :method => :put }) do |f| Why does Rails not introspect correctly in this case? Bryan
2009 Oct 02
2
Plural version of the model detected, using singularized version. Override with --force-plural.
...has the following required parameters: ["equipment", :id] - are they all satisfied?) on line #3 of app/views/ equipment/new.html.erb: 1: <h1>New equipment</h1> 2: 3: <% form_for(@equipment) do |f| %> 4: <%= f.error_messages %> 5: 6: <p> (eval):16:in `equipment_path'' app/views/equipment/new.html.erb:3 app/controllers/equipment_controller.rb:29:in `new'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/se...