Skip to content

Instantly share code, notes, and snippets.

@franzejr
Last active January 10, 2016 13:55
Show Gist options
  • Save franzejr/0b233e0f6632b096f3c6 to your computer and use it in GitHub Desktop.
Save franzejr/0b233e0f6632b096f3c6 to your computer and use it in GitHub Desktop.
Using JS.ERB in Ruby (sick)
def my_controller_method
...
respond_to do |format|
format.js{
render :template => 'create.js.erb'
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment