Sutto / slugged

Super simple slugs for ActiveRecord 3+, with slug history. Formerly known as Pseudocephalopod.
MIT License
86 stars 16 forks source link

undefined method "is_sluggable " #2

Closed amoslanka closed 13 years ago

amoslanka commented 13 years ago

Having a little trouble on the home stretch of using this plugin. Would really love to get all in place, I like what I see in this plugin.

After getting gem installed and migrations all in place, the is_sluggable, when placed in a model, is throwing an error stating its undefined.

Not sure I understand why the method wouldn't be defined. I've followed the readme as close as possible. Has anyone come across this before?

Sutto commented 13 years ago

I'm assuming by Gem installed you mean that you placed it in your Gemfile / required it somewhere else as well?

The issue is most likely that the ar extensions aren't being loaded - open up IRB and check the results of "defined?(Slugged)" and then check "defined?(Slugged::ActiveRecordMethods)".

amoslanka commented 13 years ago

Sorry for the late reply. This issue is resolved for me. It can be closed.

eemi commented 13 years ago

I have the same problem (I get undefined method "is_sluggable"), in the console the output for defined?(Slugged) and defined?(Slugged::ActiveRecordMethods) is "constant".

I'm fairly new to Rails and I dont know if getting constant is a good or a bad thing!

eemi commented 13 years ago

Sorry. After restarting the server the problem is gone.