This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'mysql2' | |
#gem 'haml-rails' | |
gem 'sass' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def subdomain_junk | |
if request.subdomain == 'signup' | |
unless ((request.path == new_user_registration_path) || (request.path == '/accounts/check_exists') || (request.path == '/users')) | |
redirect_to new_user_registration_path | |
end | |
elsif request.path == new_user_registration_path | |
unless ((request.subdomain == 'signup') || (request.path == '/accounts/check_exists')) | |
if request.port == 80 | |
redir_url = request.protocol + 'signup' + '.' + request.domain + new_user_registration_path | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- model_class = Account | |
.page-header | |
%h1=t '.title', :default => model_class.model_name.human.pluralize | |
%table.table.table-striped | |
%thead | |
%tr | |
%th= model_class.human_attribute_name(:name) | |
%th= model_class.human_attribute_name(:subdomain) | |
%th= model_class.human_attribute_name(:owner) | |
%th= model_class.human_attribute_name(:notes) |