You need to add the classifications within the erb code.

For instance

<%= f.submit, class: "btn btn-primary" %>

(PS it seems like you might be customizing the create button so you have to 
list that in the ERB code for it to show up properly)

On Tuesday, September 1, 2015 at 8:43:34 AM UTC-7, Ruby-Forum.com User 
wrote:
>
> I am trying to add bootstrap styling to my rails form_for form. Such 
> that I can change the button styling and make the from inline. I tried 
> adding doing something like: 
>
>   <div class="form-group"> 
>   <%= f.submit "Create your account", class: "btn btn-primary" %> 
>   </div> 
>
> However, it did not work. Here is my code in my file. 
>
> <%= form_for @subscription do |f| %> 
> <%= f.text_field :email %> 
> <%= f.submit %> 
> <% end %> 
>
> -- 
> Posted via http://www.ruby-forum.com/. 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/460f436c-81e7-4556-a6f4-f19414bfe95f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to