Agreed! I always just put this in my config/initializers/haml.rb: Haml.init_rails(binding) if defined?(Haml)
So much cleaner. Also, in Rails3 there should be a way to do this directly within the haml code itself. Maybe create a railtie? On Feb 16, 2010, at 5:33 AM, Thomas R. Koll wrote: > Hi, > > On running the installer for haml it creates a plugin with only this init.rb > > http://github.com/nex3/haml/blob/master/init.rb > > Copy it to vendor/plugins/haml/init.rb > > > Nathan, wouldn't it be about time to move that file into config/initializers > instead of having that sparse plugin? > > ciao, tom > > > Am 16.02.2010 um 13:16 schrieb vanderkerkoff: > >> Hello everyone >> >> I've upgraded a couple of projects from bundler 0.8 to 0.9, no >> problems so far. I then started to upgrade another project that uses >> haml. >> >> I'm running bundle install --relock and I've got haml in the gemfile. >> >> What is happening when I try to view the server, running as script/ >> server or with passenger is that it appears haml is not being found, >> lot's of missing template errors. >> >> "Template is missing >> >> Missing template cas_sessions/new.erb in view path app/views" > > > > -- > Thomas R. "TomK32" Koll > just a geek trying to change the world > http://ananasblau.com || http://photostre.am || http://photolog.at > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to h...@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.