Getting Started with Databases

Hi everyone. Brief intro - I’m in the process of redesigning a website
and
I’m exploring programming options for the redesign. I discovered ruby in
efforts to understand it and maybe make a recommendation.

Anyway, currently I am trying to create a database and a table, and be
able
to vew and edit it with the web front.

I am working from a tutorial called “Getting Started with Databases”
located
at http://wiki.rubyonrails.org/rails/pages/TutorialStepOne
is where it begins. I am successfull until the last step where I go to
view
it online and I get the error message:

NameError in Controller#View
undefined local variable or method for Controller

then it gives me my rails root.

under response it says:
Header:
{“cookie”=>1[],
"Cache-Control "=>“no cache”}

I’m using the latest version of ror. Any help to get past this or point
me
to a truly helpful tutorial with databases will be extremely welcomed
and
appreciated.

You’ve kinda missed out the critical information, what the last few
bits of the stack trace are…

Guessing you have spelt a variable wrongly somewhere. Be careful
following old tutorials with Rails 2.x, a lot has changed.

Paste me the stack trace if you haven’t already found the problem for
yourself.

Best of luck

Joe

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs