Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Is it possible to create button placeholders?

bootstrap buttons css

  • Please log in to reply
1 reply to this topic

#1 Railz4Ruby2022

Railz4Ruby2022

    Dispatcher

  • Members
  • 36 posts

Posted 21 August 2014 - 09:10 PM

I'm having a situation here with my bootstrap buttons. I cannot get the styling to apply even though the css for the theme itself is working.

 

Here's my code

 

<%= button_to 'Sign Up', class: 'btn btn-green' %>

 

I tried another method, but this one gives me errors since the view isn't generated yet. But, I wanted to do was add html files that I already created for another website to the project. To use them as a view.

 

<%= button_to("View Web Page", {action: "Web_Page_To_Be_Used"}, class: "btn btn-primary") %>

 

Please, show me the best method.



#2 Railz4Ruby2022

Railz4Ruby2022

    Dispatcher

  • Members
  • 36 posts

Posted 23 August 2014 - 12:30 AM   Best Answer

I fixed it. The button wasn't picking up the bootstrap styling until I did a little bit of tweaking.







Also tagged with one or more of these keywords: bootstrap, buttons, css

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users