Permalink
Browse files

add link to example of Rails 3 subdomains with authentication

  • Loading branch information...
1 parent 185db8e commit 78cc74f26af84c138e89cf8ac724e348b7e95fe5 @fortuity committed Sep 7, 2010
Showing with 7 additions and 1 deletion.
  1. +4 −0 README.markdown
  2. +3 −1 vendor/plugins/haml/init.rb
View
@@ -2,6 +2,8 @@
You can use this project as a starting point for any Rails web application that requires subdomains and authentication. User management and authentication is implemented using the [Devise](http://github.com/plataformatec/devise) gem. The [subdomain_routes](http://github.com/mholling/subdomain_routes/) gem implements subdomains and routing.
+**UPDATE:** In Rails 3 it's much easier to implement subdomains than in Rails 2 (no plugin required). For a complete example implementation of [Rails 3 subdomains with authentication](http://github.com/fortuity/rails3-subdomain-devise), using Devise, with a detailed tutorial, see: [http://github.com/fortuity/rails3-subdomain-devise](http://github.com/fortuity/rails3-subdomain-devise)
+
## "Building It" Tutorial
A complete walkthrough tutorial is available on the GitHub wiki:
@@ -268,6 +270,8 @@ If you add functionality to this application, create an alternative implementati
## Similar Applications
+For a complete example implementation of [Rails 3 subdomains with authentication](http://github.com/fortuity/rails3-subdomain-devise), using Devise, with a detailed tutorial, see: [http://github.com/fortuity/rails3-subdomain-devise](http://github.com/fortuity/rails3-subdomain-devise)
+
For a similar application (for Rails 2.3) that uses [Authlogic](http://github.com/binarylogic/authlogic/tree/master) and [Subdomain_fu](http://github.com/mbleigh/subdomain-fu), see [authlogic_subdomain_fu_startup_app](http://github.com/devinterface/authlogic_subdomain_fu_startup_app).
For a simple Devise example (without subdomains), see [plataformatec/devise_example](http://github.com/plataformatec/devise_example).
@@ -7,7 +7,9 @@
# gems:install may be run to install Haml with the skeleton plugin
# but not the gem itself installed.
# Don't die if this is the case.
- raise e unless defined?(Rake) && Rake.application.top_level_tasks.include?('gems:install')
+ raise e unless defined?(Rake) &&
+ (Rake.application.top_level_tasks.include?('gems') ||
+ Rake.application.top_level_tasks.include?('gems:install'))
end
end

0 comments on commit 78cc74f

Please sign in to comment.