On 9 February 2011 11:49, jackster the jackle <li...@ruby-forum.com> wrote: > I changed the order of my "def signup" as follows: > > class UserController < ApplicationController > > public > def signup > return unless request.post? > @user = User.new(@params[:user])
It should be params[..] not @params[..] I thought you said the code worked before you upgraded. I also suggest you have a look at the Rails Guide on debugging (and the other guides in fact). That will show you how to use ruby-debug to break into the code and inspect the data. In this case, for example, you could have broken in before the @user= line and you would see that @params was nil, which would have made you look more closely at it and realise the typo. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.