ruby on rails - Routing error using form_tag -


i have routing issue can't seem head around.

i have project resource has restfull actions working expected.

now want add ability update 1 specific attribute through small popup form. in popup use:

form_tag (@project)   text_field_tag :attribute_i_want_to_update, ''   submit_tag 'go' 

in controller's update action intend handle specific submit. receive routing error claiming there no route '/projects/15'. checked request using post. route exists post '/projects/15' (e.g. regular update route works fine , posts exact route).

what missing?

thx time,
erwin

i had similar problem, see here

if object not new, rails (at least 3 this) put route, not post. if check sent server, using firebug example, see post made param "_method=put".

rails put route update existing object, in accordance fielding's definition of rest.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -