• vzmind
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

We’ve been working hard, nicola and me, right before Xmas to finalize the first version of the book "Heroku Salesforce Playbook: Principles, Use Cases and best practices". It's a lean book to be published in three steps. In this first release, you'll discover what is Heroku, what are the tools required to start using it and get your hands dirty in Ruby or Java (as you like) with a first tutorial.

 

In the next release, we'll present around 10 use cases and introduce the various APIs provided by Salesforce.

 

We may restructure the first section and adapt the content to be published later depending on your feedback. We are really keen to receive any positive or negative feedback. 


To download the book for free, fill the form on http://heroku-book-form.herokuapp.com/contact and enjoy reading it.

  • January 07, 2013
  • Like
  • 0

We’ve been working hard, nicola and me, right before Xmas to finalize the first version of the book "Heroku Salesforce Playbook: Principles, Use Cases and best practices". It's a lean book to be published in three steps. In this first release, you'll discover what is Heroku, what are the tools required to start using it and get your hands dirty in Ruby or Java (as you like) with a first tutorial.

 

In the next release, we'll present around 10 use cases and introduce the various APIs provided by Salesforce.

 

We may restructure the first section and adapt the content to be published later depending on your feedback. We are really keen to receive any positive or negative feedback. 


To download the book for free, fill the form on http://heroku-book-form.herokuapp.com/contact and enjoy reading it.

  • January 07, 2013
  • Like
  • 0
I am using the databasedotcom gem and Ruby 1.9.2 I execute this query: quer = "SELECT SUM(MRR__c) FROM Account WHERE Type = 'Customer'" mrr = client.query quer it returns this object: => [#0x000001035dfa80>] How do I work with this object? 0x000001035dfa80>

Has anybody connected to Salesforce through Rails 3 App via oauth? Could you please post code for doing same. I am trying to same but I get some error below is my code. 

 

def oauth_client
        consumer_key = '....'
        consumer_secret = '....'
        oauth_options = {
          :site               => 'https://login.salesforce.com',
          :scheme             => :body,
          :request_token_path => '/_nc_external/system/security/oauth/RequestTokenHandler',
          :authorize_path     => '/setup/secur/RemoteAccessAuthorizationPage.apexp',
          :access_token_path  => '/_nc_external/system/security/oauth/AccessTokenHandler',
        }
        OAuth::Consumer.new consumer_key, consumer_secret, oauth_options
      end

      def oauth_redirect_uri
        uri = URI.parse(request.url)
        uri.path = '/sfdc/oauth_callback'
        uri.query = nil
        #  uri = "http://localhost:3000/sfdc/oauth_callback"
        uri.to_s
      end

      def oauth_connect
        consumer_key    = '...' # from SalesForce
        consumer = oauth_client
        request = consumer.get_request_token
        redirect_to request.authorize_url(
        :redirect_uri => oauth_redirect_uri,
        :oauth_consumer_key => consumer_key
        )
      end

      def oauth_callback  
        access = request.get_access_token :oauth_verifier => params[:oauth_verifier]
        p access
        render :text => access.token
      end

 

Error undefined method get_access_token for #<ActionDispatch::Request:0x12b79f370>. the request variable is nil here. How do I get it back?