Setting configuration parameters in rails config and reading it from controller

Hi,

I have a set of parameters that needs to be initialized for ElasticMQ
sqs.
Right now I have added in the controller as below.

sqs =

RightAws::SqsGen2.new(“ABCD”,“DEFG”,{:server=>“localhost”,:port=>9324,:protocol=>“http”})

what is the better way to set it in config folder and access it in
controller and how to do it. Please help

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs