Sign In
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>- <%= f.label :email %><%= f.text_field :email %>
- <%= f.label :password %><%= f.password_field :password %> <% if devise_mapping.rememberable? -%>
- <%= f.label :remember_me %><%= f.check_box :remember_me %> <% end -%>
<%= f.submit "Sign in" %>
<%= render :partial => "devise/shared/links" %> <% end %>Sign In through social media
<% if @authentications %>
<% unless @authentications.empty? %>
You can sign in to this account using:
<% for authentication in @authentications %>
<% end %>
<%= image_tag "#{authentication.provider}_32.png", :size => "32x32" %>
<% end %>
<%= authentication.provider.titleize %>
<%= authentication.uid %>
<%= link_to "X", authentication, :confirm => 'Are you sure you want to remove this authentication option?', :method => :delete, :class => "remove" %>
Add another service to sign in with:
<% else %>We optionally allow you to sign in through your favorite social media platform, too.
<% end %> <%= image_tag "facebook_50.gif", :size => "50x50", :alt => "Facebook" %>