Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

zeallous's Profile

GitHub User: zeallous

Comments by

Avatar

Hi

I'm trying to follow the instructions of the video. I executed the commands as required:

rails new store
rails g scaffold product name price:decimal --skip-stylesheets
rake db:migrate
rails g bootstrap:install
rails g bootstrap:themed products -f

of course I also put the twitter-bootstrap-rails gem into the gemfile

but when I run localhost:3000/products I get this (from the terminal where I run the server)

Started GET "/products" for 127.0.0.1 at 2013-06-29 16:06:39 +0800
Processing by ProductsController#index as HTML
Product Load (0.1ms) SELECT "products".* FROM "products"
Rendered products/index.html.erb within layouts/application (18.3ms)
WARN: tilt autoloading 'less' in a non thread-safe way; explicit require 'less' suggested.
Completed 500 Internal Server Error in 69ms

ActionView::Template::Error (cannot load such file -- less
(in /Users/ansonzeall/Desktop/lab/Rails/bootstrapTest/store/app/assets/stylesheets/bootstrap_and_overrides.css.less)):
2:
3:
4: Store
5: <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6: <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7: <%= csrf_meta_tags %>
8:
app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__2649677383696800529_70257843367120'

says cannot load the less file

Avatar

i've solved it thanks. Thanks to Raison D'souza's comment

Avatar

Hi I keep getting:

NoMethodError in SessionsController#create
undefined method `[]' for nil:NilClass

This appears after I logged into Twitter and before redirecting back to the callback page.