$ rails new new_app --skip-test-unit -d mysqlAdd subscribem to Gemfile
gem "subscribem", :github => "tonilin/subscribem"Run bundle install
$ bundle installAdd following line to config/routes.rb
mount Subscribem::Engine, :at => "/"Edit config/database.yml and run rake db:create
$ rake railties:install:migrations$ rake db:migrateEdit /spec/dummy/config/initializers/session_store.rb, Add the domain option (Replace Dummy to your app name):
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session', domain: "example.com"$ powder link
$ powder openAnd then you can see a simple authentication with subdomain
current_account to fetch current subdomain associated account.
current_user to fetch the current user.