# Action Web Service and rails 2.0

**URL:** <https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890>\
**Category:** Rails\
**Created:** [December 21, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890 "2007-12-21T19:14:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcheung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Post date:** [December 21, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890/1 "2007-12-21T19:14:10Z")

</div>

Hi,

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

> **[钛刻专家——官网](https://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/)**
>
> 钛刻专家致力于打造一个全球专家在线服务平台，为机构和个人对接高水平行业专家，为机构提供更系统性的线下定制专家服务。

Fred

---

<div class="post-metadata">

**Author:** ![fcheung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Post date:** [December 21, 2007, 7:28pm UTC](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890/2 "2007-12-21T19:28:24Z")

</div>

Frederick C. wrote:

> Hi,
> 
> Just thought I’d share what we did to get action web service to go on  
> rails 2.0  
> [钛刻专家——官网](http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/)
> 
> Fred

WOW. that is awesome… thanks for the tip…

---

<div class="post-metadata">

**Author:** ![fcheung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Post date:** [December 22, 2007, 8:05am UTC](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890/3 "2007-12-22T08:05:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![fcheung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Post date:** [December 22, 2007, 11:13am UTC](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890/4 "2007-12-22T11:13:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fcheung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Post date:** [December 22, 2007, 11:18am UTC](https://www.ruby-forum.com/t/action-web-service-and-rails-2-0/123890/5 "2007-12-22T11:18:38Z")

</div>

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
