Forum: Ruby on Rails rfm working in localhost but not in production enviromen

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Elias O. (Guest)
on 2009-03-20 18:06
(Received via mailing list)
Hi Guys,

We've been using RFM to sync to a FMP server. As we were deploying the
app to the production server, we encountered a small problem in this
part of the code:

In enviroment.rb:

 :host => "my.ip.number",
 :account_name => "user",
 :password     => "pass"
DATABASE = "my_database"

In the controller I have this:
({"user_id" =>})[0] != nil)
puts "the user do exist"
puts "the user does not exist"

When working in localhost the sync works fine, but when I have the
Rails Application is on the production server(hosted at slicehost with
ubuntu on it) it shows this error in the "if()" line:

NoMethodError: You have a nil object when you didn't expect it! The
error occurred while evaluating nil.record_entity_expansion

We are not sure if this is a server permission problem or a config
thing. Any help would be greatly appreciated.
This topic is locked and can not be replied to.