[Ironruby-core] Updated Rails instructions

Jimmy Schementi Jimmy.Schementi at microsoft.com
Tue Jan 26 04:06:01 EST 2010


I wanted to see "p @company" (equivalent of "puts @company.inspect") to see what fields it had, since ActiveRecord shows detailed view of the object, including fields. Really I want to see whether the ID is "269" or "26900".

Ivan, does this issue seem at all familiar to you?

Sam, it'd be helpful if you could produce a small repro, just with ActiveRecord alone, that shows the ID being appended with two zeros. I'd suggest using script\console as it gives you an environment preconfigured for ActiveRecord. If we have a targeted repo of the issue, it'll be easier to diagnose and fix. Ideally, you could just send me the application zipped up, but at a minimum I'll need the migration that creates the table, the model file, and whatever other code reproduces the error.

~Jimmy


> -----Original Message-----
> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-
> bounces at rubyforge.org] On Behalf Of Sam Clopton
> Sent: Monday, January 25, 2010 3:06 PM
> To: ironruby-core at rubyforge.org
> Subject: Re: [Ironruby-core] Updated Rails instructions
> 
> Sam Clopton wrote:
> 
> > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22
> > 14:33:19) [POST]
> >   Parameters:
> > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=",
> > "company"=>{"name"=>"hmmmjjj...", "comments"=>"test"},
> > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"}
> >   User Load (0.0ms)   SELECT TOP 1 * FROM [users]
> > WHERE ([users].[id] = '1') 
> >   EXECUTE (15.6ms)   BEGIN TRANSACTION
> >   Company Create (46.9ms)   INSERT INTO [companies]
> > ([name], [comments]) VALUES('hmmmjjj...', 'test')
> >   SQL (0.0ms)   SELECT SCOPE_IDENTITY() AS Ident
> >   EXECUTE (0.0ms)   COMMIT TRANSACTION
> > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn
> > amehmmmjjj...commentstestcommitSubmitcontrollercompaniesactioncreate
> > #<Company:0x000263e>
> > /companies/26900
> > Redirected to http://127.0.0.1:3000/companies/26900
> >
> > *** Old Adapter ***
> >
> > Processing CompaniesController#create (for 127.0.0.1 at 2010-01-22
> > 14:30:02) [POST]
> >   Parameters:
> > {"authenticity_token"=>"mrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=",
> > "company"=>{"name"=>"hmmmjj...", "comments"=>"test"},
> > "commit"=>"Submit", "controller"=>"companies", "action"=>"create"}
> > authenticity_tokenmrfvGtPzabzzhhdx/NFuxMlM64Q50R0V3cQbOtpJjws=companyn
> > amehmmmjj...commentstestcommitSubmitcontrollercompaniesactioncreate
> > #<Company:0x000ea44>
> > /companies/268
> > Redirected to http://127.0.0.1:3000/companies/268
> > Completed in 1922ms (DB: 0) | 302 Found [http://127.0.0.1/companies]
> 
> Jimmy,
> 
> Do you have any suggestions or is there anything else I can do to help pin
> down this problem?
> 
> Thanks,
> Sam
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core



More information about the Ironruby-core mailing list