Sample app for integrating Heroku & SF, using databasedotcom gem

127 views
Skip to first unread message

Andrew Taylor

unread,
Jun 19, 2012, 3:23:04 PM6/19/12
to activesa...@googlegroups.com
Hello,

I'm trying to test out the databasedotcom gem for integrating with Salesforce developer org.

I've tried a couple sample projects from github, and both produce 500 errors when running on Heroku.

I'm admittedly relatively new to Rails, but I haven't modified the projects at all, so I'm clearly missing something.

I also don't see any attempted login attempts from the Heroku apps when I look at login history for the User in the SF org. Should I see these when using Remote Access? I'm trying to determine if the app is reaching SF and the login fails, or if it is something else.

AT

Jeff Douglas

unread,
Jun 19, 2012, 6:20:34 PM6/19/12
to activesa...@googlegroups.com
I have two sample projects on my blog (code is in github) that you can use as reference.


AT

--
You received this message because you are subscribed to the Google Groups "ActiveSalesforce" group.
To view this discussion on the web visit https://groups.google.com/d/msg/activesalesforce/-/h3qldz9zuA8J.
To post to this group, send email to activesa...@googlegroups.com.
To unsubscribe from this group, send email to activesalesfor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/activesalesforce?hl=en.


Andrew Taylor

unread,
Jul 3, 2012, 11:16:21 AM7/3/12
to activesa...@googlegroups.com
Thanks Jeff, I'm just circling back to this after getting diverted with some other projects.

I've started working through your project, and I'm getting an error with the Accounts controller at line 6 (index):

    @accounts = Account.all

I tried changing this to: 

    @accounts = Account.all()

The logs show:

"ArgumentError (ArgumentError):
app/controllers/accounts_controller.rb:6:in: `index`"

Have you encountered this before?  Any thoughts?

AT




To post to this group, send email to activesalesforce@googlegroups.com.
To unsubscribe from this group, send email to activesalesforce+unsubscribe@googlegroups.com.

Andrew Taylor

unread,
Jul 4, 2012, 10:10:29 AM7/4/12
to activesa...@googlegroups.com
I found the problem - my password had non-alphanumeric characters, which seemed to cause problems for the gem to read in the config file.
Reply all
Reply to author
Forward
0 new messages