I intend to override pagination_links method.
I added following lines of code in application_helper.rb
module ActionView
module Helpers
def pagination_links(paginator, options={}, html_options={})
raise(“boom!!”)
end
end
end
But my code is not executing my code. The view is still using the method
pagination_links from rails.
What’s the correct way to override this method?
-=-
On 4/26/06, Neeraj K. [email protected] wrote:
end
end
But my code is not executing my code. The view is still using the method
pagination_links from rails.
What’s the correct way to override this method?
-=-
Needs to be:
module ActionView
module Helpers
module PaginationHelper
def pagination_links(paginator, options={}, html_options={})
# your code
end
end
end
end
Thanks Wilson. That was quick. Appreciate it.
-=-