Specifying an article's category at post time in the headers

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:innewPost’
/app/apis/meta_weblog_service.rb:103:in each' /app/apis/meta_weblog_service.rb:103:innewPost’
/vendor/rails/actionwebservice/lib/action_web_service/invocation.rb:141:in
send' /vendor/rails/actionwebservice/lib/action_web_service/invocation.rb:141:inperform_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:inweb_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:inweb_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:indispatch_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:indispatch_web_service_request’
(eval):1:in xmlrpc' /vendor/rails/actionpack/lib/action_controller/base.rb:1095:insend’
/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in
perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:632:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:600:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:600:in
proxy_before_and_after_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:470:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:470:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:438:incall’
/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in
call_filter' /vendor/rails/actionpack/lib/action_controller/filters.rb:638:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:449:in
call' /vendor/rails/actionpack/lib/action_controller/filters.rb:637:incall_filter’
/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in
perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/usr/local/lib/ruby/1.8/benchmark.rb:293:in measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:inperform_action_without_rescue’
/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in
perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:430:insend’
/vendor/rails/actionpack/lib/action_controller/base.rb:430:in
process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:624:inprocess_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:inprocess’
/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:inprocess’
/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:inprocess’
/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:ineach’
/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:inrun’
/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:innew’
/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:ininitialize’
/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:inrun’
/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:ineach’
/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:inrun’
/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:inload’
/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 P. — Y!: feoh – AIM: chrisfeohpatti — E-Mail:
[email protected]
“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)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs