Problem solved - issue was that my lacklustre imagination had me name my rails project haml .
Up vote 0 down vote favorite share g+ share fb share tw.
I am attempting to use HAML with rails and have views be generated with HAML instead of ERB. I added: gem 'haml' gem 'haml-rails' to my Gemfile and did bundle install. $ rails g controller home index /Library/Ruby/Gems/1.8/gems/railties-3.1.3/lib/rails/script_rails_loader.
Rb:11: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 /Library/Ruby/Gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime. Rb:136: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 /Users/jrm/src/rails/haml/config/application. Rb:14: uninitialized constant Haml::Rails::Application (NameError) from /Library/Ruby/Gems/1.8/gems/railties-3.1.3/lib/rails/commands.
Rb:21:in `require' from /Library/Ruby/Gems/1.8/gems/railties-3.1.3/lib/rails/commands. Rb:21 from script/rails:6:in `require' from script/rails:6 Using haml gem seperately works without error, but views generated are ERB and not HAML. How can I configure rails 3.1 to generate HAML views?
Ruby-on-rails haml link|improve this question edited Nov 27 '11 at 16:32Michael Durrant7,87721345 asked Nov 27 '11 at 16:27Jonathan Maddison421414 100% accept rate.
Problem solved - issue was that my lacklustre imagination had me name my rails project haml. Not a good idea. Created a new project (NOT called haml) Added to Gemfile: gem 'haml' gem 'haml-rails' Volia views are generated as HAML instead of ERB $ rails g controller home index create app/controllers/home_controller.
Rb route get "home/index" invoke haml create app/views/home create app/views/home/index.html.haml.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.