• JohnBarnes
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 8
    Replies
I'm new to ROR and went through the O'Reily tutorial that used mySQL and was impressed how easy it was to build an App using it around managine recipes.

However when I tried to do anything with ROR and Salesforce I can't get anywhere.  Could someone help me understand what I'm doing wrong here?  I'm on Ruby version 1.8.2, and Rails version 1.1.0,  activesalesforce-0.4.8

Here is what I have done:


  • I installed the activesalesforce gem and see it when I run "gem list --local"
  • I created a new app "rails sfdc"
  • I edited the environments.rb file and added "require_gem 'activesalesforce'"
  • I edited the database.yml file and it now contains (I have tried several variations):

salesforce:
    adapter: activesalesforce
    url: https://www.salesforce.com/services/Soap/u/7.0
    username: xxx
    password: xxx

development:
    datbase: salesforce
    adapter: activesalesforce
    url: https://www.salesforce.com/services/Soap/u/7.0
    username: xxx
    password: xxx

test:
    adapter: activesalesforce
    url: https://www.salesforce.com/services/Soap/u/7.0
    username: xxx
    password: xxx
production:
    adapter: activesalesforce
    url: https://www.salesforce.com/services/Soap/u/7.0
    username: xxx

When I try to generate a model or controller I always get this message:

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_
adapters/abstract/connection_specification.rb:194:in `establish_connection': dev
elopment database is not configured (ActiveRecord::AdapterNotSpecified)
        from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_recor
d/connection_adapters/abstract/connection_specification.rb:185:in `establish_con
nection'
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/initializer.rb:182:i
n `initialize_database'
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/initializer.rb:84:in
 `process'
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/initializer.rb:42:in
 `send'
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/initializer.rb:42:in
 `run'
        from ./script/../config/../config/environment.rb:11
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire__'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_suppo
rt/dependencies.rb:136:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.0/lib/commands/generate.rb
:1
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire__'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `re
quire'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_suppo
rt/dependencies.rb:136:in `require'
        from script/generate:3

Any ideas?


We are having a strange issue with an integration we are writing around socket level timeouts. This is happening usually within a minute of the application running and doesn't appear to be a session management issue. This is happening while doing a series (sometimes as few as 70) of small SOQL queries (each returns one row) that happens at the beginning of the application.

We are seeing this exception:

java.net.ConnectException: Connection timed out: connect
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection timed out: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

This is using JDK1.5.0_01 and Axis 1.2.1. and going against a trial version account that was upgraded to EE

Has anyone seen this or have any ideas of what may be causing the issue? Since itis an Axis/Java exception we are going to try various combinations of JVM's and Axis levels to see if that resolves it.

Any ideas or thoughts would be appreciated!

Thanks,

John
Does anyone have any feedback on this app? I was going to try it today, but apparently the tens of thousands of dollars my small business pays Salesforce every year isn't enough to allow me to use this (surprise, surprise). I don't want to sign up for the trial unless someone can tell me it is worth it. Using Salesforce through Safari on the iPhone is beyond inconvenient. It would be great if for once a solution we used could provide a tiny bit of extra value with out nickel and diming, but that is SAAS for you......
Hello All,

We have an application that parses SOAP message to extract the data. From Last week, we have been having problems with Salesforce sending random characters in the Response . It is intermitten and our application crashes for about 2 - 3 hours and starts working again. So I am guessing it is not the problem with our application as it works when the response is right.

Have any one of you have seen anything like this before? I m not sure if this is the problem with the winter release.

Thanks,
Chitra
  • January 31, 2006
  • Like
  • 0
We are having a strange issue with an integration we are writing around socket level timeouts. This is happening usually within a minute of the application running and doesn't appear to be a session management issue. This is happening while doing a series (sometimes as few as 70) of small SOQL queries (each returns one row) that happens at the beginning of the application.

We are seeing this exception:

java.net.ConnectException: Connection timed out: connect
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection timed out: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

This is using JDK1.5.0_01 and Axis 1.2.1. and going against a trial version account that was upgraded to EE

Has anyone seen this or have any ideas of what may be causing the issue? Since itis an Axis/Java exception we are going to try various combinations of JVM's and Axis levels to see if that resolves it.

Any ideas or thoughts would be appreciated!

Thanks,

John

I have created a new table called 'Candidate's'   I am now trying to create a new control (tab) to show the new fields from the candidate table.  Is the only way to create a new control a custom HTML page that is uploaded and referenced or is there another was within the SF customization features within the UI.  If the HTML option is the only way , are there any examples to reference.

 

Thanks

 

Steve

  • November 22, 2003
  • Like
  • 0