-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount in Rails engine #558
Comments
ok, I've removed
to and that exception is gone now, but when I go to the mounted route once my parent application started, I've got a new exception I wonder should we have an Ember CLI configuration setting similar to Device when it is mounted in engine?
|
the reason why I've got 'Routing Error uninitialized constant MyEngine::EmberCli' was because of
if I comment
and finally in
it works! However I need to make it work with |
finally managed to make it work with I've set in routing custom controller
and added this controller to my engine
and it works! I am not sure is this the right way to do it? Happy to send a PR to updated Readme if this is the correct way how to add P.S. I have not had a chance to deploy it, in my case it is Heroku, so it may not actually work in production... will see |
@paxer thanks for working out all of those details! My gut reaction to your comments in #558 (comment) is that you're taking the proper approach by namespacing your Ember controller in the module that corresponds to your engine, though my experience with Rails engines is pretty limited.
That would be great! I'd love to look over that PR if you're willing to submit one. |
Hi,
I want to mount Ember frontend in the Rails engine, I am following the steps and since it is Rails engine, I've added
require_dependency 'ember_cli'
to the initializer, however when I try to start the engine's parent app - I've gotany tips how to make it work?
Thanks
Which operating system and version is the project developed on?
macOS
Which version of
ruby
is the project developed on?2.5.0
Which version of
npm
is the project developed on?5.6.0
Which version of
ember-cli
is the project developed on?2.18.2
What is the
rails
version?5.1.4
What is the
ember-cli-rails
version (fromGemfile
)?0.10.0
What is the
ember-cli-rails-addon
version (frompackage.json
)?0.10.0
Is your application server multi-threaded
(such as
puma
andunicorn
) or is it multi-process (such as thin and webrick)?webrick
What are the contents of
config/initializers/ember.rb
?What are the contents of the Rails' view that renders the Ember application?
blank
How are the EmberCLI-related routes defined?
How is the application deployed?
The text was updated successfully, but these errors were encountered: