Pradeep Achuthan
2014-Apr-14 07:27 UTC
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
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/35b13f5a-83c3-44ab-867a-4f5eda2ece9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.