link_to_function replacement in Rails