RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jeremywrowe
Site: http://bluemedora.com, http://bluemedora.com/blog
register_template_handle accepts a glob of extensions, so instead of registering each template extension like:
ActionView::Template.register_template_handler(:md, MarkdownTemplateHandler) ActionView::Template.register_template_handler(:markdown, MarkdownTemplateHandler)
you can do:
ActionView::Template.register_template_handler(:md, :markdown, MarkdownTemplateHandler)
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.
register_template_handle accepts a glob of extensions, so instead of registering each template extension like:
you can do:
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.