I''m getting the error ''empty symbol string'' when I
call save on a valid
model object.
ArgumentError in Signup#create
empty symbol string
|/lib/usermonitor.rb:73:in `const_get''
/lib/usermonitor.rb:73:in `user_model''
/lib/usermonitor.rb:17:in `create''
/app/controllers/signup_controller.rb:26:in `create''
script/server:49|
Nothing particularly special about the action:
def create
@user = User.new(params[:user])
if @user.save
logger.info ''save success''
else
render :action=>''plan''
end
end
The model''s pretty straight forward too:
class User < ActiveRecord::Base
validates_uniqueness_of :username
validates_format_of :username, :with => /^[0-9a-zA-Z]+$/
validates_presence_of :first_name, :last_name, :email, :password
validates_confirmation_of :password
validates_acceptance_of :terms_and_conditions
end
It''s prob something obvious, but it''s 2:30am and the
caffeine''s wearing
off :o)
Thanks in advance!
--
R.Livsey
http://livsey.org