Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This template sets up a working application with support for authentication and subdomain.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db/migrate
doc
features
lib
public
script
spec
test
vendor/plugins/exception_notification
.gitignore
MIT-LICENSE
README.textile
Rakefile

README.textile

Rails Authlogic + Subdomain_fu Template

This template works as a skeleton for any new Rails application (using Rails 2.3) that aims to provide authentication with subdomain support.

To install and run this template perform following actions:


git clone git://github.com/devinterface/authlogic_subdomain_fu_startup_app.git
cp config/database.yml.example config/database.yml
rake gems:install 
rake gems:install RAILS_ENV=test
rake db:migrate

Skeleton Behaviour

This template sets up a working application with support for authentication and subdomain.

Application workflow

  • Guest access a public section of the site (http://localhost:3000)
  • Guest chooses to register new account (http://localhost:3000/account/new), including itself as user, and becomes account’s owner
  • Accounts owner goes to his account (subdomain) url (http://useraccount.localhost:3000/login) and logs into his account
  • Accounts owner can add more users to it’s account (http://useraccount.localhost:3000/users/new)
  • Each created user can log into the account they belong

Skeleton features

Here’s a list of what this template sets up:

Rails

Javascript

  • jQuery as javascript framework instead of prototype

CSS

Testing

Other

Something went wrong with that request. Please try again.