« Back to channel list

#RubyOnRails - 01 December 2018

« Back 1 day Forward 1 day »
[00:00:13] westoque: has left #RubyOnRails: ()
[00:03:07] lexileo: has joined #RubyOnRails
[00:06:02] bambanx: has joined #RubyOnRails
[00:12:44] Puffball: has joined #RubyOnRails
[00:17:13] tdy: has joined #RubyOnRails
[00:28:05] ebsen: has joined #RubyOnRails
[00:48:00] Jervis_: has joined #RubyOnRails
[01:01:57] eckhardt_: has joined #RubyOnRails
[01:18:42] roshanavand: has joined #RubyOnRails
[01:37:45] lexileo: has joined #RubyOnRails
[01:43:23] Fridtjof: has joined #RubyOnRails
[01:47:54] cnsvc_: has joined #RubyOnRails
[01:56:02] fragamus: has joined #RubyOnRails
[02:05:56] ghormoon: has joined #RubyOnRails
[02:26:07] ghormoon: has joined #RubyOnRails
[02:35:18] jottr: has joined #RubyOnRails
[02:41:21] mangold: has joined #RubyOnRails
[03:03:58] Dimik: has joined #RubyOnRails
[03:15:58] orbyt_: has joined #RubyOnRails
[03:43:34] jaddison: has joined #RubyOnRails
[03:48:09] mangold: has joined #RubyOnRails
[03:50:22] cnsvc_: has joined #RubyOnRails
[03:51:05] borodin: has joined #RubyOnRails
[04:05:18] orbyt_: has joined #RubyOnRails
[04:07:33] roshanavand: has joined #RubyOnRails
[04:08:39] cnsvc_: has joined #RubyOnRails
[04:09:08] braincrash: has joined #RubyOnRails
[04:22:39] fragamus: has joined #RubyOnRails
[04:28:56] mangold: has joined #RubyOnRails
[04:35:03] tdy: has joined #RubyOnRails
[04:36:16] jottr: has joined #RubyOnRails
[04:40:56] cnsvc_: has joined #RubyOnRails
[04:41:52] Coop: has joined #RubyOnRails
[04:55:02] tjmcginnis: has joined #RubyOnRails
[05:21:42] uksio: has joined #RubyOnRails
[05:21:45] westoque: has joined #RubyOnRails
[05:41:15] Saukk: has joined #RubyOnRails
[06:02:59] za1b1tsu: has joined #RubyOnRails
[06:10:23] mangold: has joined #RubyOnRails
[06:22:46] orbyt_: has joined #RubyOnRails
[06:26:09] orbyt_: has joined #RubyOnRails
[06:28:29] buyfn: has joined #RubyOnRails
[06:34:51] mangold: has joined #RubyOnRails
[06:37:08] jottr: has joined #RubyOnRails
[06:46:30] gambl0r3: has joined #RubyOnRails
[06:49:58] kapil____: has joined #RubyOnRails
[06:55:59] roshanavand: has joined #RubyOnRails
[07:07:34] za1b1tsu: has joined #RubyOnRails
[07:19:39] reber: has joined #RubyOnRails
[07:48:10] buyfn: has joined #RubyOnRails
[08:05:09] lankanmon: has joined #RubyOnRails
[08:12:41] cnsvc_: has joined #RubyOnRails
[08:21:40] danguita: has joined #RubyOnRails
[08:37:51] jottr: has joined #RubyOnRails
[08:50:47] lxsameer: has joined #RubyOnRails
[09:14:51] cnsvc_: has joined #RubyOnRails
[09:38:29] srinidhi: has joined #RubyOnRails
[09:45:17] conta: has joined #RubyOnRails
[09:48:36] buyfn: has joined #RubyOnRails
[09:51:21] za1b1tsu: has joined #RubyOnRails
[10:11:04] jottr: has joined #RubyOnRails
[10:51:02] gavit: has joined #RubyOnRails
[11:06:53] mangold: has joined #RubyOnRails
[11:07:36] dionysus69: how do I validate a model inside a worker? this particular validation works only from the sidekiq node
[11:07:49] dionysus69: by node I mean physical server
[11:12:22] cnsvc_: has joined #RubyOnRails
[11:26:54] defsdoor: has joined #RubyOnRails
[11:28:20] tbuehlmann: dionysus69: doesn't sound like a model validation to me then
[11:34:52] hahuang65: has joined #RubyOnRails
[11:47:45] mangold: has joined #RubyOnRails
[12:03:43] gavit: does schema.rb get recreated if someone changes an old migration instead of adding a new migration?
[12:04:12] gavit: with a db:reset
[12:07:45] tbuehlmann: gavit: have you tried it?
[12:07:55] gavit: it doesnt seem to change it sadly
[12:08:36] lankanmon: has joined #RubyOnRails
[12:10:10] tbuehlmann: I'd think so, as db:reset does db:drop and db:setup, where db:setup does db:create, db:schema:load and db:seed
[12:10:26] tbuehlmann: you might be after db:migrate:reset
[12:10:33] gavit: tbuehlmann: rake db:drop && rake db:create && rake db:migrate is what I was looking for
[12:10:33] tbuehlmann: which runs db:drop, db:create and db:migrate
[12:16:50] gavit: tbuehlmann: db:migrate:reset seems easier, thanks
[12:17:13] cnsvc_: has joined #RubyOnRails
[12:18:16] dionysus69: tbuehlmann: I need to validate a field before AASM state is changed :S there's lack of documentation online for this specific scenario
[12:18:44] dionysus69: I may just use a regular method to validate this then
[12:27:52] gavit: https://stackoverflow.com/questions/7164865/how-to-populate-fields-in-a-has-many-through-join-table <- is :physician => demento an old syntax? I get a syntax error on rails 5 (unexpected =>)
[12:30:03] tbuehlmann: gavit: what exactly do you have?
[12:32:39] gavit: tbuehlmann: https://dpaste.de/dpc5
[12:33:28] tbuehlmann: you probably mean Employment.new(:person => Person.find_by(first_name: "e")) (or Employment.new(person: Person.find_by(first_name: "e")))
[12:36:59] gavit: tbuehlmann: my ide likes your suggestion, rake db:seed however tells me syntax error, unexpected ( arg, expecting end-of-input ...employments << Employment.new ( :person => Person.find_by(fi.
[12:37:22] tbuehlmann: remove those spaces
[12:41:05] gavit: I never knew ruby was white space sensitive
[12:42:07] roshanavand: has joined #RubyOnRails
[12:49:27] mangold: has joined #RubyOnRails
[12:50:20] Jervis_: has joined #RubyOnRails
[13:10:30] NoGodDamnIdea: has joined #RubyOnRails
[13:30:24] mangold: has joined #RubyOnRails
[13:37:31] apparition47: has joined #RubyOnRails
[13:57:37] cnsvc_: has joined #RubyOnRails
[14:40:19] kapil____: has joined #RubyOnRails
[14:48:37] ghormoon: has joined #RubyOnRails
[14:50:58] reber: has joined #RubyOnRails
[14:59:03] hahuang65: has joined #RubyOnRails
[15:03:27] Exuma: has joined #RubyOnRails
[15:08:40] mangold: has joined #RubyOnRails
[15:26:03] nixr00t: has joined #RubyOnRails
[15:50:59] gavit: has joined #RubyOnRails
[16:01:13] cnsvc_: has joined #RubyOnRails
[16:02:52] Dimik: has joined #RubyOnRails
[16:03:11] gavit: has joined #RubyOnRails
[16:23:49] Exuma: has joined #RubyOnRails
[16:33:53] beingjohnm: maybe a random question but has anybody setup testing that looks at each view and checks if there are any I18n translations that don't exist?
[16:59:10] mangold: has joined #RubyOnRails
[17:07:50] conta: has joined #RubyOnRails
[17:08:29] lxsameer: has joined #RubyOnRails
[17:27:32] borodin: has joined #RubyOnRails
[17:31:57] gambl0r3: has joined #RubyOnRails
[17:54:38] cnsvc_: has joined #RubyOnRails
[17:55:55] chouhoulis: has joined #RubyOnRails
[17:59:16] desperek: has joined #RubyOnRails
[18:09:07] lexileo: has joined #RubyOnRails
[18:17:26] reber: has joined #RubyOnRails
[18:23:25] crankharder: has joined #RubyOnRails
[18:28:09] orbyt_: has joined #RubyOnRails
[18:33:52] cnsvc_: has joined #RubyOnRails
[18:36:50] gavit: has joined #RubyOnRails
[18:56:58] gavit: I have a membership which has a start_date and an end_date. I want to add a scope where I see who was a member in the period between begin_period and end_period. I thought the scope would be something like: scope :member_during, lambda {|begin_period, end_period| {:conditions => ['? >= start_date AND end_date >= ?', end_period.end_of_day, begin_period.beginning_of_day]}}
[18:57:29] gavit: this however prints everthing between the {}
[18:58:27] za1b1tsu: has joined #RubyOnRails
[19:05:40] crankharder: has joined #RubyOnRails
[19:20:43] Xiti: has joined #RubyOnRails
[19:27:23] gavit: got the syntax down
[19:54:17] kapil____: has joined #RubyOnRails
[19:58:14] gambl0r3: has joined #RubyOnRails
[20:00:07] kapil____: has joined #RubyOnRails
[20:01:59] kapil____: has joined #RubyOnRails
[20:06:02] cnsvc_: has joined #RubyOnRails
[20:07:42] planigan: has joined #RubyOnRails
[20:13:09] crankharder: has joined #RubyOnRails
[20:29:59] crankharder: has joined #RubyOnRails
[20:30:07] tdy: has joined #RubyOnRails
[20:30:17] Aherin: has joined #RubyOnRails
[20:31:53] uksio: has joined #RubyOnRails
[20:38:17] NivenHuH: has joined #RubyOnRails
[20:45:20] cnsvc_: has joined #RubyOnRails
[20:50:25] crankharder: has joined #RubyOnRails
[21:22:35] gambl0r3: has joined #RubyOnRails
[21:33:22] jetchisel: has joined #RubyOnRails
[21:34:09] gavit: quiet in here
[21:41:54] alan_w: has joined #RubyOnRails
[21:41:57] ss_much: has joined #RubyOnRails
[21:48:30] cnsvc_: has joined #RubyOnRails
[22:05:47] chalaca: has joined #RubyOnRails
[22:07:33] roshanavand: has joined #RubyOnRails
[22:20:51] kapil____: has joined #RubyOnRails
[22:28:43] chalaca: has joined #RubyOnRails
[22:36:14] fragamus: has joined #RubyOnRails
[22:53:55] cnsvc_: has joined #RubyOnRails
[23:11:45] Xiti`: has joined #RubyOnRails
[23:19:52] chalaca: has left #RubyOnRails: ("WeeChat 2.2")
[23:23:15] Xiti: has joined #RubyOnRails
[23:50:13] mlt-: has joined #RubyOnRails