Mounting the motor rail within the mounted rails

I am studying a tutorial on quick start motors.

I am trying to use a fastfire gem inside a mountable rail just generated

rails plugin new blorgh --mountable

      

inside blorgh.gemspec

I added

s.add_dependency "rapidfire"

      

and then install the package

quickfire comes with some installation instructions

bundle install
bundle exec rake rapidfire:install:migrations
bundle exec rake db:migrate

bundle exec rails generate rapidfire:views

      

now I can only run them inside the test / dummy app so that the migration files go to the dummy app and the views actually go to the root app. I want quickfire to be engine mounted. Rapidfire is also the engine.

I think the views end in the root application because its rails generate task and not a rake task

When I try to do rake tasks inside the app directory I get these two errors

/railties-4.2.0/lib/rails/tasks/statistics.rake:4: warning: already initialized constant STATS_DIRECTORIES

railties-4.2.0/lib/rails/tasks/statistics.rake:4: warning: previous definition of STATS_DIRECTORIES was here
rake aborted!
Don't know how to build task 'rapidfire:install:migrations'

      

Is there a way to achieve this? What are some possible problems even if there is work to be done?

I use rails 4.2

+3


source to share





All Articles