The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

"Agile Web Dev with Rails" Book Help??

Hey everyone! I was excited to see that Sitepoint has this Ruby forum now..

I'm pretty new to programming (just a little CF) and I picked up this book to learn Ruby on Rails.. The "hello script" tutorial at the beginning of the book has you create a rhtml page and save it in apps/views/say/. Then when you refresh the localhost:3000/say/hello you are supposed to see "Template is Missing" message replaced by your rhtml page..

I have done this and can't get the error message to go away. I've checked all the spellings for typos, restarted the Webrick server and everything I can think of. Any suggestions?

I've tried starting webrick in the "cookbook" directory and running http://localhost:3000/recipes/list and that says template missing as well (and it is right there in the views folder) so that seems like I have my webrick or ruby set up wrong or something?

Are there any setup settings for either ruby, rails or webrick that I might need to change from the defaults? That's the only thing I can think of..

Not to REALLY show how new I am to programming/servers, but while searching for a solution to my problem I keep reading about installing Apache in many rubyonrails installation guides. The book I'm working off of never mentions this, I had assumed that webrick would act as my server on my local machine. Should I have apache installed as well? Just an idea..

good, I didn't want to tackle that, but I thought maybe since I can't get the html pages (views) to display, but it works with ruby code that I might need an external server to serve the rhtml pages..

But that's cool that I don't. There must be some configuration problem then, because I have downloaded the source files to two other "learn rubyonrails" tutorials, and it can't find the templates on those either (and I know the coding is right in those..)

Should I reinstall Ruby/Rails/MySql again maybe?

Thanks again for all the help! (I had hoped to spend today working in this book

I created the rhtml file in notepad like I do all my html documents, and it was adding hello.rhtml.txt to the file name. It didn't display anything more than hello.rhml in my explorer window, but when I right-clicked the rhtml file and looked at the properties, it had hello.rhtml.txt as the file name..

So I had to go download scite editor to create the rhtml page, which now doesn't have the .txt after the .rhtml

You can set your own extension in Notepad too...in th save dialog, the dropdown with extension can be changed from text to something like "All extensions", if you do that you can put an extension on the file yourself. I believe. I haven't used Windows that much in a while. But anyway if you are happy with Scite, use it.