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.

Simply Rails 2 Ch.8 Controller

I followed this nice book, but in Chapter 8 I ran into trouble when creating login form.

I think I did everything right, didn't use code base but typed code manually. I can enter anything into login form but the redirect doesn't function:

render :action=>'new'

redirect_to stories_path

Maybe it has something to do with the update fail that is described in Chapter 1. I ran into errors when using console commands to update rails and ruby.

Chapter 8 describes that the code in sessions_controller.rb should skip create.html.erb view when action 'new' is used, that is the form written earlier is submitted, but that doesn't occur in my case.

Anyway, let's see wether it works now. Getting a little tired with this mistake hunting.

*Edit*
Still, there is this second issue - back in who-knows-what-chapter when the button "shove it" was created, in my case it does not work as expected. I press the button but no redirect. I refresh the page manually and I see that the score has increased. I could use some help debugging that too. I use WinXp and FireFox 3.5.5.

Thanks

Last edited by axelsword; Dec 10, 2009 at 14:42.
Reason: To add few things