link_to_remote_unless
Me ha sorprendido ver esta mañana que este helper no existía, así que entre Sergio y un servidor, en un esfurezo mental sin precedentes, hemos escrito el código del helper:
def link_to_remote_unless(condition, name, options = {}, html_options = {})
unless condition
link_to_function(name, remote_function(options), html_options)
else
name
end
end
