You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys,
While the rails g haml:application_layout works fine in nornal Rails app, it does not when I run it from an engine:
~/railsengine$ rails g haml:application_layout
~/railsengine/vendor/bundle/gems/haml-rails-0.9.0/lib/rails/generators/haml/application_layout/application_layout_generator.rb:11:in `convert': undefined method `join' for nil:NilClass (NoMethodError)
I run it correctly without errors under ~/railsengine/spec/dummy:
~/railsengine/spec/dummy$ rails g haml:application_layout
Success! app/views/layouts/application.html.haml is created.
Please remove the erb file: app/views/layouts/application.html.erb
Is haml-rails designed to not to run in Rails engines?
Thanks a bunch.
The text was updated successfully, but these errors were encountered:
@petrosp as currently coded, the haml-rails generators do not work with engines. I honestly have no idea how to write generators that work with engines, but I'd be willing to merge a pull request that handles it correctly.
Hey guys,
While the
rails g haml:application_layout
works fine in nornal Rails app, it does not when I run it from an engine:I run it correctly without errors under
~/railsengine/spec/dummy
:Is
haml-rails
designed to not to run in Rails engines?Thanks a bunch.
The text was updated successfully, but these errors were encountered: