Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # routes.rb:
- get 'sign_in', :to => 'sessions#new'
- # sessions_controller.rb:
- class SessionsController < ApplicationController
- def new
- params[:name] ||= cookies[:user_subdomain]
- end
- ...
- end
Add Comment
Please, Sign In to add comment