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
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
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,
3 matches
Mail list logo