-
-
Save foca/205634 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DashboardsController < ApplicationController | |
def show | |
logger.info "------> subdomain: #{current_subdomain}" | |
logger.info "------> and for foobar: " + url_for(:subdomain => "foobar") | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
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