Top "Railstutorial.org" questions

Questions and answers for Michael Hartl's railstutorial.

Error launching Rails server: undefined method 'configure'

I'm new to rails and working through Hartl's tutorial. Everything was fine until I tried to do the tutorial a …

ruby-on-rails gem railstutorial.org
Global access to Rake DSL methods is deprecated

I am working through the Ruby on Rails 3 tutorial book and typed the following on the command line: rake db:…

ruby-on-rails-3 rake railstutorial.org
before_action in user controller rendering error: NoMethodError in Users#show

I am following Michael Hartl's Rails guide (on chapter 9). When I try to access the page corresponding the the user's …

ruby-on-rails railstutorial.org
Uncaught TypeError: Cannot read property 'webkit' of undefined

I am working through the examples in chapter 8 of the Ruby on Rails Tutorial and I am getting the above …

jquery railstutorial.org
RSpec test destroy method (Rails Tutorial 3.2 Ch. 9, Ex. 10)

Note: I've read this question and the answer, but for some reason the code isn't working for me. (see below …

ruby-on-rails rspec railstutorial.org
cannot load railtie after upgrade to rails 4 per ruby.railstutorial.org

OS is Ubuntu 12.04, 64 bit. New to rails. Relatively new to Ruby. Following the ruby.railstutorial.org tutorial, chapter 3. The tutorial …

ruby-on-rails rubygems railstutorial.org railtie gem-bundler
Git Error code: No refs in common and none specified; doing nothing

I am following the rails tutorial and got stuck on chapter 1.4.3 Bitbucket. https://www.railstutorial.org/book/beginning#sec-bitbucket This …

railstutorial.org
$ bundle exec rake db:reset command raising couldn't drop db/development.sqlite3

I tried to run $ bundle exec rake db:reset and found the following on console Couldn't drop db/development.sqlite3 : #&…

ruby-on-rails ruby ruby-on-rails-3 sqlite railstutorial.org
Do I need a "Users" controller when using Devise in Rails

I am a Rails newbie. I am working on a small Rails4 project trying to improve my skills. I am …

ruby-on-rails-4 devise railstutorial.org
Rails 3 Tutorial Chapter 11 "Validation failed: Email has already been taken" error

My trouble arose in Chapter 11 of the Ruby on Rails Tutorial here. I was seeing this rspec error: Failure/Error: :…

ruby-on-rails ruby-on-rails-3 rspec rspec-rails railstutorial.org