0

I need to make this:

<% simple_form_for :list_signup, :url => 'http://foobar.com" do |f| %>
...

Output:

<form name="myForm" action="http://foobar.com" class="list_signup" method="post">
...

I can't figure out how to add the name attribute and can't figure it out from the documentation at http://simple-form.plataformatec.com.br/

Any ideas?

1 Answer 1

1

Try:

<% simple_form_for :list_signup, :url => 'http://foobar.com', :html => {:name => 'foo'} do |f| %>
Sign up to request clarification or add additional context in comments.

1 Comment

This works if I make an adjustment for using an older version of ruby: <% simple_form_for :list_signup, :url => 'http://foobar.com', :html => {:name => 'myForm'} %> If you'll edit your answer, I'll check it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.