Instead of getting: Shovell
A random link: Sitepont Forums,
I got:
ActionController::RoutingError in Story#index
Showing app/views/story/index.rhtml where line #3 raised:
story_url failed to generate from {:action=>"show", :controller=>"story", ermalink=>nil}, expected: {:controller=>"story", :action=>"show"}, diff: {ermalink=>nil} (I don't know why a smilie icon shows up at these places)
Extracted source (around line #3):
1: A random link:
2: <%= link_to @story.name,
3: story_url( ermalink => @story.permalink) %> (I don't know why a smilie icon shows up at these places)
I can shed some light on this. This is because the book doesn't mention that the database entries need to be updated with the permalinks. I am not sure if this was intentional (to get users to go in, and attempt some ruby code themselves) or just mistake.
If you want to just keep going, just enter your database and add some permalinks in the db, and you'll be on your way.
Thanks for the answer. I had more than one name in the database but just a permalink on one record. I added the permalinks for the rest of them and that fixed the problem. Thanks again.
Bookmarks