John Lahr wrote in post #1178401:
> 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

I tried this below it change the submit button text. However, the
styling of the button is not be applied. Am I leaving something wrong or
leaving somtehing off.

  <%= form_for @subscription do |f| %>
  <%= f.text_field :email %>
  <div class="form-group">
  <%= f.submit "Update", class: "btn btn-primary" %>
  </div>
<% end %>


Example - I tested..
The tried this code below as a test and it works. But, it does not
contain the ruby code.

<form class="form-inline">
  <div class="form-group">
    <input type="email" class="form-control" id="exampleInputEmail1"
placeholder="Email Address">
    <button type="submit" class="btn btn-primary">Submit</button>
  </div>
  </form>

-- 
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/f23ada06fd2b02953b5b930ff13ac832%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to