I assume you have a rails server running?
Theres two possibilities, firstly you could make say a helper method in the controller by using:
helper_method :say
in your controller.
Alternatively, the better solution would be move your say method to the home_helper(?).rb helper file.
you can call this by just using <% say %> in your view file.
Note that a puts
well put whatever is in your string to STDOUT, not output in your views, if all you wanna do is write a bit of text, you would be better off with just outputting a string and using the erb output mechanism in your view, e.g.
application_helper.rb
def say
"hello"
end
index.html.erb
<%= say -%>
puts is very useful for unit test debugging where you wanna find out the contents of an object
puts @some_object.inspect
Whereas if you want output to the log, you could do something like:
logger.error "hello"