Erol Guzoğlu
Erol Guzoğlu

Reputation: 486

Twitter-bootstrap-rails gem doesn't work

I'm used this workflow, https://stackoverflow.com/a/9125499/3057033

But here is my posts page.

enter image description here

What I am missing?

I solved my issue. Please look at my answer.

Upvotes: 0

Views: 228

Answers (3)

Qaisar Nadeem
Qaisar Nadeem

Reputation: 2424

add

/*
 *= require bootstrap_and_overrides
*/

to your application.css

Upvotes: 1

Erol Guzoğlu
Erol Guzoğlu

Reputation: 486

I'm solving this problem with add less the end of the command.

rails generate bootstrap:install less

I think newer versions of the Gem need this.

I'm not reading well README file. Just watch the railscasts.

It's my fault, so sorry.

Upvotes: 0

edikgat
edikgat

Reputation: 869

Most common reason of your error is that you forget to add bootstrep styles to your layout

So, in app/assets/stylesheets/application.scss (note that file can be different if you have another layout)

@import "bootstrap-sprockets";
@import "bootstrap";

Upvotes: 1

Related Questions