Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant Preferences::InstanceMethods::Preference #11

Open
jai-n opened this issue Oct 4, 2013 · 0 comments
Open

uninitialized constant Preferences::InstanceMethods::Preference #11

jai-n opened this issue Oct 4, 2013 · 0 comments

Comments

@jai-n
Copy link

jai-n commented Oct 4, 2013

trying to use in rails3.2.14

added gem ’preferences’ to gem file did bundle install seems to work
run the rails generate migration create_preferences,
edited to migration to create the table with timestamps
ran rake db:migrate
restarted rails server
added some prefs to user model
all working

tried to access a pref using @user.prefers_publish_profile
In user model i write like this
preference :publish_profile, :default => true

got uninitialized constant Preferences::InstanceMethods::Preference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant