Skip to content

Instantly share code, notes, and snippets.

@johno
Last active December 17, 2015 16:38
Show Gist options
  • Save johno/5639816 to your computer and use it in GitHub Desktop.
Save johno/5639816 to your computer and use it in GitHub Desktop.
Trigger partial swap upon button click.
<%= link_to 'Notify Yourself',
'#',
onclick: "uceem.fade('#notification_prompt', '#{ j render(partial: 'notify_yourself_form').html_safe }');",
class: 'btn btn-primary btn-large' %>
<%= link_to 'Notify Another User',
'#',
onclick: "uceem.fade('#notification_prompt', '#{ j render(partial: 'notify_another_user_form').html_safe }');",
class: 'btn btn-primary btn-large' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment