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 Refinery::Blog::Post::FriendlyId #296

Closed
joshuacronemeyer opened this issue Oct 25, 2012 · 0 comments
Closed

uninitialized constant Refinery::Blog::Post::FriendlyId #296

joshuacronemeyer opened this issue Oct 25, 2012 · 0 comments

Comments

@joshuacronemeyer
Copy link

I'm adding refinerycms-blog to my existing Rails 3.2.8 app. I've got refinerycms-blog (2.0.4) bundled. Generation step worked fine but when I try to run the generated migrations I see:

rake aborted!
An error has occurred, this and all later migrations canceled:

uninitialized constant Refinery::Blog::Post::FriendlyId
/Users/oldjosh/.rvm/gems/ruby-1.9.2-p290@collegeset/gems/refinerycms-blog-2.0.4/app/models/refinery/blog/post.rb:7:in `<class:Post>'
/Users/oldjosh/.rvm/gems/ruby-1.9.2-p290@collegeset/gems/refinerycms-blog-2.0.4/app/models/refinery/blog/post.rb:6:in `<module:Blog>'
/Users/oldjosh/.rvm/gems/ruby-1.9.2-p290@collegeset/gems/refinerycms-blog-2.0.4/app/models/refinery/blog/post.rb:5:in `<module:Refinery>'
/Users/oldjosh/.rvm/gems/ruby-1.9.2-p290@collegeset/gems/refinerycms-blog-2.0.4/app/models/refinery/blog/post.rb:4:in `<top (required)>'
/Users/oldjosh/JMS/jma11001_college_set/db/migrate/20121025225948_create_blog_structure.refinery_blog.rb:5:in `up'

I got around this by adding
require 'friendly_id'
to the migration with the problem, but thought I'd send this your way to get some insight on the problem.

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

2 participants