benzelano / test_lh_import

1 stars 0 forks source link

rails 3 working? #99

Open benzelano opened 13 years ago

benzelano commented 13 years ago

sopwithpup opened this issue

trying to use in rails3.

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

tried to access a pref using @user.prefers(:weekly_request)

got uninitialized constant Preferences::InstanceMethods::Preference

Am i missing something??

TIA

D

original LH ticket

This ticket has 0 attachment(s).

benzelano commented 13 years ago

sopwithpup commented

Just installed it as a plugin rather than using bundle and its ok

Thanks, seems to work very well

Just out of interest how does one turn it into a bundleable gem rather than a plugin?

benzelano commented 13 years ago

Zabba commented

@sopwithpup, have a look at this: http://patshaughnessy.net/2009/12/12/how-to-convert-a-rails-plugin-into-a-gem