kinda clueless on this - I setup a new dir in app/ called app/services where I have created various classes for connecting to other services outside of my app. In those classes in app/services, I can't seem to use logger - it says undefined local variable or method 'logger'
so I created a generic_service.rb defining a GenericService class which contains logger = Rails.logger, but this didn't change the error.
I designed an api with one controller (deployments) nested within another controller (templates) such that to create a deployment you need to know the template id first, i.e. POST /templates/#template_id/deployments
but now this developer who seems unfamiliar with REST and has a lot of power over me insists that I create a separate controller that can generate or reuse a template for every deployment i.e. POST /new_deployment
it would include in the parameters all params required for both template and deployment (even though the template is very static). I tried everything to talk him out of it but he was arguing like it was life or death
anyway so I'm building the new_deployments controller, and wondering, do I need a NewDeployment model? I certainly don't want to keep two copies of the params
and I want validation to propagate properly and not have to repeat myself as I develop NewDeployment
I'm having a durrrr moment. on mac sierra, trying to run 'bundle install' for the first time. I get "Could not reach host index.rubygems.org. Check your network connection and try again."
I can wget http://index.rubygems.org and get a nice index file in the same terminal session