Skip to content

Instantly share code, notes, and snippets.

@lastobelus
Created January 21, 2009 21:30
Show Gist options
  • Save lastobelus/50213 to your computer and use it in GitHub Desktop.
Save lastobelus/50213 to your computer and use it in GitHub Desktop.
identify(PortalApp => :name, Theme => :name) do
themify = proc do |request, params|
portal_app = PortalApp.portal_app_from_params(params)
unless portal_app.nil?
theme = portal_app.theme_from_params(params)
controller = SageUsers.signup_controller_for_portal_app_and_theme(portal_app, theme)
params.merge!(:controller => controller)
end
params
end
defer(themify) do
resources :sage_users, :member => {:thankyou => :get}, :path => "(:portal_app(/:theme)/)signup"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment