> I'm not seeing this; the scaffolding example at the link below does the 
> same thing, and redirects fine with the new adapter (a Post created with 
> the id "4" will redirect to "/posts/4"):
> 
> @post = Post.new(params[:post])
> if @post.save
>   flash[:notice] = 'Post was successfully created.'
>   redirect_to(@post)
> else
>   render :action => "new"
> end
> 
> Can you possibly send more information with the old adapter? I'd like 
> these lines added right after @company.save succeeds (inside the "if" 
> statement), and then could you send the output?
> 
>   p params
>   p @company
>   p company_path(@company)
> 
> ~Jimmy

Should have included this in the last post, but
here is both of the data with the new/old adapter:

*** New Adapter ***

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=companynamehmmmjjj...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=companynamehmmmjj...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]
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to