twitter-bootstrap-rails

ActionView::Template::Error (variable @fontAwesomeEotPath_iefix is undefined)

孤街浪徒 提交于 2020-01-22 19:55:07
问题 I get an error while trying to load any page: ActionView::Template::Error (variable @fontAwesomeEotPath_iefix is undefined) (in /app/assets/stylesheets/bootstrap_and_overrides.css.less)): 2: <html> 3: <head> 4: <title>Program</title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head> app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__242882506_70513990' app

Button_tag not working inside table in Rails

﹥>﹥吖頭↗ 提交于 2020-01-16 12:00:14
问题 I have the following button_tag inside a form in a table : <div class="table-responsive tableBG"> ** If I move the button here, it works perfectly ** <table class="table table-striped table-sm table-mini"> <thead class="thead"> <tr> <th>...</th> </tr> </thead> <tbody> <tr>...</tr> ... <%= form_for article, :html => {:class => 'toggle'} do |f| %> <%= f.hidden_field :disable, value: true %> <%= button_tag type: 'submit', class: "btn-mini" do %> <i class="fa fa-eye-slash" aria-hidden="true"></i>

Button_tag not working inside table in Rails

自古美人都是妖i 提交于 2020-01-16 11:58:32
问题 I have the following button_tag inside a form in a table : <div class="table-responsive tableBG"> ** If I move the button here, it works perfectly ** <table class="table table-striped table-sm table-mini"> <thead class="thead"> <tr> <th>...</th> </tr> </thead> <tbody> <tr>...</tr> ... <%= form_for article, :html => {:class => 'toggle'} do |f| %> <%= f.hidden_field :disable, value: true %> <%= button_tag type: 'submit', class: "btn-mini" do %> <i class="fa fa-eye-slash" aria-hidden="true"></i>

Rails 4 Bootstrap Search Form in Navbar

老子叫甜甜 提交于 2020-01-07 03:08:08
问题 I have some rails-bootstrap-form code in a header partial that gets rendered in the Rails 4 application layout: <div class="navbar-form navbar-right"> <%= bootstrap_form_tag controller: 'devices', action: 'index', method: 'get' do |f| %> <%= f.search_field :search, hide_label: true, placeholder: 'Search' %> <%= f.submit "Submit", :name => nil %> <% end %> </div> I want this search form to always perform a GET request on the devices controller's index action. The search doesn't actually link

twitter-bootstrap-rails on Heroku: Glyphicons displayed as squares

前提是你 提交于 2019-12-31 10:53:11
问题 I have deployed a rails app on Heroku, and I am using the twitter-bootstrap-rails gem to include twitter bootstrap. Everything works perfectly locally (and in the development environment), but on Heroku (and in production) everything works fine except for the glyphicons, which all display as little squares. At first I thought this was a problem with the icon sprites not being precompiled, so in my gemfile, I moved the line 'gem twitter-bootstrap-rails' out of the assets group, and I was sure

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

我们两清 提交于 2019-12-28 03:20:47
问题 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 it. After doing a lot of research on this, I found only a very few discussion regarding this issue. As for example I found this post: Implementing WrapBootstrap theme into Rails App But, I am not totally sure how the assets from the theme will be

font glyphicons not working with bootstrap 3 and rails 4

假装没事ソ 提交于 2019-12-24 14:46:36
问题 I cannot get glyphicons to work with bootstrap 3 and rails. I've scowered the internet and nothing i find helps. In my bootstrap.css file i have: @font-face { font-family: 'Glyphicons Halflings'; src: url('/assets/glyphicons-halflings-regular.eot'); src: url('/assets/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts

File to import not found or unreadable: bootstrap-wysihtml5

本秂侑毒 提交于 2019-12-23 19:36:53
问题 I have a Rails 4rc1 application with multiple engines. I'm using bootstrap-wysihtml5-rails gem in my admin engine. According to documentation I added gem 'bootstrap-wysihtml5-rails' to admin engine's Gemfile. Then when I added @import 'bootstrap-wysihtml5' to admin engine's application.scss . I get below errors: File to import not found or unreadable: bootstrap-wysihtml5. Load paths: /home/zoloo/.rvm/gems/ruby-1.9.3-p429@rails-4rc1/gems/coffee-rails-4.0.0/lib/assets/javascripts /home/zoloo/

Converting String to Date before save with Rails

谁说胖子不能爱 提交于 2019-12-21 08:49:29
问题 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 because the simple_form input is being used as a string to avoid the default date selection inputs applied by simple_form. My question is: How do I modify/convert a string like "06/18/2013" to a date before it is saved to the db? Is this best handled

Rails 3.2.3 + Twitter Bootstrap + Nav-Tabs: How to show a specific tab?

▼魔方 西西 提交于 2019-12-21 04:25:29
问题 another newbie-question regarding rails and bootstrap. I am using something like this: <div class="tabbable tabs-left"> <ul class="nav nav-tabs"> <li class="active"><a href="#tab1" data-toggle="tab">About us</a></li> <li><a href="#tab9" data-toggle="tab">Address</a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab1"> <%= render 'about_us' %> </div> <div class="tab-pane" id="tab9"> <%= render 'address' %> </div> </div> My problem is that I render 'address' which