Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created December 23, 2011 09:54
Show Gist options
  • Save mahemoff/1513760 to your computer and use it in GitHub Desktop.
Save mahemoff/1513760 to your computer and use it in GitHub Desktop.
Default data-remote='true' and data-type='html' for HIJAX style apps
def remote_link_to(name, path, options={})
options['remote'] = 'true'
options['data-type'] = 'html'
link_to(name, path, options)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment