Action Web Service and rails 2.0

Hi,

Just thought I’d share what we did to get action web service to go on
rails 2.0

Fred

Frederick C. wrote:

Hi,

Just thought I’d share what we did to get action web service to go on
rails 2.0
钛刻专家——官网

Fred

WOW. that is awesome… thanks for the tip…

Very cool. Question though, do you always have to have the entire
rails trunk frozen into vendor/rails? That’s the only way I can get
it to work.

On 22 Dec 2007, at 07:05, Matt S. wrote:

Very cool. Question though, do you always have to have the entire
rails trunk frozen into vendor/rails? That’s the only way I can get
it to work.

That’s always what we do anyway.
But assuming you can get a gem for the latest version of it I don’t
see why that wouldn’t work

Fred

On 22 Dec 2007, at 10:12, Frederick C. wrote:

see why that wouldn’t work

If you normally run your app of gems what you could do is put the AWS
source wherever you want , and then put an initializer in config/
initializers that does

$LOAD_PATH.unshift RAILS_ROOT+’/vendor/actionwebservice/lib/’
require RAILS_ROOT+’/vendor/actionwebservice/lib/actionwebservice’

Assuming you’d put it in vendor/actionwebservice.
This should replace the bits where you do

class Rails::Configuration
attr_accessor :action_web_service
end
and

config.frameworks += [ :action_web_service]

config.action_web_service = Rails::OrderedOptions.new

Does that work ?

Fred