Hi there, I''m following the ''Agile Web Development 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 -- Posted via http://www.ruby-forum.com/.
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 Finch wrote:> Hi there, > I''m following the ''Agile Web Development 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-- Posted via http://www.ruby-forum.com/.
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 Finch <christopher.finch@nuth.nhs.uk> wrote:> > Hi there, > I''m following the ''Agile Web Development 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Just because you ''re not paranoid doesn''t mean they aren''t out to get you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060810/22b7d734/attachment.html