Monday, April 26, 2010

Rails non-RESTful form_for

if you dont use the "map.resources" line in routes you are not making a restful app that means that the *_path *_url helper break too get around it you need to spec the url in form_for etc

<% form_for( @object, :url => {:action => 'update', :id => @object } :name => 'form') do |form| %> 

No comments:

Post a Comment