error using gem has_friendship

25 views
Skip to first unread message

fugee ohu

unread,
Feb 20, 2016, 2:45:01 PM2/20/16
to Ruby on Rails: Talk
i added the gem to my gemfile and ran bundle update but when i run `rails generate has_friendship` i get the error that rails couldn't find this generator on rails 4.2.5

Walter Lee Davis

unread,
Feb 20, 2016, 2:52:16 PM2/20/16
to rubyonra...@googlegroups.com

> On Feb 20, 2016, at 2:45 PM, fugee ohu <fuge...@gmail.com> wrote:
>
> i added the gem to my gemfile and ran bundle update but when i run `rails generate has_friendship` i get the error that rails couldn't find this generator on rails 4.2.5
>

As others have noted, this gem is pretty old, and likely has not been updated to support newer Rails. At some point, it became pretty common for generator tasks to require a colon-separated signature: rails generate bootstrap:install rather than rails generate bootstrap_install. Read the source code for your gem on Github, and see what the name of the generator file is and what each of the defined tasks are within it. See if you can get it to run by calling rails generate [whatever the generator file is named, minus the _generator part]:[whatever the task method is named].

Walter

> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cbc01ef3-ee85-4413-8d4f-fd55e6b946bb%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages