Ruby/Rails Installation Instructions
When you get to the forms section of the blogger tutorial, you may run into something called a "mass assignment error". In order to fix it:
-
open
config/application.rb
-
Find the line that says:
config.active_record.whitelist_attributes = true
-
And change it to:
config.active_record.whitelist_attributes = false
Important note: Class names in ruby have to start with a capital letter. So in the "Ruby in 100 minutes" exercise, the code example has "class Sample" -- not "class sample" ! If you are getting an error like:
NameError: undefined local variable or method
'sample_hello' for main:Object from (irb):1 from C:/RailsInstaller/Ruby1.9.3/bin/irb:12:in
then edit your ruby source file my_program.rb and make sure you have a capital letter 'S' in Sample
class Sample