« Back to channel list

#RubyOnRails - 08 June 2017

« Back 1 day Forward 1 day »
[00:10:20] urkle: has joined #RubyOnRails
[00:12:04] quazimodo: has joined #RubyOnRails
[00:20:46] rakm: has joined #RubyOnRails
[00:28:45] psylone: has joined #RubyOnRails
[00:30:34] nesoi: has joined #RubyOnRails
[00:35:41] aajjbb: has joined #RubyOnRails
[00:43:44] HoierM: has joined #RubyOnRails
[00:51:16] Rodya_: has joined #RubyOnRails
[00:51:32] brent__: has joined #RubyOnRails
[00:53:14] Technodrome: has joined #RubyOnRails
[00:55:09] sevenseacat: has joined #RubyOnRails
[00:55:26] harfangk: has joined #RubyOnRails
[00:58:56] ResidentBiscuit: has joined #RubyOnRails
[01:22:32] irishfromua: has joined #RubyOnRails
[01:28:44] nesoi: has joined #RubyOnRails
[01:32:55] lord4163: has joined #RubyOnRails
[01:35:39] Lukian: has joined #RubyOnRails
[01:45:13] Jameser: has joined #RubyOnRails
[01:45:30] ur5us: has joined #RubyOnRails
[01:54:26] byteflame: has joined #RubyOnRails
[02:00:59] xx00__: has joined #RubyOnRails
[02:03:27] patarr: has joined #RubyOnRails
[02:21:02] urkle: has joined #RubyOnRails
[02:29:36] psylone: has joined #RubyOnRails
[02:36:04] patarr: has joined #RubyOnRails
[02:45:04] irishfromua: has joined #RubyOnRails
[02:50:34] patarr: has joined #RubyOnRails
[02:50:48] guacamole: has joined #RubyOnRails
[02:58:03] byteflame: has joined #RubyOnRails
[03:00:19] sandstrom: has joined #RubyOnRails
[03:03:06] urkle: has joined #RubyOnRails
[03:07:23] Radar: Someone says that I have had "some involvement" in the Spree project.
[03:07:31] Radar: How to respond?
[03:26:07] urkle: has joined #RubyOnRails
[03:31:37] byteflame: has joined #RubyOnRails
[03:52:00] ascarter_: has joined #RubyOnRails
[04:24:18] cgfbee: has joined #RubyOnRails
[04:32:12] urkle: has joined #RubyOnRails
[04:35:06] knight33: has joined #RubyOnRails
[04:42:18] ascarter: has joined #RubyOnRails
[04:43:34] aajjbb: has joined #RubyOnRails
[04:44:05] brent__: has joined #RubyOnRails
[04:45:52] psylone: has joined #RubyOnRails
[04:59:15] Rodya_: has joined #RubyOnRails
[05:28:22] ascarter: has joined #RubyOnRails
[05:34:50] srinidhi: has joined #RubyOnRails
[05:35:27] agent_white: has joined #RubyOnRails
[05:39:21] byteflame: has joined #RubyOnRails
[05:43:21] zzj: has joined #RubyOnRails
[05:45:40] quazimodo: has joined #RubyOnRails
[05:54:31] roshanavand: has joined #RubyOnRails
[06:00:28] patarr: has joined #RubyOnRails
[06:00:33] Rodya_: has joined #RubyOnRails
[06:12:09] dionysus69: has joined #RubyOnRails
[06:34:41] dionysus69: has joined #RubyOnRails
[06:35:43] arup_r: has joined #RubyOnRails
[06:42:20] conta: has joined #RubyOnRails
[06:55:03] timdotrb: has joined #RubyOnRails
[06:57:28] urkle: has joined #RubyOnRails
[07:02:24] Rodya_: has joined #RubyOnRails
[07:08:09] jfelchner: has joined #RubyOnRails
[07:08:47] srinidhi: has joined #RubyOnRails
[07:10:22] cjhowe7: has joined #RubyOnRails
[07:12:29] ur5us: has joined #RubyOnRails
[07:21:08] mitt3ns: has joined #RubyOnRails
[07:36:14] sandstrom: has joined #RubyOnRails
[07:58:54] psylone: has joined #RubyOnRails
[08:00:57] patarr: has joined #RubyOnRails
[08:01:31] S1kx: has joined #RubyOnRails
[08:01:37] arBmind: has joined #RubyOnRails
[08:03:22] Rodya_: has joined #RubyOnRails
[08:03:52] mikecmpbll: has joined #RubyOnRails
[08:13:26] zzj: has joined #RubyOnRails
[08:16:24] rgr_: has joined #RubyOnRails
[08:19:10] dionysus69: has joined #RubyOnRails
[08:20:40] xibalba: has joined #RubyOnRails
[08:36:32] volix: has joined #RubyOnRails
[08:36:54] aeffle: has joined #RubyOnRails
[08:38:10] mtkd: has joined #RubyOnRails
[08:39:35] byteflame: has joined #RubyOnRails
[08:40:19] sandstrom: has joined #RubyOnRails
[08:49:27] quazimodo: has joined #RubyOnRails
[08:53:09] sevenseacat: has joined #RubyOnRails
[08:54:27] quazimodo: has joined #RubyOnRails
[08:57:30] lxsameer: has joined #RubyOnRails
[09:03:56] [dmp]: has joined #RubyOnRails
[09:04:23] Rodya_: has joined #RubyOnRails
[09:20:07] dminuoso: Radar: Ask them which bug they reported.
[09:26:07] workmad3: has joined #RubyOnRails
[09:33:31] shotbug: has joined #RubyOnRails
[09:37:17] arBmind: has joined #RubyOnRails
[09:38:53] arup_r: has joined #RubyOnRails
[09:46:10] psylone: has joined #RubyOnRails
[09:53:55] marr: has joined #RubyOnRails
[09:55:28] zzj: has joined #RubyOnRails
[09:57:14] urkle: has joined #RubyOnRails
[10:01:46] patarr: has joined #RubyOnRails
[10:03:12] psylone_: has joined #RubyOnRails
[10:05:11] Rodya_: has joined #RubyOnRails
[10:09:59] Torrone: has joined #RubyOnRails
[10:12:35] arup_r: has joined #RubyOnRails
[10:18:53] Pumukel: has joined #RubyOnRails
[10:21:55] ferr1: has joined #RubyOnRails
[10:22:06] arBmind: has joined #RubyOnRails
[10:28:52] chouhoulis: has joined #RubyOnRails
[10:29:58] muhlisbc: has joined #RubyOnRails
[10:37:13] quazimodo: has joined #RubyOnRails
[10:39:01] robnester: has joined #RubyOnRails
[10:39:45] byteflame: has joined #RubyOnRails
[11:05:48] Rodya_: has joined #RubyOnRails
[11:12:08] ahrs: has joined #RubyOnRails
[11:22:31] charlielor: has joined #RubyOnRails
[11:24:38] hobodave: has joined #RubyOnRails
[11:34:11] arBmind: has joined #RubyOnRails
[11:37:57] HoierM: has joined #RubyOnRails
[11:42:02] gregf_: has joined #RubyOnRails
[11:46:55] conta: has joined #RubyOnRails
[11:47:24] sandstrom: has joined #RubyOnRails
[11:52:37] arup_r: has joined #RubyOnRails
[11:56:25] urkle: has joined #RubyOnRails
[11:57:16] MrCrackPotBuilde: has joined #RubyOnRails
[12:00:14] ur5us: has joined #RubyOnRails
[12:02:46] patarr: has joined #RubyOnRails
[12:06:35] Rodya_: has joined #RubyOnRails
[12:17:48] arBmind: has joined #RubyOnRails
[12:26:49] centrx: has joined #RubyOnRails
[12:27:21] pupsicle: has joined #RubyOnRails
[12:27:38] charlielor: has joined #RubyOnRails
[12:28:02] Fernando-Basso: has joined #RubyOnRails
[12:33:46] nad97: has joined #RubyOnRails
[12:39:52] byteflame: has joined #RubyOnRails
[12:51:02] MrCrackPotBuilde: has joined #RubyOnRails
[12:51:55] zzj: has joined #RubyOnRails
[12:52:30] urkle: has joined #RubyOnRails
[12:54:26] Jameser: has joined #RubyOnRails
[12:59:35] ule: Anyone using VIM as primary editor? How do you automate your ctags to execute every once in the while?
[13:01:13] ule: I'm executing manually but doesnt' sounds the best way to do it
[13:07:37] Rodya_: has joined #RubyOnRails
[13:16:57] shotbug: has joined #RubyOnRails
[13:17:02] mostlybadfly: has joined #RubyOnRails
[13:20:28] centrx: ule: I don't even use ctags, so that doesn't sound like the best way to do it either
[13:20:56] ule: centrx: I got a nice suggestion from #vim channel. it's a plugin called: vim-gutentags
[13:21:18] ule: centrx: ctags is awesome, It allows you to "jump to method definition"
[13:21:41] ule: I'm using this:
[13:21:45] ule: ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)
[13:22:38] centrx: Noted for further investigation. Thanks!
[13:25:18] mimico: has joined #RubyOnRails
[20:34:31] helpa: has joined #RubyOnRails
[20:34:39] tbuehlmann: how's the time generated?
[20:34:42] cjohnson: Is there a handy method for testing that two times are within X seconds of each other?
[20:34:59] cjohnson: they are ActiveSupport::TimeWithZone
[20:35:32] Technodrome: has joined #RubyOnRails
[20:35:47] cjohnson: the compared value is generated like: xSeconds.to_i.seconds.from_now
[20:35:55] cjohnson: the former comes from an ActiveRecord mock
[20:36:06] tbuehlmann: maybe travel is something for you: http://api.rubyonrails.org/classes/ActiveSupport/Testing/TimeHelpers.html#method-i-travel
[20:36:33] cjohnson: I mean basically all I'm trying to test here is that b - a < 2 seconds
[20:36:37] cjohnson: but I was wondering if there was a helper
[20:37:38] cjohnson: I don't need time travel I don't think
[20:42:12] urkle: has joined #RubyOnRails
[20:43:39] cjohnson: a.to be_within(2.second).of b
[20:44:02] cjohnson: Ok next question, and this is more just a style question
[20:44:19] cjohnson: expect(prescription.in_progress_rxchange_action.action_status.complete_after).to be_within(2.seconds).of tested_interval.to_i.seconds.from_now
[20:44:39] cjohnson: Seems like a really long line. Should I assign the complete_after to its own variable then pass that to expect? Should I just stick an arbitrary newline?
[20:49:53] ascarter: has joined #RubyOnRails
[20:55:33] aajjbb: has joined #RubyOnRails
[20:56:28] hobodave: has joined #RubyOnRails
[20:56:55] tercenya: has joined #RubyOnRails
[20:58:02] arup_r: has joined #RubyOnRails
[21:02:37] kies: has joined #RubyOnRails
[21:03:16] Rodya_: has joined #RubyOnRails
[21:05:03] SteenJobs: has joined #RubyOnRails
[21:09:04] ascarter: has joined #RubyOnRails
[21:27:06] zakwilson: has joined #RubyOnRails
[21:33:30] zakwilson: I have inherited a project in which something in activeadmin tries to assign to a polymorphic has_many, resulting in 'raise NameError.new("uninitialized constant #{candidates.first}", candidates.first)' from within activerecord.
[21:33:53] zakwilson: Without reducing this to a minimal case, can someone suggest a thread to start pulling on?
[21:34:20] zakwilson: (yes, I've googled it)
[21:34:28] my123: has joined #RubyOnRails
[21:46:42] arup_r: zakwilson: that will not help to help you.. U need to tell more about the model and the actual error and the code from where it raised
[21:53:11] psylone: has joined #RubyOnRails
[21:56:24] Travis-42: in a rails integration test, when testing a GET request, is there a way to set the request body?
[21:56:47] zakwilson: arup_r: the code calling it is a default activeadmin update method. The model Post has_many :categorizations, as: :categorizable, dependent: :destroy; has_many :categories, through: :categorization
[21:56:56] zakwilson: And a Categorization belongs_to :categorizable, polymorphic: true
[21:59:29] arup_r: Travis-42: it is Ajax get or html ?
[21:59:52] arup_r: GET generally pass data via path or query params
[22:01:00] Travis-42: arup_r: I understand, but sometimes there are cases made for passing params via the body because for most servers, there is a maximum uri length. For instance Elasticsearch search functions via a GET method via the request body (but also accepts POST, if your client can't send a body with a GET request)
[22:01:58] zakwilson: I suspect I do need to build a minimal test case of this for anybody to be able to help.
[22:02:21] arup_r: Travis-42: ok
[22:02:34] arup_r: zakwilson: probably
[22:04:03] Rodya_: has joined #RubyOnRails
[22:04:21] arup_r: Travis-42: http://api.rubyonrails.org/classes/ActionController/TestCase/Behavior.html#method-i-get :)
[22:06:18] Travis-42: arup_r: hmm, I get "unknown keyword: body", maybe I configured something else wrong
[22:06:31] arup_r: your rails version?
[22:09:00] Olipro: has joined #RubyOnRails
[22:10:16] my123: has joined #RubyOnRails
[22:16:05] DropsOfSerenity: has joined #RubyOnRails
[22:17:07] brent__: has joined #RubyOnRails
[22:17:27] DropsOfSerenity: Hey, does anyone know of a way to automatically look up an assocation from params, using something other than id. E.g i want to do something like Model.create(name: 'blah', some_association_token: 'asdfasdf') instead of Model.create(some_association_id: 1)
[22:17:30] DropsOfSerenity: is this possible?
[22:18:36] DropsOfSerenity: Basically i'm making an api, and I want them to be able to specify an assocation using sometthing other than the id
[22:20:00] arBmind: has joined #RubyOnRails
[22:20:43] felltir: has joined #RubyOnRails
[22:23:24] psylone_: has joined #RubyOnRails
[22:25:16] workmad3_: has joined #RubyOnRails
[22:25:39] DropsOfSerenity: has joined #RubyOnRails
[22:30:11] zakwilson: DropsOfSerenity: you can say has_one Foo, foreign_key: "bar"
[22:34:05] DropsOfSerenity: zakwilson, I don't think this would work, how would this allow to persist associations using a non id?
[22:42:25] zakwilson: DropsOfSerenity: why wouldn't it work? As long as the foreign key is unique (and if it's specified as a foreign key in the schema, it IS unique assuming a sane database), it's an unambiguous way to reference a record.
[22:44:31] DropsOfSerenity: zakwilson, because I don't want to change the pk, I just want to be able to assign an association through a unique attribute through the api, i still want the association to be by id
[22:51:42] xx00__: has joined #RubyOnRails
[22:53:35] zakwilson: Then I'd just look up the object first then assign it.
[22:54:04] hobodave: has joined #RubyOnRails
[23:04:21] nesoi: has joined #RubyOnRails
[23:04:52] quazimodo: has joined #RubyOnRails
[23:05:05] Rodya_: has joined #RubyOnRails
[23:11:43] psylone: has joined #RubyOnRails
[23:13:23] iskm: has joined #RubyOnRails
[23:22:13] Uranio: has joined #RubyOnRails
[23:22:35] Uranio: has left #RubyOnRails: ()
[23:35:20] felltir: has joined #RubyOnRails