Open petrosp opened 8 years ago
@petrosp I am not familiar with how Rails engines, but I think error is caused by the fact that Rails engine do not have Rails.root
where as regular Rails apps do. (Also see: http://stackoverflow.com/questions/5117729/rails-is-there-an-engine-root)
I'll defer to @indirect decide how we should support haml-rails' use case for rails engines.
@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.