Javier's Blog

Mostly computers and other tech stuff,...

Thursday, December 11, 2008

Rails Woes

OK, I know I'm a bit rusty on RoR, but this is ridiculous...

I guess I wouldn't have been so bad, like 4 hours wasted, if there was decent documentation. Also, I know that Rails has gone through some recent changes. But, all I wanted to do is write a simple XML-RPC application. I've done it in the past and it has been fairly painless.

Here is some FYI in case you might want to do the same.

ActionWebServie has been removed and "replaced" with ActiveResource. "Replaced" does not mean 'replaced' as in there is no support for XML-RPC under ActiveResource.

Here is what you need to do in order to get ActionWebService working on Rails 2.


rake rails:freeze:edge
svn export http://dev.rubyonrails.org/svn/rails/ousted/actionwebservice/ vendor/rails/actionwebservice


edit environments.rb and add the following below Rails::Initializer.run:
config.load_paths += %W(
#{RAILS_ROOT}/app/apis
#{RAILS_ROOT}/vendor/rails/actionwebservice/lib
)

add the following at the end of the file:

require 'action_web_service'


And finally add this to test_helper.rb:

require 'action_web_service/test_invoke'

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home