When I put this in the application_helper.rb, it is available to use in the view
application_helper.rb
def foo "bar"