I would like to know the method that will be called from
before_filter, is it possible?
for example
class TestController < ApplicationController
before_filter :tell_method_name
protected
def tell_method_name
#tell the name of the method that is going to be called
end
def index
…
end
end
so if i call http://localhost:3000/test, it will call tell_method_name
and display “index”, how can i do it in here?