Generic-user-small Daryl Gubler 2 posts

I am using Rails 2.0.1 and when I create the Subscribers Controller in the intro application I receive routing errors (No route matches ”/subscribers/create” with {:method=>:get}), not the Template Missing Error from Figure 1.4

 
Generic-user-small Daryl Gubler 2 posts

OK… apparently a restart of the WEBrick server resolves this issue.
You may want to make a note of this right after the creation of the Subscribers model… especially after you mention on page 29 that you only have to restart the WEBrick server after changes to the config folder.

This may be an issue with Rails on Windows?

 
Derek_small Derek DeVries 8 posts

Daryl,

I’ve only heard of this problem once before, and it was indeed from someone else using Windows. I’ll investigate, and make sure to add a note in the book if this is an issue.

Derek

 
Generic-user-small John Fiala 5 posts

Actually, I’m using Kubuntu 7.10, and I ran into the same problem when I created my Users controller. I was really wondering what was going on, and on a whim restarted WEBrick – at which point things started to work again.

 
Mike_small Mike Naberezny 4 posts

John,

You’re right, it turned out not to be a Windows-specific issue. It was just a coincidence that the first two users to experience it were on Windows. We’ve added a note to the newest version of the book (not released yet) that restarting the web server might be necessary.

Mike

 
Generic-user-small Dustin Tigner 8 posts

Hey guys,
I just ran into the same problem and I’m on Mac OS 10.4.11. I’ve been stuck on this for a while. I’m glad I found this post! I don’t recall any note stating that I should restart my WEBrick, and I should have a final version… could you tell me what page this note is on?

Does this mean I need to restart the WEBrick server for every model I add? How does this affect live servers?

~Dustin Tigner

 
Mike_small Mike Naberezny 4 posts

Dustin,

These notes are found under “Starting Up the Server”. In the latest PDF, that’s on page 29. In the printed book, it’s page 14.

Mike

 
Generic-user-small Dustin Tigner 8 posts

Mike,

Thanks for the clarification. I thought I had downloaded an older version. I must have read over it since it did not pertain to me at that moment. Perhaps with the second version of the book, this little note could be provided after: “Without this template, we are shown the error in Figure 1.4, on the previous page.” on page 37 of the PDF. It could read: “Remember, if you receive a redirecting error message, you may have to restart your server.” Just a suggestion. :)

Thanks again for your help! :)

~Dustin Tigner

8 posts, 5 voices