Re: [Rails] Re: has_many - undefined method!

2010-09-22 Thread Colin Law
On 22 September 2010 21:54, Al Rowan wrote: > class User < ActiveRecord::Base >  attr_accessor :password > >  validates :email, :uniqueness => true, >                    :length => { :within => 5..50 }, >                    :format => { :with => > /^...@][\w.-]+@[\w.-]+[.][a-z]{2,4}$/i } >  valida

[Rails] Re: has_many - undefined method!

2010-09-22 Thread Al Rowan
activesupport (3.0.0) lib/active_support/whiny_nil.rb:48:in `method_missing' app/controllers/groups_controller.rb:8:in `create' actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action

[Rails] Re: has_many - undefined method!

2010-09-22 Thread Al Rowan
class User < ActiveRecord::Base attr_accessor :password validates :email, :uniqueness => true, :length => { :within => 5..50 }, :format => { :with => /^...@][\w.-]+@[\w.-]+[.][a-z]{2,4}$/i } validates :password, :confirmation => true,