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+unsubscribe@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/738b375731807c87bfbd171efcb55b83%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment