I have the following error uninitialized constant MercadoPago::SDK , this I am trying in my controller
I already put the gem of mercadopago-sdk
def show
MercadoPago::SDK.client_id = "XXXXXXXXXXXX"
MercadoPago::SDK.client_secret = "XXXXXXXXXXXXXXXXXXXXXX"
end
The issue here might be two things:
rails server
. You will need to do this after you change your Gemfile
.spring
-- the Rails application preloader -- may be caching an older version of your application. You can restart this by running spring stop
, stopping your rails server
process, and then starting rails server
again.