Skip to content

Commit 648e18e

Browse files
committed
Update README.md
1 parent c9ce541 commit 648e18e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ After the generator finishes, you will be prompted to add some JavaScript to you
2121
For ERB:
2222
```
2323
<script>
24-
jQuery(function() {
25-
window.$this = new (App.#{controller_path.split(/\/|_/).map(&:capitalize).join('')} || App.Base)();
26-
if (typeof $this.#{action_name} === 'function') {
27-
return $this.#{action_name}.call();
28-
}
29-
});
24+
jQuery(function() {
25+
window.$this = new (App.<%= controller_path.split(/\/|_/).map(&:capitalize).join('') %> || App.Base)();
26+
if (typeof $this.<%= action_name %> === 'function') {
27+
return $this.<%= action_name%>.call();
28+
}
29+
});
3030
</script>
3131
```
3232

0 commit comments

Comments
 (0)