-
-
Save Spaceghost/4026720 to your computer and use it in GitHub Desktop.
local variable in js.erb
This file contains hidden or 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
| undefined local variable or method `course' for #<#<Class:0x0000000387d040>:0x000000043ebda0> |
This file contains hidden or 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
| $(".modal-header h3").html("<%= @course.name %>") |
This file contains hidden or 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
| respond_to do |format| | |
| format.js | |
| end | |
| def show | |
| @course = OfferedCourse.find(params[:id]) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment