"link_to" to "simple_form_for"
Not solved Solved
over 1 year ago

Hello ! I just post my problem on stackoverflow which is about changing <% linkto .. into a <% simpleform_for

Every is explain there. http://stackoverflow.com/questions/36404472

Thanks !

over 1 year ago

Simple_form will automatically select the route (and verbe) for the form (update or create route). Have you set your policies for both situation ?

over 1 year ago

You can pass your route with <%= simpleformfor @photographer, :url => savenewphotographerspath, :method => :post ... cf http://stackoverflow.com/questions/7507633/how-to-define-action-with-simple-form-for

Submit your answer