Results 1 to 5 of 5
Thread: Simply Rails 2 Page 160 problem
Apr 10, 2012, 06:17 #1
- Join Date
- Apr 2012
- 0 Post(s)
- 0 Thread(s)
Simply Rails 2 Page 160 problem
I am new here and would appreciate any advice.
I am using the latest versions of rails / ruby / rvm etc as of about 2 days ago (when I set everything up).
I created a new view (~app/views/stories/new.html.erb) by creating a blank document placing some code in it and saving it. When I try to view it however (http://localhost:3000/stories/new) it reports a routing error.
Is there something I am missing here? Do I need to somehow report the presence of this new view? I noted that in the text the index.html.erb view (which displays correctly - although I have to actually type "~stories/index" as the url rather than it just being found at "stories/ ") is created automatically when I generated the controller. I couldn't find any other way to generate a new view - except by using a scaffold? It's quite frustrating as it means I can no longer continue with the tutorial in the book!
Thanks for any advice you can give me.