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
229
votes
8 answers

Font-awesome, input type 'submit'

There seems to be no class for input type 'submit' in font-awesome. Is it possible to use some class from font-awesome for button input? I've added icons to all buttons (which actually links with class 'btn' from twitter-bootstrap) in my…
denis.peplin
  • 9,585
  • 3
  • 48
  • 55
49
votes
4 answers

Uncaught Error: no such method 'show' for tooltip widget instance

I am using ajax to submit a form for my registration, but am having an issue trying to setup tooltips to display error messages for errors that come back from the controller. JavaScript: $(document).on('ajax:success', '.user_modal_form', function(e,…
41
votes
2 answers

How to reuse a class in sass without using a mixin?

I want all my anchors in my application look like .btn (Twitter Bootstrap class), is there a way to make this? I did a{ @include btn; } but it does not work because btn should be a mixin, and it's a Twitter Bootstrap class.
sites
  • 21,417
  • 17
  • 87
  • 146
36
votes
20 answers

Bootstrap 3+Rails 4 - Certain Glyphicons not working

I am trying to use bootstrap 3 in my rails 4 app. Followed this tutorial to set up bootstrap 3 using bootstrap saas from this github page. Bootstrap is working fine but glyphicons are not working as expected. Certain glyphicons are not displaying at…
30
votes
7 answers

Dynamically add active class to bootstrap li in Rails

in the bootstrap navigation bar. You can get the effect of a button being clicked by adding the class active . Naturally, I want to use this on my pages. For example if I'm on the about us page I want the about us button clicked. What is the best…
19
votes
4 answers

How to embed font-awesome icons into submit_tag

Trying to user font awesome icons for my buttons but I cant get it to show in the submit_tag <%= submit_tag icon("search"), class: "btn-primary", style:"width:40px;" %> output:
ajbraus
  • 2,909
  • 3
  • 31
  • 45
18
votes
11 answers

Rails + Twitter Bootstrap: File to import not found or unreadable: twitter/bootstrap

I am trying to set up Rails app with Twitter Bootstrap (the gem twitter-bootstrap-rails), but I still cannot get over the error File to import not found or unreadable: twitter/bootstrap. I found this issue on official Github of the gem, but none of…
16
votes
2 answers

How can I make Twitter Bootstrap modal animation faster?

I really like the Twitter Bootstrap modal, but showing it with the animation is a bit slow. I'd say around 500ms. Is there a way to make it faster? I looked in bootstrap-modal.js but couldn't find anything compelling that could help. And, I don't…
Pierre
  • 8,368
  • 4
  • 34
  • 50
14
votes
2 answers

How to integrate a Wrap Bootstrap theme into an Rails application?

I have bought a twitter bootstrap theme from wrapbootstrap. I already have a functional rails application. Now, I want to design my application by integrating the bootstrap theme into my application. I am new to this and I have no idea how to do…
11
votes
4 answers

Create new Twitter Bootstrap buttons with Bootstrap-Sass in Rails?

I'm trying to create new Twitter Bootstrap buttons in my Rails app so I don't have to override the old ones. Using the Bootstrap-Sass gem, I've figured out how to override the default buttons like so (to make the btn-warning class 'Twitter…
11
votes
3 answers

How to setup bootstrap-datepicker-rails?

Anybody knows how to setup the gem bootstrap-datepicker-rails? I followed the steps in http://rubydoc.info/gems/bootstrap-datepicker-rails/0.6.21/frames, basically: I setup twitter-bootstrap-rails gem I add this to gemfile gem…
9
votes
2 answers

Converting String to Date before save with Rails

Very new to Ruby and I've been stuck for hours. Searching everywhere and can't find an answer. So I'm using the bootstrap datepicker for rails gem. Because I've changed the date format of the datepicker, it won't store in the DB. Guessing this is…
9
votes
5 answers

How to add wrapbootstrap (made with twitter bootstrap) themes to rails application

The website https://wrapbootstrap.com/ has themes which were made using Twitter Bootstrap. Each of these themes include different versions of Twitter Bootstrap along with other various libraries and versions (jquery, fontawesome, etc...) How do I…
9
votes
1 answer

Using less (2.2.1) raises an error requiring therubyracer (can't install therubyracer on windows)

I've been working to get twitter-bootstrap-rails gem working on my windows machine and ran into an error attempting to install 'therubyracer' gem which is a dependency of older version of the less gem. I think upgraded to less 2.2.1 which is not…
9
votes
2 answers

Integrating Bootswatch Theme with Twitter-Bootstrap-Rails Gem

I've got a Ruby on Rails app running with Bootstrap, which I installed using the gem twitter-bootstrap-rails. I'd now like to integrate a new Bootswatch theme, but I'm having trouble figuring out what to do. There are four possible downloads for…
tanookiben
  • 22,575
  • 8
  • 27
  • 25
1
2 3
13 14