[Rails] Unexpected ActiveResource post contents

2009-11-19 Thread johnr
On Rails 2.3.4 ... I have a client app that is posting a create to an ActiveResource (actually a HyperActiveResource) in a server app. The ActiveResource class is named ResourceObserver with attributes of resource_name and resource_id. In development and testing environments the parameters of the

[Rails] Re: Getting the server port number during initialization

2009-09-25 Thread johnr
the address from the client- facing server, the admin-like server could get the address from the request. Thanks for saying just enough. On Sep 25, 4:18 am, bill walton wrote: > Hi John, > > On Thu, 2009-09-24 at 10:22 -0700, johnr wrote: > > In the environment.rb I need to use the p

[Rails] Re: Non-ActiveRecord based model being passed as string?

2009-09-24 Thread johnr
When ERB compiles your view, the result is a string. If I remember correctly, the to_s method is invoked on objects, which in this case results in the string that you are seeing. You need to pass in an identifier that can be used to look up the specific instance of HsdPair, or alternatively, use a

[Rails] Getting the server port number during initialization

2009-09-24 Thread johnr
In the environment.rb I need to use the port number that the server is being started under in an after_initialize block in order to register my server with another server. I've looked in config (Rails:Configuration) and ENV, but It doesn't look to be there. I know that a workaround would be to set

[Rails] Re: Multiple Active Record Connection

2009-03-10 Thread johnr
The error that you found in railsforum is probably on the right track. Is there any other declaration of the class OrderDetail other than what you have shown? If so, this is the problem. Also, if all of the servers in you server model have the same set of models, you may want to consider the follo