« Back to channel list

#RubyOnRails - 17 May 2018

« Back 1 day Forward 1 day »
[00:07:31] schneider: has joined #RubyOnRails
[00:08:17] chouhoulis: has joined #RubyOnRails
[00:12:08] chouhoulis: has joined #RubyOnRails
[00:12:27] andrevan: has joined #RubyOnRails
[00:13:28] alfiemax: has joined #RubyOnRails
[00:14:09] jottr: has joined #RubyOnRails
[00:16:52] schneider: has joined #RubyOnRails
[00:20:10] xtsee: has joined #RubyOnRails
[00:25:32] cagomez: has joined #RubyOnRails
[00:26:11] fugee: has joined #RubyOnRails
[00:26:11] schneider: has joined #RubyOnRails
[00:26:32] fugee: how do i get a list of countries
[00:26:51] fugee: not for a select list but for a table
[00:29:31] baweaver: What have you tried mices?
[00:29:43] cagomez: has joined #RubyOnRails
[00:33:03] fugee: baweaver in the past i used my own copy of globixdata db but haven't had this comee up since i'm using rails
[00:33:52] fugee: it's a crazy database
[00:34:15] fugee: needs lots of correcting
[00:35:25] fugee: radar nevermind i found it
[00:35:29] schneider: has joined #RubyOnRails
[00:35:41] Radar: what did I do to deserve that
[00:35:42] fugee: probably already using it and forgot
[00:36:05] fugee: sorry wrong programmer i meant baweaver ^
[00:41:41] fugee: anybody wanna be a volunteer music publicist
[00:44:33] Jameser: has joined #RubyOnRails
[00:44:45] schneider: has joined #RubyOnRails
[00:46:18] Jameser: has joined #RubyOnRails
[00:50:31] arooni_team_b: has joined #RubyOnRails
[00:51:43] Radar: easy to confuse us. male, about 30, brown hair. I can see how int happened
[00:52:29] Technodrome: has joined #RubyOnRails
[00:54:10] schneider: has joined #RubyOnRails
[01:03:26] schneider: has joined #RubyOnRails
[01:12:45] schneider: has joined #RubyOnRails
[01:14:07] s2013: has joined #RubyOnRails
[01:19:12] poincare101: has joined #RubyOnRails
[01:22:05] schneider: has joined #RubyOnRails
[01:28:41] cagomez: has joined #RubyOnRails
[01:29:35] orbyt_: has joined #RubyOnRails
[01:31:21] schneider: has joined #RubyOnRails
[01:36:42] cagomez: has joined #RubyOnRails
[01:38:07] mroutis: has joined #RubyOnRails
[01:40:42] schneider: has joined #RubyOnRails
[01:50:02] schneider: has joined #RubyOnRails
[01:59:19] schneider: has joined #RubyOnRails
[02:08:36] schneider: has joined #RubyOnRails
[02:10:54] jottr: has joined #RubyOnRails
[02:17:58] schneider: has joined #RubyOnRails
[02:20:41] Technodrome: has joined #RubyOnRails
[02:27:17] schneider: has joined #RubyOnRails
[02:32:43] twilling: has joined #RubyOnRails
[02:32:51] sevenseacat: has joined #RubyOnRails
[02:33:17] tomaw: has joined #RubyOnRails
[02:36:37] schneider: has joined #RubyOnRails
[02:44:20] tuskkk___: how do we use fixtures with rspec for features? any link to a tutorial would be great
[02:44:54] tuskkk___: I am not able to create records using Model.save for feature, need a way to seed the data
[02:45:55] schneider: has joined #RubyOnRails
[02:55:15] schneider: has joined #RubyOnRails
[02:58:25] tuskkk___: trying to do something like this, https://bpaste.net/show/195c6cdd4d35
[03:02:53] darkhanb: has joined #RubyOnRails
[03:04:36] schneider: has joined #RubyOnRails
[03:09:49] Radar: tuskkk___: Rails devs typically use factory_bot for that sort of thing.
[03:10:16] tuskkk___: ok, do you have an example I can see?
[03:10:21] Radar: https://github.com/rubysherpas/r4ia_examples/blob/master/ticketee/spec/features/viewing_projects_spec.rb
[03:10:44] Radar: In that repo it is called FactoryGirl, as that was the gem's name previously. It has been renamed recently to FactoryGirl, but the functionality is the same.
[03:11:03] Radar: Factories are defined like this: https://github.com/rubysherpas/r4ia_examples/blob/master/ticketee/spec/factories/project_factory.rb
[03:11:09] tuskkk___: oh ok, let me try it, thanks!
[03:11:25] Radar: tuskkk___: You should probably use the factory_bot_rails gem which will automatically load factories in spec/factories.
[03:13:52] schneider: has joined #RubyOnRails
[03:19:09] tuskkk___: Radar: is there a command to generate the factory automatically?
[03:23:12] schneider: has joined #RubyOnRails
[03:24:08] cagomez: has joined #RubyOnRails
[03:25:55] mr-spoon: has joined #RubyOnRails
[03:31:36] kapil___: has joined #RubyOnRails
[03:32:21] poincare101: has joined #RubyOnRails
[03:32:32] schneider: has joined #RubyOnRails
[03:35:19] s2013: has joined #RubyOnRails
[03:36:11] roamingdog: has joined #RubyOnRails
[03:37:12] andrevan: tuskkk___: don't think so, but you could trivially make one by putting a loop in the factory that sends the definition block object all of the activerecord attributes
[03:37:35] andrevan: factory :foobar do |f|
[03:39:14] tuskkk___: Andrevan: trying to do this https://bpaste.net/show/76df92af2ef1, says `ActionView::Template::Error: undefined method `name' for nil:NilClass`
[03:40:03] tuskkk___: the line at which it is shouting says `<td><%= server.cluster.name %></td>`
[03:40:20] tuskkk___: I guess the data model is not created perfectly yet
[03:41:49] schneider: has joined #RubyOnRails
[03:42:04] Radar: server.cluster is nil
[03:42:17] twilling: has joined #RubyOnRails
[03:42:45] tuskkk___: yes, so how do we create that relationship with factory Radar?
[03:44:04] Radar: Remove cluster_id from the server factory
[03:44:16] Radar: Then do FactoryBot.create(:server, cluster: cluster) to set the cluster
[03:46:54] tuskkk___: Radar: ok, this removes the error, https://bpaste.net/show/1ceb88a7914c, but the test still fails :(
[03:48:11] tuskkk___: oh wait, no
[03:48:17] Radar: how does... ok
[03:48:39] tuskkk___: same thing, `ActionView::Template::Error: undefined method `name' for nil:NilClass`
[03:50:49] orbyt_: has joined #RubyOnRails
[03:51:07] schneider: has joined #RubyOnRails
[03:53:12] Radar: Can you show me the full test again please?
[03:53:13] Radar: tuskkk___: !rule3
[03:53:13] helpa: tuskkk___: Clearly explain what is happening and create a Gist (http://gist.github.com), (formatted neatly please: http://bit.ly/1q75oia) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces.
[03:54:50] tuskkk___: Radar: yes, https://bpaste.net/show/832427ab28da
[03:55:32] Radar: Seems fine. If you put "p server.cluster.name" in the test, does that output a name or error out?
[03:55:38] Radar: And can you show me the server model please?
[03:56:49] sevenseacat: I can understand why the data isnt there (lazy loading) but not why theres an error
[03:57:05] tuskkk___: Radar: the Server Model, https://bpaste.net/show/124a9e2a2988
[03:57:32] Radar: tuskkk___: no need for the foreign_key option on the belongs_to there, it will be cluster_id by default
[03:57:41] Radar: tuskkk___: but nevertheless, model seems fine. I don't know why it isn't being set.
[03:58:06] tuskkk___: when you say "p server.cluster.name" you mean print it out right?
[03:58:22] tuskkk___: or put that line as it is there?
[03:58:45] sevenseacat: can you show the backtrace of the error?
[03:59:00] sevenseacat: like theres no data at all so why is it trying to be printed
[03:59:10] tuskkk___: yes, https://bpaste.net/show/627448ae1876
[03:59:21] tuskkk___: or you want to see the whole thing?
[03:59:35] sevenseacat: ok so whats server in that view?
[04:00:07] tuskkk___: Server model, coming in from the controller
[04:00:18] tuskkk___: instantiated using, @servers = Server.order(:friendly_name)
[04:00:32] schneider: has joined #RubyOnRails
[04:00:42] tuskkk___: https://bpaste.net/show/da9b13428312
[04:00:48] sevenseacat: ok so that should be coming up with no records based on that test
[04:01:01] sevenseacat: so you've got some leftover dodgy data in your database, I think
[04:01:26] tuskkk___: this is the test db, let me drop it and redo this, one moment
[04:03:31] tuskkk___: ok, dropping it shows the page output, but the server is not created, https://bpaste.net/show/4907dd156b2f
[04:03:39] tuskkk___: says 'No records found'
[04:04:27] sevenseacat: perfect. so nowy ou have no records because your data isnt being created in your test
[04:04:51] sevenseacat: data is lazily instantiated in specs - because you're not referring to the generated data, it isnt being generated
[04:05:03] sevenseacat: you can override this by using let! instead of let
[04:05:14] tuskkk___: oh ok, let me try that
[04:05:44] tuskkk___: thanks a lot sevenseacat!
[04:09:19] Radar: oh I missed that. Good pick up sevenseacat :)
[04:09:55] schneider: has joined #RubyOnRails
[04:11:44] jottr: has joined #RubyOnRails
[04:19:06] schneider: has joined #RubyOnRails
[04:24:52] alexertech: has joined #RubyOnRails
[04:25:11] alexertech: hey world!, anyone here has tested the ahoy analytics ?
[04:25:43] alexertech: Im looking for a simple tracker for my site, to get the idea of search keywords and number of visits that is getting the site, nothing to fancy
[04:28:27] schneider: has joined #RubyOnRails
[04:30:17] poincare101: has joined #RubyOnRails
[04:37:41] schneider: has joined #RubyOnRails
[04:47:06] schneider: has joined #RubyOnRails
[04:56:22] schneider: has joined #RubyOnRails
[04:56:43] Technodrome: has joined #RubyOnRails
[05:05:42] schneider: has joined #RubyOnRails
[05:10:31] za1b1tsu: has joined #RubyOnRails
[05:15:04] schneider: has joined #RubyOnRails
[05:24:20] schneider: has joined #RubyOnRails
[05:25:13] apeiros: has joined #RubyOnRails
[05:33:39] schneider: has joined #RubyOnRails
[05:42:55] schneider: has joined #RubyOnRails
[05:51:07] Dykam: has joined #RubyOnRails
[05:52:20] schneider: has joined #RubyOnRails
[05:52:55] mtkd: has joined #RubyOnRails
[05:59:24] 7GHAAT31H: has joined #RubyOnRails
[05:59:25] reber: has joined #RubyOnRails
[06:00:55] srinidhi: has joined #RubyOnRails
[06:01:34] reber: has joined #RubyOnRails
[06:01:38] schneider: has joined #RubyOnRails
[06:10:56] schneider: has joined #RubyOnRails
[06:12:36] jottr: has joined #RubyOnRails
[06:20:34] schneider: has joined #RubyOnRails
[06:31:15] sidx64: has joined #RubyOnRails
[06:36:35] tuskkk___: I have a scenario to test, it involves calling a web service, at the moment I am creating a resource and deleting it through the test. However if this were something like a payment service, how is that tested?
[06:37:12] tuskkk___: is there a way to mock the whole service layer? rspec supports something like that?
[06:37:58] tuskkk___: I was reading about stubs in the aws sdk, but that may involve rewriting my methods for the service layer, how is that done?
[06:39:31] sidx64_: has joined #RubyOnRails
[06:42:44] sidx64: has joined #RubyOnRails
[06:43:38] apeiros: has joined #RubyOnRails
[06:44:13] drale2k_: has joined #RubyOnRails
[06:46:18] schneider: has joined #RubyOnRails
[06:59:05] Technodrome: has joined #RubyOnRails
[07:01:48] Tempesta: has joined #RubyOnRails
[07:07:12] schneider: has joined #RubyOnRails
[07:15:28] blackmesa1: has joined #RubyOnRails
[07:21:27] nickenchuggets: has joined #RubyOnRails
[07:26:54] blackmesa1: has joined #RubyOnRails
[07:32:15] schneider: has joined #RubyOnRails
[07:33:33] mikecmpbll: has joined #RubyOnRails
[07:39:43] schneider: has joined #RubyOnRails
[07:51:41] hahuang65: has joined #RubyOnRails
[07:52:42] Dykam: has joined #RubyOnRails
[07:57:29] mtkd: has joined #RubyOnRails
[07:58:55] hahuang65: has joined #RubyOnRails
[08:04:15] mikecmpbll: has joined #RubyOnRails
[08:13:27] jottr: has joined #RubyOnRails
[08:15:13] wethu: has joined #RubyOnRails
[08:30:53] dionysus69: has joined #RubyOnRails
[08:32:26] dionysus69: has joined #RubyOnRails
[08:38:29] KeyJoo: has joined #RubyOnRails
[08:39:25] KeyJoo: has joined #RubyOnRails
[08:42:35] NL3limin4t0r: has joined #RubyOnRails
[08:45:02] conta: has joined #RubyOnRails
[08:45:34] srinidhi: has joined #RubyOnRails
[08:57:58] ellcs: has joined #RubyOnRails
[08:58:40] Dykam: has joined #RubyOnRails
[09:05:14] alfiemax: has joined #RubyOnRails
[09:07:13] DTZUZO: has joined #RubyOnRails
[09:08:13] nayena: has joined #RubyOnRails
[09:12:37] DrYockel: has joined #RubyOnRails
[09:18:19] sidx64: has joined #RubyOnRails
[09:24:04] anikras: has joined #RubyOnRails
[09:24:30] anikras: hi, how can I use in rails htaccess similar to rails server ?
[09:27:55] anikras: i need to protect application with user and password
[09:31:30] anikras: i am not using apache
[09:31:44] anikras: i cannot use htaccess
[09:34:17] sevenseacat: anikras: http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Basic.html might be what youre looking for
[09:37:39] DoubleMalt: has joined #RubyOnRails
[09:40:27] tuskkk___: is there any test spec like, `expect(page).to not_have_text('lala')`?
[09:41:11] sevenseacat: tuskkk___: you can invert .to to be .to_not (or .not_to)
[09:41:25] tuskkk___: ok, thanks!
[09:42:01] anikras: sevenseacat, thanks
[09:46:08] marr: has joined #RubyOnRails
[09:47:03] alfiemax: has joined #RubyOnRails
[09:56:51] schneider: has joined #RubyOnRails
[10:02:05] mtkd: has joined #RubyOnRails
[10:06:07] Radar: GOOD EVENING
[10:08:23] apeiros: moin Radar
[10:09:42] anikras: i used this and works fine: http_basic_authenticate_with name: "admin", password: "hunter2"
[10:09:50] anikras: how can add two users ?
[10:10:11] anikras: I tried copy/paste with other name and password, but not working
[10:10:40] Radar: how did you know my password
[10:10:53] Radar: anikras: if you want multiple users then you should look at something like Devie.
[10:12:05] anikras: Radar, it's only for testing
[10:14:19] jottr: has joined #RubyOnRails
[10:19:21] Radar: Only for testing but two users need access?
[10:21:13] Radar: authenticate_with_http_basic will probably let you take multiple usernames / passwords.
[10:21:31] Radar: Shame its documentation is crap.
[10:22:20] Radar: https://gist.github.com/radar/df41ecb6535099beba0c082ba8e64fb1
[10:22:28] Radar: Here's a quick code example that will do it.
[10:27:53] Fernando-Basso: has joined #RubyOnRails
[10:45:44] Radar: anikras: ^ did you see that?
[10:50:04] tuskkk___: how do we persist the changes made using let to the db for all scenarios?
[10:51:37] tuskkk___: e.g here only the listing works, https://bpaste.net/show/24498529b479 , tried doing before each, but it shouts
[10:54:52] Radar: database is reset on every example to ensure a pristine state
[10:55:15] Radar: Each test should be isolated from every other test before and after it
[10:55:19] tuskkk___: ok, so how do we persist?
[10:57:16] tuskkk___: actually wait, reset? But they arent being created again
[10:59:43] tuskkk___: something totally weird is happening, if I comment out the list scenario, add and delete are working.
[11:00:09] drale2k_: has joined #RubyOnRails
[11:00:15] Exagone313: has joined #RubyOnRails
[11:00:15] alfiemax: has joined #RubyOnRails
[11:03:03] tbuehlmann: tuskkk___: the database doesn't reset on its own. do you use a database rewinder or cleaner? do you use transaction fixtures?
[11:05:20] tbuehlmann: transactional*
[11:07:29] tbuehlmann: also, it seems you're relying on the scenario order, is that the case? if yo, you shouldn't do that. you should instead setup your examples in a way they will work on their own
[11:09:49] tuskkk___: tbuehlmann: no, one order is necessary since it involves a third party api call for resource creation and deletion on aws
[11:09:57] tuskkk___: I think its caused by this, https://bpaste.net/show/f715a127df9b
[11:10:25] tuskkk___: this `n` is increasing beyond 5 and I have hardcoded the compares :(
[11:10:43] apparition: has joined #RubyOnRails
[11:10:57] tbuehlmann: you know the answer to this problem :)
[11:11:29] tbuehlmann: also, again, don't let one example rely on other examples. setup your examples so they work on their own
[11:13:17] tuskkk___: tbuehlmann: no idea how to do that in this case
[11:13:35] tuskkk___: a resource has to be created in order to test delete
[11:14:27] tuskkk___: tbuehlmann: I just know the problem, looking into how to set it up in a better way, or perhaps fix that sequence to 1-5
[11:15:10] tbuehlmann: don't use hardcoded ids or names, just use real values from cluster1/server1/server2
[11:15:35] tbuehlmann: for that resource creation stuff: you could mock that so no actual requests are made
[11:16:06] drale2k_: has joined #RubyOnRails
[11:16:22] tbuehlmann: it's up to you whether this test should test the API or not, I probably wouldn't include it
[11:16:37] tuskkk___: how would you do it then?
[11:19:19] mtkd: has joined #RubyOnRails
[11:19:29] GodFather: has joined #RubyOnRails
[11:22:02] tbuehlmann: you're calling the API at some point and it's probably some kind of object that does it. so, stub that method call
[11:29:39] tuskkk___: tbuehlmann: yes, I thought of that too, but how?
[11:29:58] tuskkk___: rewrite that call where?
[11:30:43] tbuehlmann: https://relishapp.com/rspec/rspec-mocks/v/3-7/docs/basics/allowing-messages
[11:30:56] tbuehlmann: in your example or in a before block
[11:31:26] tbuehlmann: if it's easier for now, instead of stubbing the method call, just create that resource upfront
[11:31:38] tuskkk___: tbuehlmann: when I ask it to `visit '/remove_rotation?cluster_id=1&name=test2'`, api is called
[11:32:17] tuskkk___: how will I then manage that resource if I were to create it upfront?
[11:32:57] tbuehlmann: let!(:that_resource) { YourApiThingy.create_that_resource }, then use that_resource in your example
[11:33:34] tuskkk___: hmm, yeah, why didn't I think of that
[11:33:58] tuskkk___: makes these methods idempotent
[11:35:23] tuskkk___: let me try and do this for now, mocking seems more `correct` way to do it though
[11:36:45] anikras: I resolved the problem with auth http
[11:40:39] _aeris_: has joined #RubyOnRails
[11:41:01] GodFather: has joined #RubyOnRails
[11:45:16] conta1: has joined #RubyOnRails
[11:48:24] sidx64: has joined #RubyOnRails
[11:49:36] mostlybadfly: has joined #RubyOnRails
[11:52:38] Cavallari: has joined #RubyOnRails
[11:53:42] test1337: has joined #RubyOnRails
[11:54:08] test1337: do i need to be proficient with driving a train, before i start learning rubyonRAILS ?
[11:55:04] test1337: choo choo, choo choooo
[11:55:56] jnollette: has joined #RubyOnRails
[11:57:54] NL3limin4t0r: test1337: nah, but an understanding of the ruby grammer and syntax helps
[11:58:01] test1337: has left #RubyOnRails: ("Leaving")
[12:01:57] alfiemax: has joined #RubyOnRails
[12:02:52] drale2k_: has joined #RubyOnRails
[12:03:55] Jameser: has joined #RubyOnRails
[12:05:41] tuskkk___: hey tbuehlmann, just like we created up front resources, is there something like a cleanup?
[12:07:05] tbuehlmann: well, in case of database records that's what transactional fixtures (or transactional "tests") or a database rewinder/cleaner is for. for your API? no idea
[12:07:29] tbuehlmann: technically you can use an after block, if that's what you mean
[12:07:44] tuskkk___: ok, yes, some place to run after that thing runs
[12:08:00] tuskkk___: I mean some code block to execute after that thing runs
[12:08:07] tbuehlmann: https://relishapp.com/rspec/rspec-core/v/3-7/docs/hooks/before-and-after-hooks
[12:09:03] tuskkk___: cool, thanks tbuehlmann!
[12:12:42] tuskkk___: hmm, tbuehlmann I guess I poked a bear, `RuntimeError: let declaration `server1` accessed in an `after(:context)``
[12:13:58] tbuehlmann: and you probably can't do a delete_all, right?
[12:14:41] tuskkk___: no, havn't written that operation
[12:15:14] jottr: has joined #RubyOnRails
[12:18:04] MedubzZ: has joined #RubyOnRails
[12:19:57] tuskkk___: if I put all these inside `before all` will there any problem? like ruby issues of lazy loading and stuff? would that be advisable?
[12:20:28] tbuehlmann: tuskkk___: you could switch to an `after { … }` (which is a `after(:example) { … }), you can access let helpers in there)
[12:21:47] tuskkk___: tbuehlmann: that's what I did, https://bpaste.net/show/3de20d65a423
[12:22:14] tuskkk___: you mean with braces? is there a difference?
[12:22:48] tbuehlmann: no, I mean after(:example) instead of after(:context)
[12:24:12] wethu: has joined #RubyOnRails
[12:24:43] tuskkk___: cool, that was awesome, may I please know the difference between example and context
[12:25:13] tuskkk___: thanks a lot btw, lifesaving stuff
[12:26:17] MedubzZ: has joined #RubyOnRails
[12:27:48] dANO: has joined #RubyOnRails
[12:29:00] tbuehlmann: see https://relishapp.com/rspec/rspec-core/v/3-7/docs/hooks/before-and-after-hooks first code block
[12:38:25] mroutis: has joined #RubyOnRails
[12:39:22] quazimodo: has joined #RubyOnRails
[12:56:55] moei: has joined #RubyOnRails
[12:58:32] Jameser: has joined #RubyOnRails
[12:59:38] greengriminal: has joined #RubyOnRails
[13:03:52] DrYockel1: has joined #RubyOnRails
[13:23:33] egray: has joined #RubyOnRails
[13:23:52] mtkd: has joined #RubyOnRails
[13:32:17] reber: has joined #RubyOnRails
[13:49:53] c0lored: has joined #RubyOnRails
[13:50:00] c0lored: Good morning!
[13:51:50] c0lored: I have been tasked with figuring out why this RoR app is not functioning correctly. I have got most of it squashed, its serving the right stuff...but on login i get an connection refused... i do not believe its from my Database, as I can see queries running, but I can't seem to find where its trying to connect to.
[13:51:56] c0lored: could some one point me in the right direction?
[13:54:15] fryguy: well what is the connection going to
[13:58:34] c0lored: that is what i trying to find out LOLOL
[14:06:16] Technodrome: has joined #RubyOnRails
[14:10:03] quazimodo: has joined #RubyOnRails
[14:16:04] jottr: has joined #RubyOnRails
[14:19:32] sidx64: has joined #RubyOnRails
[14:23:00] mauro1254: has joined #RubyOnRails
[14:23:15] sidx64: has joined #RubyOnRails
[14:27:35] blackmesa1: has joined #RubyOnRails
[14:39:04] chouhoulis: has joined #RubyOnRails
[14:42:45] gavit: has left #RubyOnRails: ()
[14:46:29] Technodrome: has joined #RubyOnRails
[14:48:55] mauro1254: Hi folks, is there a way to create associations between ActiveRecord models and ActiveResource ones
[14:52:01] mtkd: has joined #RubyOnRails
[15:01:13] dblessing: has joined #RubyOnRails
[15:12:24] cagomez: has joined #RubyOnRails
[15:13:31] cagomez: has joined #RubyOnRails
[15:18:28] schneider: has joined #RubyOnRails
[15:25:29] schneider: has joined #RubyOnRails
[15:29:08] DTZUZO: has joined #RubyOnRails
[15:30:11] chouhoulis: has joined #RubyOnRails
[15:39:33] mtkd: has joined #RubyOnRails
[15:43:50] jcarl43: has joined #RubyOnRails
[15:54:26] blackmesa1: has joined #RubyOnRails
[15:56:43] Dbugger: has joined #RubyOnRails
[16:03:32] regedit: has joined #RubyOnRails
[16:15:34] darkhanb: has joined #RubyOnRails
[16:22:13] kevinburke: has joined #RubyOnRails
[16:24:06] MedubzZ: has joined #RubyOnRails
[16:35:41] kevinburke: is there any way to get Rails to *not* load my controllers or config/routes.rb?
[16:36:17] chouhoulis: has joined #RubyOnRails
[16:37:35] kevinburke: say for example I am migrating the database
[16:37:41] kevinburke: I don't need to parse and load config/routes.rb
[16:37:44] kevinburke: but Rails does it
[16:41:40] chouhoulis: has joined #RubyOnRails
[16:47:12] chouhoulis: has joined #RubyOnRails
[16:51:04] orbyt_: has joined #RubyOnRails
[16:52:34] chouhoulis: has joined #RubyOnRails
[16:57:41] sidx64: has joined #RubyOnRails
[16:58:00] chouhoulis: has joined #RubyOnRails
[17:05:42] MedubzZ: has joined #RubyOnRails
[17:07:35] dviola: has joined #RubyOnRails
[17:18:31] sidx64_: has joined #RubyOnRails
[17:22:26] MedubzZ: has joined #RubyOnRails
[17:28:20] Ericx2x: has joined #RubyOnRails
[17:28:28] Ericx2x: hey what's with this rake error? https://imgur.com/a/lVbj47y
[17:32:16] alfiemax: has joined #RubyOnRails
[17:32:48] egray: has joined #RubyOnRails
[17:41:47] GodFather: has joined #RubyOnRails
[17:47:20] sidx64: has joined #RubyOnRails
[17:55:57] mikecmpbll: has joined #RubyOnRails
[17:57:11] orbyt_: has joined #RubyOnRails
[18:01:49] sameerynho: has joined #RubyOnRails
[18:06:57] dionysus69: has joined #RubyOnRails
[18:10:04] apeiros__: has joined #RubyOnRails
[18:12:21] c0lored: itsupport@gridlock 187econgress]$ rvm use ree
[18:12:21] c0lored: Using /usr/local/rvm/gems/ree-1.8.7-2012.02
[18:12:21] c0lored: [itsupport@gridlock 187econgress]$ ruby -e 'p IO::WaitReadable'
[18:12:22] c0lored: -e:1: uninitialized constant IO::WaitReadable (NameError)
[18:12:38] c0lored: is that expected behaviour?
[18:24:43] orbyt_: has joined #RubyOnRails
[18:36:18] mtkd: has joined #RubyOnRails
[18:37:06] srinidhi: has joined #RubyOnRails
[18:44:51] Cache_Money: has joined #RubyOnRails
[18:47:26] MedubzZ: has joined #RubyOnRails
[19:04:41] Cavallari: has joined #RubyOnRails
[19:05:25] MedubzZ: has joined #RubyOnRails
[19:06:33] MedubzZ: has left #RubyOnRails: ()
[19:07:02] MedubzZ: has joined #RubyOnRails
[19:10:16] apeiros: has joined #RubyOnRails
[19:30:31] GodFather: has joined #RubyOnRails
[19:37:33] noodle: has joined #RubyOnRails
[19:48:05] sidx64: has joined #RubyOnRails
[19:55:03] mtkd: has joined #RubyOnRails
[19:56:07] schneider: has joined #RubyOnRails
[19:57:05] kapil___: has joined #RubyOnRails
[19:57:45] apeiros: has joined #RubyOnRails
[20:03:21] sagax: has joined #RubyOnRails
[20:11:18] dionysus70: has joined #RubyOnRails
[20:23:30] defsdoor: has joined #RubyOnRails
[20:48:12] Dbugger: has joined #RubyOnRails
[20:51:27] Dbugger: Can anyone tell me why the first block fails, but the second is successful? https://www.hastebin.com/oyobujazud.rb
[20:51:59] Dbugger: Apparently I cant save a whole tree of model associations, as long as one has the "belongs_to" association explicitely called as the table??
[21:01:13] cagomez: how do I convert a DateTime to this format? `2018-05-17T20:57:38Z`?
[21:04:23] nacsurte: has joined #RubyOnRails
[21:05:38] nacsurte: im trying to get the ActiveStorage variant method to resize something, but getting this error: mogrify: unrecognized option `-resize-to-fit'
[21:18:13] Technodrome: has joined #RubyOnRails
[21:19:56] dang`r`us: has left #RubyOnRails: ("WeeChat 2.0.1")
[21:21:52] Dbugger: I posted my question here for more detail: https://stackoverflow.com/questions/50400448/rails-cant-save-my-model-relationships-tree-in-one-single-save-operation
[21:33:55] tdy: has joined #RubyOnRails
[21:35:23] chocoelho: has joined #RubyOnRails
[21:41:48] uks: has joined #RubyOnRails
[21:42:31] ur5us: has joined #RubyOnRails
[21:43:01] ur5us: has joined #RubyOnRails
[21:56:29] blackcross: Dbugger: read the comments in your post, they explain your problem :)
[22:03:05] Technodrome: has joined #RubyOnRails
[22:09:18] croberts: has joined #RubyOnRails
[22:09:21] croberts: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[22:22:00] ur5us: has joined #RubyOnRails
[22:24:41] tfitts: I'm trying to pass in a global id to an active job, but even if I convert the gid to a string I still see in the log that it's passing the GID object
[22:32:24] mikecmpbll: has joined #RubyOnRails
[23:03:40] Radar: GOOD MORNING
[23:10:05] tfitts: morning radar
[23:12:00] samosaphile: has joined #RubyOnRails
[23:15:42] tfitts: I don't really have anyone else to bounce this question off, wondering if you have any ideas. I'm trying to figure out a way to let people subscribe to alerts for different actions on different models with different formats (e.g. email, sms). I'm trying to figure out how to manage how to generate the proper message based on model, contact, event, format and send it on. I think the subscription part is pretty easy,
[23:16:26] tfitts: but trying to figure out which info should be passed into what model/class to get the right message without it getting ugly and and messy to maintain
[23:18:40] cschneid_: has joined #RubyOnRails
[23:26:21] kapil___: has joined #RubyOnRails
[23:46:38] machinewar: has joined #RubyOnRails
[23:47:20] machinewar: for encrypted credentials in Rails 5.2 does that mean we no longer store these values in ENV variables? Will you need to redeploy every time you want to update one?
[23:52:19] quazimodo: has joined #RubyOnRails