rails g web_app_theme:themed admin/posts Post --layout=admin --engine=haml
Isn't working properly, it's just a small bug. When you run the above command it does create all the views properly, however, the --layout=admin doesn't add the "Posts" link in my navigation bar. It does do it when I use --engine=erb.
It probably cannot find the match and thus, ignores it completely. Do you see where this is failing? It's not a show stopper as I can just manually add them to the layout but it's a nice feature to have it do it for you. : )
Isn't working properly, it's just a small bug. When you run the above command it does create all the views properly, however, the
--layout=admin
doesn't add the "Posts" link in my navigation bar. It does do it when I use--engine=erb
.The problem I believe is somewhere in this block:
https://github.com/pilu/web-app-theme/blob/master/lib/generators/web_app_theme/themed/themed_generator.rb
It probably cannot find the
match
and thus, ignores it completely. Do you see where this is failing? It's not a show stopper as I can just manually add them to the layout but it's a nice feature to have it do it for you. : )