Permalink
Browse files

Allow group_invitation parameter on root redirect to signup

  • Loading branch information...
Alex Bredariol Grilo
Alex Bredariol Grilo committed Nov 21, 2011
1 parent af7863b commit 9ef2c33a0ec145063835c356c88eaba476217822
Showing with 5 additions and 0 deletions.
  1. +5 −0 config/routes.rb
View
@@ -326,6 +326,11 @@
match '/' => 'url_invitations#show'
end
+ # Signup via group invitation link.
+ scope :constraints => lambda { |request| request.params[:group_invitation] } do
+ match '/' => 'users#new'
+ end
+
match '/vanity(/:action(/:id(.:format)))', :controller => :vanity, :as => :vanity
match '/g' => 'search_results#show'

0 comments on commit 9ef2c33

Please sign in to comment.