Results 1 to 4 of 4
Thread: Simply Rails 2 Ch.8 Controller
Dec 9, 2009, 16:29 #1
- Join Date
- Dec 2009
- 0 Post(s)
- 0 Thread(s)
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.