# Getting Started with Databases

**URL:** <https://www.ruby-forum.com/t/getting-started-with-databases/135068>\
**Category:** Rails\
**Created:** [April 17, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/getting-started-with-databases/135068 "2008-04-17T16:30:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaime\_schultz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/85f322/32.png) [@jaime\_schultz](https://www.ruby-forum.com/u/jaime_schultz)\
**Post date:** [April 17, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/getting-started-with-databases/135068/1 "2008-04-17T16:30:08Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![jaime\_schultz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/85f322/32.png) [@jaime\_schultz](https://www.ruby-forum.com/u/jaime_schultz)\
**Post date:** [April 17, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/getting-started-with-databases/135068/2 "2008-04-17T18:45:02Z")

</div>

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
