• arjunghosh
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi,
 Does anyone know any blog or link which talks about building ruby on rails and salesforce mashup projects.
Has pointer to hows and things like if I want the application to connect both to my local db and to saleforce depending on various situations. Also things like how to access saleforce in ruby on rails. I am not talking connecting using ASF gem. I have done that. What after that?
I must seem very naive :) It just that I see lot of materials on php but not on RoR+salesforce when I googled.
So if any one can point me in the correct  direction or even tell here, that would be highly appreciated.
Thanks in advance
ciao
Arjun
Hi,
 Can any one point me to how to create a login for https://test.salesforce.com/ - the sandbox for SF.
I thought that we use developer account credentials. But I could not login using my dev a/c.
So can anyone help me out on that.
Thanks in advance.
ciao
Arjun
email: arjun.ghosh@bluewhalelabs.com
Hi,
I have problem here and have searched a lot on net but did not get any answers.

Now what i am trying to do is create a rails app which talks to SalesForec API.
I did a search found a Rails gem called 'activesalesforce'. version is  the latest  1.1.6
Now i installed it as per the instructions at http://activesfdc.rubyforge.org/. And it got installed properly with dependencies. Even check it in the gem list.
Now when i try try run my server(using webrick for dev), it gives me error:-
F:\salesforcetestapp>ruby script/server
=> Booting WEBrick…
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active_record/connection_a
dapters/abstract/connection_specification.rb:231:in `establish_connection': Please install the activesalesforce adapter: `gem install activerecord-activesalesforce-adapter` (no such file to load—active_record/connection_adapters/activesalesforce_adapter) (RuntimeError)

I am updated my rails and other gems.
Now i have :-
Rails - 2.0.2
Ruby is 1.8.5
MySql is 5.0.27
WebRick is 1.3.1
Gem is 0.9.4 (gem -v)

I have checked the gem versions and also checked if
'activesalesforce' is installed by gem list command.
 I also went ahead and installed the version 1.1.4 also.
My env/config file has :-
Rails::Initializer.run do |config|
.....
....
     require  'activesalesforce'
end


I even changed the above and included :-
Rails::Initializer.run do |config|
.....
....
  gem 'activesalesforce'
     require  'activesalesforce'
end


Still i get above error.
My database YML was before in the format:-
development:
  adapter: activesalesforce
  url: https://www.salesforce.com
  username: <my dev login>
  password: <my dev password>

But when i changed the YML to:-
development:
....
....
test:
.....
.....
production:
.....
.....
saleforec:
  adapter: activesalesforce
  url: https://www.salesforce.com
  username: <my dev login>
  password: <my dev password>

Then I don't get any error but THEN i dont know if the gem is initialized or not in my rails app when it is started.

The folllowing is not as important query to get solved as the above issue faced by me.
Also another issue with this salesforce integration is that i am not getting resource or blog online which speaks about rails implementation of saleforce integration.
I have questions like "How do we access local db when salesforce gem makes the db configuration in a way that seems that rails app can access only salesfore dataset?"
or "How to acces my local db as well as the salesfore data objects"?
Generally pointers to how do i go about doing the integration.

So if anyone can throw any light, it would be much appreciated.
Thanks in advance
ciao
Arjun
Hi,
 Can any one point me to how to create a login for https://test.salesforce.com/ - the sandbox for SF.
I thought that we use developer account credentials. But I could not login using my dev a/c.
So can anyone help me out on that.
Thanks in advance.
ciao
Arjun
email: arjun.ghosh@bluewhalelabs.com
Hi,
I have problem here and have searched a lot on net but did not get any answers.

Now what i am trying to do is create a rails app which talks to SalesForec API.
I did a search found a Rails gem called 'activesalesforce'. version is  the latest  1.1.6
Now i installed it as per the instructions at http://activesfdc.rubyforge.org/. And it got installed properly with dependencies. Even check it in the gem list.
Now when i try try run my server(using webrick for dev), it gives me error:-
F:\salesforcetestapp>ruby script/server
=> Booting WEBrick…
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active_record/connection_a
dapters/abstract/connection_specification.rb:231:in `establish_connection': Please install the activesalesforce adapter: `gem install activerecord-activesalesforce-adapter` (no such file to load—active_record/connection_adapters/activesalesforce_adapter) (RuntimeError)

I am updated my rails and other gems.
Now i have :-
Rails - 2.0.2
Ruby is 1.8.5
MySql is 5.0.27
WebRick is 1.3.1
Gem is 0.9.4 (gem -v)

I have checked the gem versions and also checked if
'activesalesforce' is installed by gem list command.
 I also went ahead and installed the version 1.1.4 also.
My env/config file has :-
Rails::Initializer.run do |config|
.....
....
     require  'activesalesforce'
end


I even changed the above and included :-
Rails::Initializer.run do |config|
.....
....
  gem 'activesalesforce'
     require  'activesalesforce'
end


Still i get above error.
My database YML was before in the format:-
development:
  adapter: activesalesforce
  url: https://www.salesforce.com
  username: <my dev login>
  password: <my dev password>

But when i changed the YML to:-
development:
....
....
test:
.....
.....
production:
.....
.....
saleforec:
  adapter: activesalesforce
  url: https://www.salesforce.com
  username: <my dev login>
  password: <my dev password>

Then I don't get any error but THEN i dont know if the gem is initialized or not in my rails app when it is started.

The folllowing is not as important query to get solved as the above issue faced by me.
Also another issue with this salesforce integration is that i am not getting resource or blog online which speaks about rails implementation of saleforce integration.
I have questions like "How do we access local db when salesforce gem makes the db configuration in a way that seems that rails app can access only salesfore dataset?"
or "How to acces my local db as well as the salesfore data objects"?
Generally pointers to how do i go about doing the integration.

So if anyone can throw any light, it would be much appreciated.
Thanks in advance
ciao
Arjun