[typo] Specifying an article's category at post time in the headers?

Chris Patti cpatti at gmail.com
Wed May 30 16:15:46 EDT 2007


Hello all;

Sorry to bother the list but I can't find anything on this online or
in the mailing list archives.

What I want is to be able to specify an article's category from an
external client, like the Blogging bundle in TextMate.

I tried using:

Category: Personal

but typo implodes when I do that:

ActiveRecord::HasManyThroughCantAssociateNewRecords (Cannot associate
new records through 'Article#categorizations' on '#'. Both records
must have an id in order to create the has_many :through record
associating them.):
    /vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb:52:in
`<<'
    /app/apis/meta_weblog_service.rb:104:in `newPost'
    /app/apis/meta_weblog_service.rb:103:in `each'
    /app/apis/meta_weblog_service.rb:103:in `newPost'
    /vendor/rails/actionwebservice/lib/action_web_service/invocation.rb:141:in
`send'
    /vendor/rails/actionwebservice/lib/action_web_service/invocation.rb:141:in
`perform_invocation_without_interception'
    /vendor/rails/actionwebservice/lib/action_web_service/invocation.rb:135:in
`perform_invocation'
    /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstract.rb:42:in
`web_service_filtered_invoke'
    /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstract.rb:37:in
`web_service_delegated_invoke'
    /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstract.rb:56:in
`web_service_invoke'
    /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/abstract.rb:21:in
`invoke_web_service_request'
    /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:55:in
`dispatch_web_service_request'
    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /vendor/rails/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:53:in
`dispatch_web_service_request'
    (eval):1:in `xmlrpc'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1095:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1095: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:600:in `call'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:600:in
`proxy_before_and_after_filter'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:470:in `call'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:470: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/local/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:430:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:430: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/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:84:in
`process'
    /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:83:in
`process'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in
`process_client'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in
`each'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in
`process_client'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`run'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`initialize'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`new'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`run'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in
`initialize'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in
`new'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in
`run'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:267:in
`run'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in
`each'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in
`run'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:127:in
`run'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in
`run'
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
    /usr/local/bin/mongrel_rails:18:in `load'
    /usr/local/bin/mongrel_rails:18

--

So, I'm confused and wondering which header to use.  Maybe once I
figure out what all these headers do, I could write some basic
documentation to go out with the system.  Hell even a README would be
a boon to the clueless like myself.

thanks,
-Chris

-- 
 Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail:  cpatti at gmail.com
"The greatest dangers to liberty lurk in insidious encroachment by men of
  zeal,well-meaning but without understanding."-- Justice Louis O. Brandeis
 (Olmstead vs. United States)


More information about the Typo-list mailing list