You can clone with
love the gem. Txs. Everything works except for 1 things. Whenever I try to use the move_to_child_of method exactly as in the cheatsheet I get an error saying NameError: uninitialized constant Category::Category. What is going wrong here?
Pretty straight forward:
class Category < ActiveRecord::Base
attr_accessible :name, :ics_url, :image_url
I can't think why.
Ran into this just now (on save) and thought I'd mention what we found in case it helps--our project was using this snippet to automatically reload the app, and somehow reloading the including model was the cause. Can't say for sure what's happening, but removing the initializer fixed it.