Re: using ActiveRecord::Validations::ClassMethods

2009-05-21 Thread David Susco
Thanks, I've gotten it to work. On this part though: @user = User.new params[:user Is the closing bracket missing? Is params something from Rails that allows you to create the user instance variable all in one line instead of doing something like this: @user = User.new( :id = input.id,

Re: using ActiveRecord::Validations::ClassMethods

2009-05-21 Thread Eric Mill
Hah, yeah, the bracket is missing. And in Camping, the equivalent of Rails' params is @input. -- Eric On Thu, May 21, 2009 at 9:50 AM, David Susco dsu...@gmail.com wrote: Thanks, I've gotten it to work. On this part though: @user = User.new params[:user Is the closing bracket missing? Is

Re: using ActiveRecord::Validations::ClassMethods

2009-05-21 Thread Magnus Holm
params is simply Rails' version of @input. If you name your keys user[id] and user[name] in the HTML, then @input.user should contain a Hash like { 'id' = ..., 'name' = ... } (maybe the keys are Symbols; I don't remember at the moment) //Magnus Holm On Thu, May 21, 2009 at 15:50, David Susco