Replacing link_to_function and fixing filter.rb