rake - Rails friendly_id: undefined method `slug` on production -


i'm trying introduce dynamic_sitemaps on resources friendly_id. issue production rails (rake / rails c) doesn't see slug method. i've try specify force specifying attr_accessible :slug, doesn't either.

$ rake sitemap:generate generating sitemap... rake aborted! undefined method `slug' #<article:0xa9e4d14> 

the funny thing works smoothly on local environment, , should not different capistrano/rvm deployment.

the column exists in db , used rails app (which works fine too).

added: should tied either environment or specific gem version issue, i'm not sure 1 trouble, , how debug it. same pair works different project pretty similar libraries bundle.

as capistrano dirty work, forgot rails_env environment variable - console , cron job tried operate against dev db , failed.


Comments