Last active
January 10, 2016 13:55
-
-
Save franzejr/0b233e0f6632b096f3c6 to your computer and use it in GitHub Desktop.
Using JS.ERB in Ruby (sick)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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