"link_to" to "simple_form_for"
Not solved Solved
almost 2 years 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 !

almost 2 years 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 ?

almost 2 years 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