Error running $ rails g reportable_migration #12

Closed
rantav opened this Issue Jan 31, 2012 · 3 comments

Projects

None yet

4 participants

@rantav
rantav commented Jan 31, 2012

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?...

@rantav
rantav commented Jan 31, 2012

I get similar errors here as well:

$ rails generate reportable_raphael_assets
create public/javascripts
Could not find "/Users/ran/.rvm/gems/ruby-1.9.3-p0@rails313b/gems/reportable-1.1.2/generators/reportable_raphael_assets/templates/raphael.min.js" in any of your source paths. Please invoke ReportableRaphaelAssetsGenerator.source_root(PATH) with the PATH containing your templates. Currently you have no source paths.
$ rails generate reportable_jquery_flot_assets
exist public/javascripts
Could not find "/Users/ran/.rvm/gems/ruby-1.9.3-p0@rails313b/gems/reportable-1.1.2/generators/reportable_jquery_flot_assets/templates/jquery.flot.min.js" in any of your source paths. Please invoke ReportableJqueryFlotAssetsGenerator.source_root(PATH) with the PATH containing your templates. Currently you have no source paths.

@mdkarp
mdkarp commented Jun 22, 2012

I downloaded lennarts fix, and it fixed my issue. Should probably do this for this two....


If you want to use reportable's JavaScript graph output format, you also have to generate the JavaScript files:

rails generate reportable_raphael_assets
if you want to use Raphael or if you want to use jQuery and flot:

rails generate reportable_jquery_flot_assets
@thoughtpunch

I am experiencing the same issue as @rantav , even after pulling directly from @lennart 's fork/ref above. Any ideas?

@mk mk closed this in dcdedac Nov 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment