Ruby on Rails with Haml - how to switch from erb
haml, ruby, ruby-on-rails
Solution
Yes you can just delete the ERB version of any views you have converted over to HAML.
As for your other question, delete the public/index/html file. Next, you may want to add a PagesController and have an action in there like index, and a corresponding view, and put your "home page" stuff in there.
Then in your routes file, add:
root :to => "pages#index"
Problem
I am in the process of switching to HAML from erb files. I added the haml gem to my system. I created the app/views/layouts/application.html.haml file. Should I just delete the application.html.erb file? Also, there is still the /public/index.html file which gets rendered as the default page. I want to make my own default index.html.haml page. Where do I place it and how do I make the system render that file instead of the default index file? Thanks!