> 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"} [4;36;1mUser Load (0.0ms)[0m [0;1mSELECT TOP 1 * FROM [users] WHERE ([users].[id] = '1') [0m [4;35;1mEXECUTE (15.6ms)[0m [0mBEGIN TRANSACTION[0m [4;36;1mCompany Create (46.9ms)[0m [0;1mINSERT INTO [companies] ([name], [comments]) VALUES('hmmmjjj...', 'test')[0m [4;35;1mSQL (0.0ms)[0m [0mSELECT SCOPE_IDENTITY() AS Ident[0m [4;36;1mEXECUTE (0.0ms)[0m [0;1mCOMMIT TRANSACTION[0m 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