Skip to content

Instantly share code, notes, and snippets.

@richardsondx
Created April 3, 2012 16:53
Show Gist options
  • Save richardsondx/2293610 to your computer and use it in GitHub Desktop.
Save richardsondx/2293610 to your computer and use it in GitHub Desktop.
i followed railscast tutorial on how to install bootstrap and it bugged
@import "twitter/bootstrap/sbootstrap/";
body { padding-top: 60px; }
@import "twitter/bootstrap/responsive";
// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
// Your custom LESS stylesheets goes here
//
// Since bootstrap was imported above you have access to its mixins which
// you may use and inherit here
//
// 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 their names and documentation
//
// Example:
// @linkColor: #ff0000;
$ rails new karret
$ rails g scaffold karretlink name link:string type:string description:string start_min:integer start_sec:integer --skip-stylesheets
$ rake db:migrate
# I made sure the page was working and displaying the scaffold then added the gems to gem file
$ bunddle install
$ rails g bootstrap:install
insert app/assets/javascripts/application.js
create app/assets/javascripts/bootstrap.js.coffee
create app/assets/stylesheets/bootstrap_and_overrides.css.less
gsub app/assets/stylesheets/application.css
gsub app/assets/stylesheets/application.css
# Then I refreshed the page and I got the error
LoadError in Karretlinks#index
Showing /Users/Richardson/rails_projects/karet-a/app/views/layouts/application.html.erb where line #5 raised:
no such file to load -- less
(in /Users/Richardson/rails_projects/karet-a/app/assets/stylesheets/bootstrap_and_overrides.css.less)
Extracted source (around line #5):
2: <html>
3: <head>
4: <title>KaretA</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: </head>
Rails.root: /Users/Richardson/rails_projects/karet-a
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___4209633561794749900_2181108180'
app/controllers/karretlinks_controller.rb:7:in `index'
Request
Parameters:
None
source 'https://rubygems.org'
gem 'rails', '3.2.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'
gem 'twitter-bootstrap-rails'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'sass-rails', '~> 3.1'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
@sohelsd
Copy link

sohelsd commented Apr 26, 2012

Did you figure out the issue? I am getting this same problem.

@xiaolai
Copy link

xiaolai commented Sep 24, 2012

you're using pow...

switch back to rails s ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment