Problem - please help

Hi there,
I’m following the ‘Agile Web D. with rails’ book and have got
to page 89 - and hit a problem.

I entered into the command line:
ruby script/generate controller store index

The book says you should see something when you point to:
http://localhost:3000/store

but all I get is:

Routing Error

no route found to match “/store/index” with {:method=>:get}

I can’t see where to go from here, any ideas?

Chris

I’m quite new to this technology but here is my help.
Perhaps there is no index action so, try to write this method in the
StoreController:

def index
render :text “Helllooo”
end

To see what happens…

Chris F. wrote:

Hi there,
I’m following the ‘Agile Web D. with rails’ book and have got
to page 89 - and hit a problem.

I entered into the command line:
ruby script/generate controller store index

The book says you should see something when you point to:
http://localhost:3000/store

but all I get is:

Routing Error

no route found to match “/store/index” with {:method=>:get}

I can’t see where to go from here, any ideas?

Chris

Last night I was following along in the same part of the book and i got
the
same error message.

I doubled checked all my code and i didn’t see anything wrong simply
because
you haven’t written that much code for the depot at this point in the
book.

I grew frustrated so I restarted my system and fixed myself a cup of
tea.
After the restart everything was fine.

So I know it doesn’t sound like much but have you tried a cup of tea and
a
reboot?

On 8/10/06, Chris F. [email protected] wrote:


Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Just because you 're not paranoid doesn’t
mean they aren’t out to get you.