Skip to content

Instantly share code, notes, and snippets.

@trak3r
Created February 7, 2013 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trak3r/4731261 to your computer and use it in GitHub Desktop.
Save trak3r/4731261 to your computer and use it in GitHub Desktop.
this works:
%script= raw render 'show.js.coffee'
but it throws this warning:
DEPRECATION WARNING: Passing the format in the template name is deprecated. Please pass render with :formats => [:js] instead.
--
this doesn't work:
%script= raw(render('show', formats: [:js]))
because of this error:
Missing partial ... with {... :formats=>[:html], ...
--
WTF is it ignoring the "formats" parameter it told me to use!?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment