5

With simple_form 2.0.4, I do:

= simple_form_for(@thing) do |f|

It generates:

<form accept-charset="UTF-8" action="/things/37" class="simple_form" id="edit_thing_37" method="post" novalidate="novalidate">

But I need:

<form accept-charset="UTF-8" action="/things/37?foo=bar" class="simple_form" id="edit_thing_37" method="post" novalidate="novalidate">

How to do this?

Thanks!

1 Answer 1

16

You could write

= simple_form_for(@thing, :url => thing_path(@thing, :foo => 'bar')) do |f|
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.