# Long ass redirect with Ruby 1.9.1

**URL:** <https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241>\
**Category:** Rails\
**Created:** [March 30, 2009, 10:54am UTC](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241 "2009-03-30T10:54:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [March 30, 2009, 10:54am UTC](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241/1 "2009-03-30T10:54:40Z")

</div>

It took 4 seconds to get redirected to the show page. Is this a known  
Ruby 1.9.1 or Rails 2.3.2 issue?

Processing SitesController#create (for 127.0.0.1 at 2009-03-30  
16:48:04) [POST]  
Parameters:  
{“authenticity\_token”=\>“UHSYgtPzfTEAHAqsqTVYWzFOeM7bSh6mUkgvZFY96CQ=”,  
“site”=\>{“url”=\>“local.test2”, “base\_name”=\>“test2”,  
“human\_name”=\>“test2”}, “commit”=\>“Create”}  
Site Columns (0.8ms) SHOW FIELDS FROM `sites`  
Site Load (0.1ms) SELECT \* FROM `sites` WHERE (`sites`.`base_name`  
= ‘azurrofashion’) LIMIT 1  
SQL (0.1ms) BEGIN  
Site Create (0.3ms) INSERT INTO `sites` (`url`, `base_name`,  
`human_name`, `created_at`, `updated_at`) VALUES(‘local.test2’,  
‘test2’, ‘test2’, ‘2009-03-30 08:48:04’, ‘2009-03-30 08:48:04’)  
SQL (7.6ms) COMMIT  
Redirected to [http://local.azurrofashion/sites/7](http://local.azurrofashion/sites/7)  
################### CHECK OUT THE NEXT LINE ! ! !  
####################  
Completed in 4142ms (DB: 10) | 302 Found [[http://local.azurrofashion/](http://local.azurrofashion/)  
sites]  
SQL (0.1ms) SET NAMES ‘utf8’  
SQL (0.1ms) SET SQL\_AUTO\_IS\_NULL=0

BTW, I’m on Ubuntu 8.10, using MySQL (not in INNODB mode, only have a  
few records ( less than 10 ), and I don’t think I have any crazy stuff  
going on except that I’m using the ResourceController and HAML  
plugins.

Does anybody know what’s going on?

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [March 30, 2009, 10:56am UTC](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241/2 "2009-03-30T10:56:25Z")

</div>

BTW, is there a way to find out what’s going on at that line that’s  
taking a super long time with some kind of profiling software?

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [March 30, 2009, 11:26am UTC](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241/3 "2009-03-30T11:26:56Z")

</div>

I forgot to mention that I am using Phusion Passenger.

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [March 30, 2009, 11:33am UTC](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241/4 "2009-03-30T11:33:22Z")

</div>

Oh I think it’s cuz i"m calling a generator after the create method  
executes…

---

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [March 30, 2009, 12:03pm UTC](https://www.ruby-forum.com/t/long-ass-redirect-with-ruby-1-9-1/164241/5 "2009-03-30T12:03:20Z")

</div>

On Mon, Mar 30, 2009 at 2:26 AM, David B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> I forgot to mention that I am using Phusion Passenger.

What version of Phusion Passenger are you using?

-Conrad
