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
ruby-on-rails-4 rapidfire-gem


source to share


No one has answered this question yet

Check out similar questions:

17
Received: "Migrations are pending, run" bin / rake db: migrate RAILS_ENV = development "to resolve this issue." after cloning and migrating the project
4
How to use Rails 4.1 to preview emails defined inside a mountable engine
4
Rails: Couldn't find rake-10.1.1 in any of the sources
4
Rake Task in Rails engine 4.2 with fast firefighting error: already initialized constant STATS_DIRECTORIES
3
Using Doorkeeper inside Rails Engine
2
the rails server won't start, I get an error with rails, spring and a couple of other "required" errors
1
NameError: Uninitialized Rapidfire persistent motor installed on root app Routing did not have a valid gemspec value
0
Improving Rails Load Performance with Spree Engine
0
Rails Engine: problem installing local gem
0
Rails mountable engine: insert data strings into migrations



All Articles
Loading...
X
Show
Funny
Dev
Pics