Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class VisitorsController < ApplicationController
- include Databasedotcom::Rails::Controller
- def create
- config = YAML.load_file(File.join(::Rails.root, 'config', 'databasedotcom.yml'))
- client = Databasedotcom::Client.new(config)
- client.authenticate :username => config[:username], :password => config[:password]
- client.materialize("Lead")
- end
Add Comment
Please, Sign In to add comment