RailsCasts Pro episodes are now free!

Learn more or hide this

Jeremy Rowe's Profile

GitHub User: jeremywrowe

Site: http://bluemedora.com, http://bluemedora.com/blog

Comments by Jeremy Rowe

Avatar

register_template_handle accepts a glob of extensions, so instead of registering each template extension like:

ruby
ActionView::Template.register_template_handler(:md, MarkdownTemplateHandler)
ActionView::Template.register_template_handler(:markdown, MarkdownTemplateHandler)

you can do:

ruby
ActionView::Template.register_template_handler(:md, :markdown, MarkdownTemplateHandler)
Avatar

may I suggest changing the line: local recent=$(ls -t .rake_tasks~ Rakefile */.rake | head -n 1) to local recent=$(ls -t .rake_tasks~ Rakefile */.rake 2>/dev/null | head -n 1)

It removes error output for .rake_tasks~ not existing.