RailsCasts Pro episodes are now free!

Learn more or hide this

Netengine's Profile

GitHub User: net-engine

Site: www.netengine.com.au

Comments by Netengine

Avatar

Hi,

I implement the same solution but the mustache handler doesn't appear in the handlers list .

config/initializers/mustache_template_handler.rb

ruby
module MustacheTemplateHandler
  def self.call(template)
    if template.locals.include? :mustache
      "Mustache.render(#{template.source.inspect}, mustache).html_safe"
    else
      "#{template.source.inspect}.html_safe"
    end
  end
end
ActionView::Template.register_template_handler :mustache, MustacheTemplateHandler
error
Missing partial admin/services/users, admin/users, application/users with {:handlers=>[:erb, :builder, :coffee, :haml], :formats=>[:html], :locale=>[:en, :en]}. Searched in:
  * "/Users/damien/projects/moneywise/app/views"
  * "/Users/damien/.rvm/gems/ruby-1.9.2-p290/gems/kaminari-0.13.0/app/views"
  * "/Users/damien/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.0.1/app/views"

Does anybody had this error before ?

Avatar

check out my comment below. I've provided an example which daemonizes the mailman server in test / dev and production environments.

Avatar

Hey all. After watching this episode I integrated Mailman into one of our apps. I had to deal with many of the issues described above like daemonizing, testing and so on. I've put together a guide at

http://dansowter.com/mailman-guide/

Hope it helps someone.

Dan

Avatar

I would also love to see a video on this.