Top "Railstutorial.org" questions

Questions and answers for Michael Hartl's railstutorial.

Confused about 'respond_to' vs 'respond_to?'

I am learning Rails with railstutorial.org, and I am confused about something: in this chapter the author tells us …

ruby-on-rails railstutorial.org
Bundle Install could not fetch specs from https://rubygems.org/

I'm attempting to follow the Hartl Rails Tutorial, and having trouble with the bundler gem. When using the commands 'bundle …

ruby-on-rails ruby gem bundler railstutorial.org
Why does my rails rollback when I try to user.save?

I have installed the RailsTutorial sample app(the twitter like application) and am trying to understand why the following piece …

ruby-on-rails ruby railstutorial.org
rake db:migrate is not working

I'm working through the rails tutorial and have gotten stuck. Starting at Listing 8.16 I have made the following modifications to &…

ruby-on-rails railstutorial.org
Rails -- create and create! methods, RoR 3 Tutorial

So I know the distinction between the bang (exclamation mark) and non-bang methods usually is whether the method will modify …

ruby ruby-on-rails-3 railstutorial.org
Rspec and named routes

I'm quite new to rails, and trying to follow the railstutorial. Everything goes fine, except for my tests which can't …

ruby-on-rails railstutorial.org
Ruby on rails and Node.js

I am wondering how to integrate node.js on a rails app (for learning purpose). Based on Michael Hartl tutorial (…

ruby-on-rails node.js railstutorial.org
ActionController::RoutingError: uninitialized constant MicropostsController

Update: This was due to a misspelled file name correct: ~/sample_app/app/controllers/microposts_controller.rb incorrect: ~/sample_app/…

ruby-on-rails ruby-on-rails-4 railstutorial.org
Why use 'reload' method after saving object? (Hartl Rails Tut 6.30)

I'm working on the exercises for chapter 6 of Hartl's Rails 4 Tutorial. The first exercise tests to make sure that user …

ruby-on-rails methods ruby-on-rails-4 railstutorial.org
How to solve the update bundler warning in rails when deploying to heroku?

How do I solve the following warning? I updated my ruby version to 2.3.1 and rails version to 4.2.6. I get this …

ruby-on-rails ruby heroku bundler railstutorial.org