This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> Booting Puma | |
=> Rails 6.0.4.1 application starting in development | |
=> Run `rails server --help` for more startup options | |
Exiting | |
/home/sergio/.rvm/gems/ruby-3.0.2/gems/activemodel-6.0.4.1/lib/active_model/attribute_assignment.rb:30:in `assign_attributes': When assigning attributes, you must pass a hash as an argument, ActionDispatch::Routing::RouteSet passed. (ArgumentError) | |
from /home/sergio/.rvm/gems/ruby-3.0.2/gems/activerecord-6.0.4.1/lib/active_record/core.rb:324:in `initialize' | |
from /home/sergio/.rvm/gems/ruby-3.0.2/gems/activerecord-6.0.4.1/lib/active_record/inheritance.rb:70:in `new' | |
from /home/sergio/.rvm/gems/ruby-3.0.2/gems/activerecord-6.0.4.1/lib/active_record/inheritance.rb:70:in `new' | |
from /home/sergio/.rvm/gems/ruby-3.0.2/gems/actionpack-6.0.4.1/lib/action_dispatch/middleware/stack.rb:37:in `build' | |
from /home/sergio/.rvm/gems/ruby-3.0.2/gems/actionpack-6.0.4.1/lib/action_dispatch/middleware/stack.rb:136:in `block in build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/omniauth/facebook.rb | |
require 'httparty' | |
module Omniauth | |
class Facebook | |
include HTTParty | |
# The base uri for facebook graph API | |
base_uri 'https://graph.facebook.com/v2.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parser | |
def initialize(hash) | |
@hash = hash | |
end | |
def parse() | |
@hash.inject({}) do |h, (k, v)| | |
h[k] = parse_element(k, v) | |
h | |
end |