Created
February 24, 2016 04:25
-
-
Save sebyx07/76995905d3174de4bd6d to your computer and use it in GitHub Desktop.
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
#helpers/hash_store.rb | |
module HashStore | |
def my_hash | |
{ok: true} | |
end | |
end | |
#controllers/my_controller.rb | |
class MyController < ActionController::Base | |
include HashStore | |
helper_method :my_hash | |
end | |
#views | |
#<h3><%= my_hash %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment