[typo] r1328 crashing at article publication

Frederic de Villamil neuro at 7el.net
Fri Dec 29 04:55:59 EST 2006


Hello,

I've found a bug in the last trunk revision : typo crashes when  
publishing a new article.

Here is the stack trace :

vendor/rails/activerecord/lib/active_record/associations/ 
association_proxy.rb:148:in `raise_on_type_mismatch'
vendor/rails/activerecord/lib/active_record/associations/ 
belongs_to_association.rb:22:in `replace'
vendor/rails/activerecord/lib/active_record/associations.rb:894:in  
`blog='
app/models/content.rb:55:in `set_default_blog'
app/models/content.rb:42:in `initialize'
vendor/rails/activerecord/lib/active_record/associations/ 
has_many_association.rb:13:in `new'
vendor/rails/activerecord/lib/active_record/associations/ 
has_many_association.rb:13:in `build'
app/controllers/admin/content_controller.rb:150:in  
`get_or_build_article'
app/controllers/admin/content_controller.rb:95:in `new_or_edit'
app/controllers/admin/content_controller.rb:25:in `new'
vendor/rails/actionpack/lib/action_controller/base.rb:1092:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:1092:in  
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:632:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:638:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:637:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:638:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:637:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:638:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:637:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:638:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:637:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:638:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:449:in `call'
vendor/rails/actionpack/lib/action_controller/filters.rb:637:in  
`call_filter'
vendor/rails/actionpack/lib/action_controller/filters.rb:619:in  
`perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in  
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in  
`perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in  
`perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:427:in `send'
vendor/rails/actionpack/lib/action_controller/base.rb:427:in  
`process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:624:in  
`process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/session_management.rb: 
114:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:330:in `process'
vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb: 
84:in `process'
/usr/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb: 
83:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in  
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in  
`each'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in  
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in  
`initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in  
`initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ 
configurator.rb:267:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ 
configurator.rb:266:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/ 
configurator.rb:266:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:127:in  
`run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb: 
211:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
vendor/rails/activesupport/lib/active_support/dependencies.rb:487:in  
`load'
vendor/rails/activesupport/lib/active_support/dependencies.rb:487:in  
`load'
vendor/rails/activesupport/lib/active_support/dependencies.rb:341:in  
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:487:in  
`load'
vendor/rails/railties/lib/commands/servers/mongrel.rb:60
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in  
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:494:in  
`require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:341:in  
`new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:494:in  
`require'
vendor/rails/railties/lib/commands/server.rb:39
script/server:3:in `require'
script/server:3


Config : Ruby 1.8.5 Mac OS X

Regards
Frederic



-- 
Frédéric de Villamil
"Sadness is just another word for not enough coffee"  -- Scott Adams
frederic at de-villamil.com                        tel: +33 (0)6 62 19 1337
http://fredericdevillamil.com






More information about the Typo-list mailing list