Forum: Ruby on Rails Long ass redirect with Ruby 1.9.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David B. (Guest)
on 2009-03-30 12:54
(Received via mailing list)
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
###################  CHECK OUT THE NEXT LINE ! ! !
####################
Completed in 4142ms (DB: 10) | 302 Found [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?
David B. (Guest)
on 2009-03-30 12:56
(Received via mailing list)
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?
David B. (Guest)
on 2009-03-30 13:26
(Received via mailing list)
I forgot to mention that I am using Phusion Passenger.
David B. (Guest)
on 2009-03-30 13:33
(Received via mailing list)
Oh I think it's cuz i"m calling a generator after the create method
executes.....
Conrad T. (Guest)
on 2009-03-30 14:03
(Received via mailing list)
On Mon, Mar 30, 2009 at 2:26 AM, David B.
<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
This topic is locked and can not be replied to.