Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Including custom helpers in all your application
- class ApplicationController < ActionController::Base
- helper :javascript
- end
- ## app/helpers/javascript_helper.rb
- module JavascriptHelper
- def banana
- return "cake"
- end
- end
Add Comment
Please, Sign In to add comment