Page 1 of 6 | Next »
[14:44:41] makerop: im in the middle of design, and requirements gathering, I am building a site that has 4 main components, a file store, a client command line app, a dashboard, and I think an API
[14:45:20] makerop: the file store (s3) needs to be multi-tenant, and the commandline client and dashboard need to share an auth mechanism
[14:46:06] makerop: does an API that "links" the dashboard, the filestore, and the client command client, via oath make sense?
[20:50:49] makerop: im getting ActiveModel::ForbiddenAttributesError: ActiveModel::ForbiddenAttributesError, in my delayed_job worker
[21:18:39] makerop: Sigma00, Im having some trouble printing otu the stack trace in a readonable formant
[21:44:53] makerop: Sigma00, ActionController::ParameterMissing: param is missing or the value is empty: profile
[21:47:39] makerop: Sigma00, back to ctiveModel::ForbiddenAttributesError: ActiveModel::ForbiddenAttributesError
[15:53:57] makerop: you have to models, Profile, and Routes, if an attribute changes on Profile, various Route methods need to be run
[16:06:03] makerop: i think putting any stock in what someones editor is, in regards to their programming ability
[14:59:44] makerop: before_action :authenticate_user!, except: [:new], if i add that to the contrtoller the test passes
[16:22:24] makerop: all of a sudden im geting allowed networks: erros when I try to access my dev machine remotely
[16:25:18] makerop: it's like there is a security setting tellign rails/webbrick not to work with any remote ips
[19:51:33] makerop: say, someone updates an attribute of a profile, and it needs ot then hit an external service after the update
[20:10:24] makerop: is it fundamentally wrong to have one model, perform an action on another modle explicitly?
[14:40:07] makerop: If I am creating a model record, and need it to depend on another model being created as well, is that "wrong"
[14:41:26] makerop: ie, if I have a an attribute in Profile, when that profile attribute changes, i need it to use my Route model to update an API
[14:41:58] makerop: but if the route model errors when it hits an exteral API, I need to roll everything back
[19:30:53] makerop: anyone have something I can read on how to test an external api, that has a sandbox/test mode
[19:31:11] makerop: everything Im turning up has stubbing, or mocks involved, but I'd like to actually hit the api
[19:55:18] makerop: if you have a method, wtih an if statement, and it's checking the state of an attribute
[19:56:16] makerop: if the external resource ever fails, but changes happen locally, the external resource and the local instance are out of sync
[19:57:05] makerop: ....i know that probably is convoluted, but im having a tough time putting it down on paper
[19:58:15] makerop: in this instance, the only way that route_id should be nil, or not nil, is by interacting with that method
[19:58:57] makerop: but if by some off chance somethign else manipulates route_id, things break, because records could get left on the remote system, that should have been deleted
[20:01:23] makerop: in my example though, should I assume, even though nothing else references it, that route_id may at some point be out of whack, and jump through hoops?
[21:47:17] makerop: is there an easy way to validate an attribute, so it is not nil, but not check upon creation?
[15:30:06] makerop: ie, if I have an initializer: mandrill = Mandrill::API.new ENV['PROD_MANDRILL_PASSWORD']
[15:35:45] makerop: rrawlins, https://bitbucket.org/mailchimp/mandrill-api-ruby/src/51193ecc8adb155a384d0a3e0a44341f0c3a28dd/lib/mandrill.rb?at=master
[15:04:04] makerop: ie, im using https://github.com/evendis/mandrill-rails and want to test the handle_inbound method that will be in the controller
[15:40:40] makerop: app/decorators/mandrill/webhook/event_decorator.rb, and the class event_decorator.rb contains is Mandrill::WebHook::EventDecorator