saulabs/reportable — Issue #12: Error running $ rails g reportable_migration
Author: rantav
Created: 2012-01-31 07:25:33+00:00
State: open

Just starting out with reportable, and I get this error after adding the reportable gem to the Gemfile, running bundle and then generating the migration.

Have no clue what's going wrong...
`$ rails g reportable_migration`
Could not find "/Users/ran/.rvm/gems/ruby-1.9.3-p0@rails313b/gems/reportable-1.1.2/generators/reportable_migration/templates/migration.rb" in any of your source paths. Please invoke ReportableMigrationGenerator.source_root(PATH) with the PATH containing your templates. Currently you have no source paths.

In my Gemfile I have
gem 'reportable', :require => 'saulabs/reportable'

Then I ran `$ bundle install`

And then this failed:

`$ rails g reportable_migration`
Could not find "/Users/ran/.rvm/gems/ruby-1.9.3-p0@rails313b/gems/reportable-1.1.2/generators/reportable_migration/templates/migration.rb" in any of your source paths. Please invoke ReportableMigrationGenerator.source_root(PATH) with the PATH containing your templates. Currently you have no source paths.

To overcome this, I just manually created a migration file and then copied the contents of this https://github.com/saulabs/reportable-sample/blob/master/db/migrate/20100419104406_create_reportable_cache.rb to the file. It worked. But I guess you still want to fix the experience...

I'm sure I did something wrong... what did I miss?...