Displaying 1 result from an estimated 1 matches for "tidyit".
Did you mean:
tidbit
2006 Apr 14
2
Puzzled with filters
Hello everyone!
I''m trying to create an after filter for all my actions in all
controllers. I put it in application controller (application.rb).
class ApplicationController < ActionController::Base
after_filter :tidyit
def tidyit
xxxx # syntax error - intentionally
end
end
I have a Example (example_controller.rb) controller with index action.
class ExampleController < ActionController::Base
def index
@result = "Hello, world!"
end
end
When I try to access server:3000/example...