"link_to" to "simple_form_for"
1
Not solved Solved
12 months 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 !

12 months 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 ?

12 months 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

Cancel
Submit your answer