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
1
vote
1 answer

Rails link_to syntax error: unexpected ',', expecting ')'

I recently attempted to add bootstrap-sass to my rails app, and it seemed to have broken all my links (the links were fully functional before installing the bootstrap-sass gem). I am using ruby 1.8.7. A sample link I have is: <%=link_to image_tag…
scientiffic
  • 9,045
  • 18
  • 76
  • 149
1
vote
1 answer

Using Twitter Bootstrap 2.0 versus 2.1 and specifying images sizes with Isotop

Something changed in Twitter Bootstrap between 2.0 and 2.1 that precludes the simple specification of image sizes when using the awesome Isotope image library and requires the user of the alternative techniques of $(window).load or…
justingordon
  • 12,553
  • 12
  • 72
  • 116
1
vote
1 answer

How to include carousel

How to include carousel (component of twitter bootstrap) when i've already installed the twitter bootstrap in my rails application.? i ve less file in my stylesheet and bootstrap.js.coffee in assets pipeline. i wanted to use carousel in my…
1
vote
1 answer

a little code confuse me in this gem ---- backbone-bootstrap-rails

in bootstrap.js.coffee ,there are some code: define [], -> App = Models: {} Collections: {} Routers: {} Helpers: {} Views: { Posts: {} Common: {} Sessions: {} Tokens: {} Passwords: {} …
1
vote
1 answer

bootstrap affix line-height inaccurate with navigation

I'm using the bootstrap affix js plugin and it works great. The problem I'm having is when I change the body to use a custom font (Google: Lato) it throws the anchor positions completely off. The affix links lead to bad positions on the page and…
ere
  • 1,739
  • 3
  • 19
  • 41
1
vote
1 answer

Bootstrap-Datepicker Not Displaying with Bootstrap-SASS

I'm trying to use the Bootstrap Datepicker on a form I'm creating. I've read through the documentation here: https://github.com/Nerian/bootstrap-datepicker-rails/issues/11 and followed it (or so I thought), but I'm stuck. Gemfile: gem…
1
vote
1 answer

therubyracer install error. I tried all other SO solutions and still no luck

I think this is a common problem of installing therubyracer gem in Rails. It is a dependency for the twitter-bootstrap-rails gem. I have tried solution such as this: `gem install therubyracer` fails on Mac OS X Lion Here is the portion of my gem…
lionel
  • 385
  • 5
  • 12
1
vote
0 answers

Rails 3 app not working on production env after upgrading twitter-bootstrap-rails

Recently I upgraded twitter-bootstrap-rails by removing all the bootstrap assets and reinstalling it. The app now working OK on development mode, but when I publish to heroku it doesn't work and I get the "Something went wrong.." page error. So I…
randika
  • 1,519
  • 3
  • 18
  • 39
1
vote
2 answers

Items in Navbar doesnot move with minimizing the browser

I am using twitter bootstrap navbar and list items are shown out of navbar when I minimise my browser to some small size and scroll to the end list item. This is what looks as below. Navbar when browser is maximised: Navbar when browser is…
usercode
  • 309
  • 4
  • 20
1
vote
0 answers

twitter-bootstrap-rails application.css - invalide CSS

The line in application.css *= require bootstrap_and_overrides This works locally just fine. But cap deploy fails with: Invalid CSS after "*": expected "{", was "= require boots..." I moved the gem to outside the :development group but doesn't seem…
bytemonger
  • 83
  • 7
1
vote
2 answers

Rails + Twitter Bootstrap -- btn-mini btn-small not changing size

Looking to use an icon for a delete button in a table, as shown below: If I paste this code into a plain html page within my rails application, the btn-mini and…
Atari2600
  • 1,219
  • 2
  • 13
  • 26
1
vote
1 answer

rails g bootstrap:install error on Rails 3.2.6

I can't find the answer I am looking, even though similar questions have been answered numerous times. I get the error "Could not find generator bootstrap:install" when I run the rails command "rails g bootstrap:install". I am using rails version…
Mike McCoy
  • 797
  • 2
  • 10
  • 19
1
vote
4 answers

twitter-bootstrap-rails gem: font awesome support

According to the changelog twitter-bootstrap-rails gem supports font awesome since v.2.0.9. So how to turn on this support in project? Font awesome icons are not available for me by default.
1
vote
2 answers

Ruby to Javascript arguments

I am using rails to develop an application. After manipulating with my Models, I would like to send some arguments to my javascript/jQuery functions (library functions for UI etc..) The only way I can think of is to build a hidden div and populate…
1
vote
1 answer

Override less variables in twitter-bootstrap-rails

I'm using twitter-bootstrap-rails gem and in bootstrap_and_overrides.css.less file I have the next lines: // If you'd like to override bootstrap's own variables, you can do so here as well // See http://twitter.github.com/bootstrap/less.html for…
Uko
  • 13,134
  • 6
  • 58
  • 106