Ruby on Rails
Tuesday, September 1, 2015
One issue I had when I was trying to get bootstrap fully to work was that I hadn't included it in my application.js file (i know for sure i needed it for drop downs, I don't know what else you might need it for). So if you haven't done that I'd look at the code.
Honestly though <%= f.submit, class: 'btn btn-primary' %> always works for me (have you tried it purely the basic way with out :sample that you showed earlier?)I'd make sure that the bootstrap is in your application.css.scss (or application.scss file if you wish) so that it does cascade to all pages.
On Tue, Sep 1, 2015 at 11:28 AM, Abdulaleem Seyed <lists@ruby-forum.com> wrote:
John Lahr wrote in post #1178421:
Your correct. It fixed the button issued. After checking rails console> I'm glad you were able to get it to work - but does the button work to
> submit your form?
> In my usage, btn btn-primary work on most elements. Not sure why
> changing
> the tag makes it work and now am concerned that your form won't submit
> based on the above code?
the emal are coming in as empty strings on submit. This is stressing.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/R5hjKKVfMAA/unsubscribe.
To unsubscribe from this group and all its topics, 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/2b551b889d633ee2ba248c67744bcfea%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
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/CAEBjNa2Vv_OOUk%2BtWdKmKQ-Mu0ch4yrsSmTPXr_X%3DjwTYPo-1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment