Questions tagged [twitter-bootstrap-rails]

twitter-bootstrap-rails is a toolkit from Twitter designed to kickstart development of webapps and sites.

Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.

See https://github.com/seyhunak/twitter-bootstrap-rails

201 questions
3
votes
2 answers

Rails: Issue with less after bootstrap update -- Cannot load such file -- less

It all was working fine before bootstrap update but now i have this error: cannot load such file -- less (in /home/warch/development/railcast_196/app/assets/stylesheets/bootstrap_and_overrides.css.less)` i tried to google this with no luck, i…
KoU_warch
  • 2,160
  • 1
  • 25
  • 46
3
votes
2 answers

Rails Tutorial for Devise with CanCan and Twitter Bootstrap

Can't run this open source project http://railsapps.github.com/tutorial-rails-bootstrap-devise-cancan.html.I'm using Ruby version1.9.3p286 and Rails 3.2.8. I've installed all gems successfully, but when trying to run from RubyMine output the…
Aydar Omurbekov
  • 2,047
  • 4
  • 27
  • 53
3
votes
1 answer

SyntaxError in rails app controller

I used the twitter bootstrap library for my new simple rails app and used some scaffold for products model i updated the GemFile as well as the bundle command and the rails g bootstrap. when i run the web page i get the following error: SyntaxError…
3
votes
1 answer

Twitter Bootstrap: How to print Thumbnails as same as screen?

I want to print Twitter Bootstrap Thumbnails as same as screen, but they expand horizontally and background color turns black. I am using Twitter Bootstrap 2.1.1(twitter-bootstrap-rails 2.1.3) and Chrome on Mac. My problem is reproduced on this…
Junichi Ito
  • 2,438
  • 1
  • 23
  • 46
3
votes
4 answers

Twitter Bootstrap & rails - center content and fix min width

In my html the content should be centered on screen and his width should never be greater then 950px. Since I want this same html to show on mobile and desktop I am using twitter bootstrap to make the layout responsive. The problem is: I cant seem…
3
votes
1 answer

Install custom theme with twitter-bootstrap-rails

How do I install a custom theme for twitter-bootstrap with the rails asset pipeline? Should I create a new folder under assets and dump in all of the css, js, image and font files for the theme? Update: I put all files in my downloaded theme (except…
rigyt
  • 2,219
  • 3
  • 28
  • 40
2
votes
3 answers

twitter-bootstrap-rails 4.0.0 with Rails 4

https://github.com/seyhunak/twitter-bootstrap-rails says: Twitter Bootstrap for Rails 5 and Rails 4 Asset Pipeline but after bundle install I see this: Bundler could not find compatible versions for gem "actionpack": In Gemfile: rails (=…
2
votes
2 answers

Rails error and notice flash not showing properly with css styling

I have a simple controller which checks the validity of an ActiveModel. If the model is valid it displays :success flash message. If it is not, it displays error flash message. The success flash message is displayed correctly (green font and…
2
votes
3 answers

rails-bootstrap-forms applies some styles but not others

I am using the rails-bootstrap-forms gem along with twitter-bootstrap-rails. When I use the bootstrap_form_for function, I get forms that are only partially styled: <%= bootstrap_form_for([@investor.property, @investor], layout: :horizontal,…
2
votes
1 answer

Setting dynamic data-target and id in Rails

I am trying to set a dynamic data-target of a modal and a corresponding dynamic div id. I'm being thrown syntax errors but can't seem to find out why. I'm trying to use "myModal<%= gift.id %>" as the unique name for the data-target and div. The…
2
votes
2 answers

Less::Error at / Unrecognised input - twitter-bootstrap-rails

After updating rails from 3.2.3 to 3.2.14, and updating twitter-bootstrap-rails from 2.2.0 - 2.2.6 I'm getting this Less unrecognised input error: Less::Error - Unrecognised input (in…
2
votes
1 answer

Using twitter-bootstrap-rails `nav_bar` helper method in admin namespace not working

So, I'm using twitter-bootstrap-rails and this gem has a nav_bar helper method that is being loaded automatically. But if I want to use this helper method method in a namespaced view I get the error message undefined method nav_bar: #…
Vapire
  • 4,568
  • 3
  • 24
  • 41
2
votes
2 answers

Twitter Bootstrap: navbar button not showing or toggling collapse

I'm adapting Twitter's Bootstrap to my Ruby on Rails tutorial project (By Michael Hartl) and the upper navigation isn't collapsing. I'm currently getting this: My end goal is this: I've copied and pasted the start_template.html into mine, ensured…
Matthew
  • 2,035
  • 4
  • 25
  • 48
2
votes
2 answers

Brand part of navbar highlights with black when I mouse over, can't find any options in CSS

I've got a rails app with a navbar-top with a brand element. When I mouse over it the back of it turns black. I don't see anything on the browser console that helps here. Does anybody have some experience with this? Here's what it looks…
Joe Essey
  • 3,457
  • 8
  • 40
  • 69
2
votes
3 answers

Bootstrap popover not working Rails

I am having trouble with getting my bootstrap popover to work correctly in my rails application. I have tried solutions to other questions with no success. Currently in my HTML I have: