Skip to content

Instantly share code, notes, and snippets.

@foca
Created October 9, 2009 02:12
Show Gist options
  • Save foca/205634 to your computer and use it in GitHub Desktop.
Save foca/205634 to your computer and use it in GitHub Desktop.
Processing DashboardsController#show (for 127.0.0.1 at 2009-10-09 00:08:53) [GET]
Parameters: {"action"=>"show", "controller"=>"dashboards"}
User Load (0.2ms) SELECT * FROM "users" WHERE ("users"."id" = 1) LIMIT 1
------> subdomain:
------> and for foobar: http://foobar.hephaestus.local/dashboard
Rendering dashboards/show
VIEW ------> subdomain:
VIEW ------> and for foobar: /dashboard
Completed in 111ms (View: 99, DB: 0) | 200 OK [http://hephaestus.local/]
class DashboardsController < ApplicationController
def show
logger.info "------> subdomain: #{current_subdomain}"
logger.info "------> and for foobar: " + url_for(:subdomain => "foobar")
end
end
<%
logger.info "VIEW ------> subdomain: #{current_subdomain}"
logger.info "VIEW ------> and for foobar: " + url_for(:subdomain => "foobar")
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment