replace link_to_function with link_to for rails 4.1