Hello Guys:

I am really new in RoR, two weeks old. I am studying on my own using the Simply Rails 2 book by Patrick. I am in Chapter 6, and following the instructions, this is my StoriesController file:

class StoriesController < ApplicationController
def index
@story = Story.find( :first, : order => 'RANDOM()')
#Comment: I left a space between ( and : and : and order since otherwise a figuring would show.

#Connecting the new.html.erb file:
def new
@story = Story.new

def create
@story = Story.new(params[:story])
#this is a url helper
redirect_to stories_path
This is the error that I am getiing:

NameError in StoriesController#new

uninitialized constant StoriesController

RAILS_ROOT: C:/InstantRails-2.0-win/rails_apps/shovell
Now, if I use the StoriesController generated when I ran
rails shovell
everything works well. However, Patrick in his book in chapter 6, apparently starts building this file a method at a time. This is the way I want to do it also because I think I would learn by doing it this way. Nonetheless, I am stuck.

Please help me anyone.