Hi guys. I’m a fairly decent php programmer switching up to Ruby on Rails here on Dreamhost. I was wondering if there are any people on this board experienced with rails to answer this simple question for me:
Basically I bnought the new book for Rails ‘Agile Web Development…’ and I’ve been following the Hello world tutorial which went off without a hitch until I actually placed the ‘hello’ method into the controller file which is called ‘say’.
You might be able to see it by going here:
The WEBrick server doesn’t stay active indefinitely however so you might not be able to see the error in that case this is what happens:
SyntaxError in #
/usr/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/dependencies.rb:189:in `load’: app/controllers/say_controller.rb:1: syntax error
class SayController < ApplicationController
Show framework trace
This error occured while loading the following files:
All in all, I’m sure it’s something simple becuase I don’t know what I’m doing quite yet. The tutorial said you didn’t have to do anything pertaining to routing for this app and I followed all of the other instructions. I created the controller running ‘ruby script/generate Say’ in the shell then edited the controller file accordingly and created the say.rhtml file in the views/say directory.
The error I get sayins controller not set is what confuses me most. Anyone have any advice?