Rails Authlogic + Subdomain_fu Template

The second free Rails startup skeleton written by DevInterface and releases under Rails MIT license is Rails Authlogic + Subdomain_fu Template.

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:

1
2
3
4
5
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

Some other useful gems/plugins such as:

Tags: ,


About Stefano

Stefano Mancini is a co-founder of DevInterface.

After graduating in Computer Science, he first specialized in Java/J2EE development by participating in several international projects in the pharmaceutical and banking ambits.

Enthusiast of agile development, like SCRUM for project management and eXtreme Programming for code writing, he then moved to dynamic languages like Ruby and Python.

About DevInterface

We are an information and communication technology agency. Our mission is to provide web application development, design services and communication strategies. We specialize in building web applications with modern and efficient frameworks.

Related Post

Leave a Reply

Insert code beetween <code lang="ruby"> and </code>

Copyright 2012 DevInterface s.n.c.

DevInterface Blog is proudly powered by WordPress