From f34c90d072a552828308043ce82dc5811767dcf1 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 23 Jan 2008 22:51:42 +0000 Subject: [PATCH] ActionItem154: pointing to the right URL in development environment --- app/models/profile.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index c2972b5..cdfa6a8 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -173,7 +173,9 @@ class Profile < ActiveRecord::Base include ActionController::UrlWriter def url - url_for(:host => self.environment.default_hostname, :profile => self.identifier, :controller => 'content_viewer', :action => 'view_page', :page => []) + options = { :host => self.environment.default_hostname, :profile => self.identifier, :controller => 'content_viewer', :action => 'view_page', :page => [] } + options.merge!(:port => 3000) if ENV['RAILS_ENV'] == 'development' + url_for(options) end end -- libgit2 0.21.2