[Rails] How to handle image file data in a RoR web service/client?

2011-09-25 Thread Doug Livesey
Hi. I'm breaking an existing app out into separate services for performance reasons, but am not sure about how best to proceed with handling images. The model I'm breaking out into a service has multiple images associated with it. Historically, these were handled with attachment_fu, and moving forw

[Rails] post method or request flattening array of hashes in params

2009-12-21 Thread Doug Livesey
Hi -- I have the following code in a cucumber feature: http://pastie.org/752061 The problem is that the post method (or the controller) is flattening the array of hashes into an array containing all the key-value pairs in one hash, like so: http://pastie.org/752067 (Obtained from a call to inspect

[Rails] Re: Cannot seem to include my own module & classes into Rail

2009-08-03 Thread Doug Livesey
Cheers -- I was being a total spoon. All I needed to do was to require it normally -- thought I'd tried that, but must have prepended it with a slash out of habit the first time, or something. Thanks, Doug. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~-

[Rails] Cannot seem to include my own module & classes into Rails ap

2009-08-02 Thread Doug Livesey
Hi -- I've got a class called SF::SOAP that gets defined at /lib/wsdl/sandbox/defaultDriver.rb It is defined like: module SF class SOAP # ... end end How do I include this in my Rails app so that I can (for instance) call SF::SOAP.new without getting an unintitialised constant

[Rails] Re: Sharing sessions across rails apps 2.3.2

2009-05-13 Thread Doug Livesey
So if I have (locally) my apps all called things like "app1.local" and "app2.local", then I could set the domain to ".local", which would generate a "local" cookie that would be available to both apps, enabling them to share a session? Sorry if I'm labouring the point -- I've had my head in thi

[Rails] Re: Sharing sessions across rails apps 2.3.2

2009-05-13 Thread Doug Livesey
Ah, I see, sorry -- well, they'll be on the same machine, but that is on a local network (these are internal apps), and they are accessed by names like "app1", "app2", with the local server's DNS resolving them to the server address, and passenger and phusion taking over from there. That's the

[Rails] Re: Sharing sessions across rails apps 2.3.2

2009-05-13 Thread Doug Livesey
They're on the same machine, although I may want to move them at some point. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gr

[Rails] Re: Sharing sessions across rails apps 2.3.2

2009-05-13 Thread Doug Livesey
That could well be part of it, but I'm afraid I'm not sure I follow you. How would I go about doing that? (I didn't need to with my old approach.) Cheers, Doug. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because yo

[Rails] Sharing sessions across rails apps 2.3.2

2009-05-13 Thread Doug Livesey
I've done this in 2.2, but cannot figure it out for 2.3.2: Basically, I want to be able to share session data across a couple of apps. The way I did this in 2.2 was to create a view called sessions in the second app that read the sessions table of the first app. This done, I could tell them both

[Rails] Re: Rails & dbd-odbc error

2008-12-21 Thread Doug Livesey
No, I'm using FreeTDS and iODBC on the Mac, and FreeTDS with unixODBC on Ubuntu. Although not with any notable success on either, so far! Doug. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Rails & dbd-odbc error

2008-12-21 Thread Doug Livesey
Hi -- I'm trying to get my rails app on OSX 10.5.5 to connect to SQL Server with ruby dbi, and am getting the following error: /usr/local/lib/ruby/gems/1.8/gems/dbd-odbc-0.2.4/lib/dbd/ODBC.rb:57: warning: already initialized constant VERSION /usr/local/lib/ruby/gems/1.8/gems/dbd-odbc-0.2.4/lib/db