1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-21 14:22:24 +00:00

Removed sign up page unless signed in

This commit is contained in:
Jacob Cody Wimer
2014-01-22 09:39:27 -05:00
parent 10de8d2110
commit 10320a2c76

View File

@@ -1,5 +1,5 @@
<h2>Sign up</h2> <h2>Sign up</h2>
<% if user_signed_in? %>
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %> <%= devise_error_messages! %>
@@ -14,5 +14,6 @@
<div><%= f.submit "Sign up" %></div> <div><%= f.submit "Sign up" %></div>
<% end %> <% end %>
<% end %>
<%= render "devise/shared/links" %> <%= render "devise/shared/links" %>