Skip to content

Commit b5a58d2

Browse files
committed
take away registration links
1 parent bc6a2ce commit b5a58d2

File tree

5 files changed

+2
-32
lines changed

5 files changed

+2
-32
lines changed

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class User < ActiveRecord::Base
22
# Include default devise modules. Others available are:
33
# :token_authenticatable, :confirmable,
44
# :lockable, :timeoutable and :omniauthable
5-
devise :database_authenticatable,
5+
devise :database_authenticatable, :registerable,
66
:recoverable, :rememberable, :trackable, :validatable
77

88
# Setup accessible (or protected) attributes for your model
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
11
<h2>Sign up</h2>
22

3-
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
4-
<%= devise_error_messages! %>
5-
<%= flash[:recaptcha_error] %>
6-
7-
<div><%= f.label :email %><br />
8-
<%= f.email_field :email, :autofocus => true %></div>
9-
10-
<div><%= f.label :password %><br />
11-
<%= f.password_field :password %></div>
12-
13-
<div>
14-
<%= recaptcha_tags(stoken: false, ajax: true) %>
15-
</div>
16-
<div><%= f.submit "Sign up" %></div>
17-
<% end %>
3+
Actually no, don't sign up. Go to gggreplays.com instead.

app/views/devise/shared/_links.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
<%= link_to "Sign in", new_session_path(resource_name) %><br />
33
<% end -%>
44

5-
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6-
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
7-
<% end -%>
8-
95
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
106
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
117
<% end -%>

app/views/dialogs/_join_aio.html.erb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
<div class="form form-join">
22
<div class="logo logo30"><em>GG</em>TRACKER</div>
33

4-
<%= semantic_form_for(resource, :method => 'post', :url => registration_path(:user)) do |f| %>
5-
<%= f.inputs do %>
6-
<%= f.input :email, :label => false, :input_html => {:placeholder => 'E-Mail Address'} %>
7-
<%= f.input :password, :label => false, :input_html => {:placeholder => 'Password'} %>
8-
<%= f.action :submit, :as => :button, :label => 'sign up' %>
9-
<% end %>
10-
<% end %>
11-
124
<a href="" class="toggle" data-toggle="form-login">login</a>
135
<a href="" class="toggle" data-toggle="form-password">forgot password?</a>
146
</div>

app/views/layouts/application.html.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,6 @@ _\%_____/\%_____/\%_____/\%_/ /\%___fx/\%_____/\__/ /\%_____/\__/ /.com_
220220
</ul>
221221
</footer>
222222

223-
<div id="join" class="dialog dialog-signup">
224-
<%= render('dialogs/join_aio', :resource => User.new) %>
225-
</div>
226-
227223

228224

229225
<% if !controller.is_a?(HomeController) %>

0 commit comments

Comments
 (0)