Skip to content

Instantly share code, notes, and snippets.

@monkbroc
Created February 18, 2015 17:45
Show Gist options
  • Select an option

  • Save monkbroc/7d9cc5b1c08ab627e926 to your computer and use it in GitHub Desktop.

Select an option

Save monkbroc/7d9cc5b1c08ab627e926 to your computer and use it in GitHub Desktop.
OmniAuth sign in view
<div class="signin-container">
<h2>Sign in with</h2>
<%- if devise_mapping.omniauthable? %>
<ul class="image-list signin-icons">
<%- resource_class.omniauth_providers.each do |provider| %>
<li><%= link_to omniauth_authorize_path(resource_name, provider), :title => "Sign in with #{provider.to_s.titleize}" do %>
<%= image_tag "oauth_#{provider}.png", :alt => "Sign in with #{provider.to_s.titleize}" %><% end -%>
</li>
<% end %>
</ul>
<% end -%>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment