RailsApps/rails-devise-roles

Haml Erubi issue

zinefer opened this issue · 2 comments

$ rails server
=> Booting Puma
=> Rails 5.0.5 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
.rvm/gems/ruby-2.3.1/gems/haml-5.0.2/lib/haml/helpers/safe_erubi_template.rb:5: warning: toplevel constant Erubi referenced by ActionView::Template::Handlers::ERB::Erubi
Exiting
.rvm/gems/ruby-2.3.1/gems/haml-5.0.2/lib/haml/helpers/safe_erubi_template.rb:5:in `<module:Haml>': superclass must be a Class (Module given) (TypeError)

Also, I think leaving the pgsql hostname blank still inserts localhost into the database.yml which is incorrect.

Add gem "haml", "~> 5.0.3" to your gemfile to fix