Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix routeas

  • Loading branch information...
commit 263cc14caa9d7e3488d1f05fc533c73cbbf1d593 1 parent 22167af
Scott Silverman scottsil authored
Showing with 6 additions and 7 deletions.
  1. +1 −1  app/views/users/splash.html.erb
  2. +5 −6 config/routes.rb
2  app/views/users/splash.html.erb
View
@@ -1,5 +1,5 @@
<div id="splash_action">
- <%= link_to eol_signup_path, {:class => "button sign_up"} do %>
+ <%= link_to 'eol', {:class => "button sign_up"} do %>
Sign up now<span class="arrow_sign_up"> ▶</span>
<% end %>
11 config/routes.rb
View
@@ -32,7 +32,10 @@
resources :students
# devise_for :users
- devise_for :users, :path_names => { :sign_in => 'login', :sign_out => 'logout', :password => 'secret', :confirmation => 'verification', :unlock => 'unblock', :registration => 'register'}, :controllers=>{:registrations=>"registrations"}
+ devise_for :users, :path_names => { :sign_in => 'login', :sign_out => 'logout', :password => 'secret', :confirmation => 'verification', :unlock => 'unblock', :registration => 'users#eol'}, :controllers=>{:registrations=>"registrations"}
+ devise_for :users do
+ get "users/register/sign_up" => "users#eol"
+ end
devise_for :admins
as :user do
@@ -46,12 +49,8 @@
resources :users
- devise_for :users do
- get "users/register/sign_up" => "users#eol", :as => :eol_signup
- end
-
get "/welcome" => "users#splash"
- get "/solong" => "users#eol"
+ get "/eol" => "users#eol"
# devise_for :admins, :controllers => { :sessions => "admins/sessions" }
Please sign in to comment.
Something went wrong with that request. Please try again.