benlieb

Activity Graph

Page 1 of 26 | Next »

2019-01-15

[00:04:35] benlieb: Quit: benlieb
[03:55:45] benlieb: has joined #RubyOnRails
[03:56:06] benlieb: Client Quit

2019-01-14

[00:59:43] benlieb: Quit: benlieb
[01:16:26] benlieb: has joined #RubyOnRails
[01:41:01] benlieb: Quit: benlieb
[03:12:20] benlieb: has joined #RubyOnRails
[04:37:28] benlieb: Quit: benlieb
[05:52:40] benlieb: has joined #RubyOnRails
[06:00:14] benlieb: Quit: benlieb
[06:18:22] benlieb: has joined #RubyOnRails
[07:44:03] benlieb: Quit: benlieb
[08:02:42] benlieb: has joined #RubyOnRails
[08:25:29] benlieb: Quit: benlieb
[09:17:26] benlieb: has joined #RubyOnRails
[09:54:02] benlieb: Quit: benlieb
[18:17:05] benlieb: has joined #RubyOnRails
[23:10:20] benlieb: Quit: benlieb
[23:20:06] benlieb: has joined #RubyOnRails
[23:32:33] benlieb: Ping timeout: 245 seconds
[23:33:51] benlieb: has joined #RubyOnRails

2019-01-13

[00:41:58] benlieb: Quit: benlieb
[19:38:15] benlieb: has joined #RubyOnRails
[20:12:13] benlieb: Quit: benlieb
[20:34:09] benlieb: has joined #RubyOnRails
[20:51:57] benlieb: Quit: benlieb
[21:07:31] benlieb: has joined #RubyOnRails
[22:14:48] benlieb: Ping timeout: 246 seconds
[22:19:09] benlieb: has joined #RubyOnRails

2019-01-12

[00:46:13] benlieb: Quit: benlieb
[00:48:22] benlieb: has joined #RubyOnRails
[01:01:04] benlieb: Quit: benlieb
[01:35:48] benlieb: has joined #RubyOnRails
[02:36:21] benlieb: Quit: benlieb
[19:57:51] benlieb: has joined #RubyOnRails
[20:58:25] benlieb: Quit: benlieb
[21:41:28] benlieb: has joined #RubyOnRails
[22:38:14] benlieb: Quit: benlieb
[22:42:32] benlieb: has joined #RubyOnRails

2019-01-11

[07:05:29] benlieb: Quit: benlieb
[07:53:51] benlieb: has joined #RubyOnRails
[09:22:52] benlieb: Quit: benlieb
[17:11:54] benlieb: has joined #RubyOnRails
[18:15:21] benlieb: I’m trying to add an order to an association: has_many :answers, -> {order :question_id}, as: :entity
[18:15:43] benlieb: when I add the -> {order :question_id} I get the error:
[18:16:01] benlieb: uninitialized constant Answer::Entity
[18:16:28] benlieb: the association works fine for posting nested attributes without the order..
[18:17:22] benlieb: maybe I’m not getting the position right of where to put the {order …} ?
[20:04:03] benlieb: Maybe I’m officially old. I remember when this channel was the most active on IRC around 8 years ago
[20:05:29] benlieb: Or it felt that way. Of course in those days there also seemed to be an inordinate number of arrogant jerks sharing their opinions.
[20:06:02] benlieb: Never thought I’d miss them, but the silence is actually scarier
[20:16:30] benlieb: tbuehlmann: I found a workaround for the issue I posted above. My most recent comments were just existential angst :)
[20:25:57] benlieb: ah, good call, I’ll give it a try

2019-01-10

[01:22:57] benlieb: Quit: benlieb
[01:23:23] benlieb: has joined #RubyOnRails
[01:59:00] benlieb: Quit: benlieb
[02:20:54] benlieb: has joined #RubyOnRails
[02:29:27] benlieb: Quit: benlieb
[02:33:33] benlieb: has joined #RubyOnRails
[03:26:08] benlieb: Quit: benlieb
[06:52:41] benlieb: has joined #RubyOnRails
[09:34:19] benlieb: Quit: benlieb
[19:14:56] benlieb: has joined #RubyOnRails

2019-01-09

[00:33:04] benlieb: has joined #RubyOnRails
[00:37:58] benlieb: Quit: benlieb
[05:32:50] benlieb: has joined #RubyOnRails
[08:47:48] benlieb: Quit: benlieb
[09:11:48] benlieb: has joined #RubyOnRails
[10:16:26] benlieb: Quit: benlieb
[18:11:46] benlieb: has joined #RubyOnRails
[18:14:53] benlieb: Client Quit
[20:06:31] benlieb: has joined #RubyOnRails
[22:20:59] benlieb: Quit: benlieb
[22:50:49] benlieb: has joined #RubyOnRails

2019-01-08

[22:34:59] benlieb: has joined #RubyOnRails
[22:38:12] benlieb: is it not possible to use a has_one :through association name in a where clause? Seems not… but i thought it should..
[22:38:23] benlieb: I wanted to do this Departure.where(area_manager: Employee.find(7))
[22:38:47] benlieb: SELECT 1 AS one FROM `departure` WHERE `departure`.`id` IS NULL LIMIT 1
[22:38:47] benlieb: which seems to igore it completely
[22:38:57] benlieb: I have to do this: Departure.joins(:itinerary).where('itinerary.area_manager_id = 7')
[22:39:12] benlieb: Departure:
[22:39:13] benlieb: belongs_to :itinerary
[22:39:14] benlieb: has_one :area_manager, through: :itinerary
[23:34:35] benlieb: Quit: benlieb

2019-01-06

[00:47:01] benlieb: has joined #RubyOnRails
[00:51:42] benlieb: Ping timeout: 250 seconds
[00:54:03] benlieb: has joined #RubyOnRails
[02:17:42] benlieb: Quit: benlieb
[02:19:17] benlieb: has joined #RubyOnRails
[02:22:34] benlieb: Client Quit
[02:29:42] benlieb: has joined #RubyOnRails
[02:38:24] benlieb: Quit: benlieb
[02:39:54] benlieb: has joined #RubyOnRails
[03:12:34] benlieb: Quit: benlieb
[18:51:59] benlieb: has joined #RubyOnRails
[18:56:07] benlieb: Ping timeout: 240 seconds

2019-01-05

[00:22:05] benlieb: Quit: benlieb
[00:33:43] benlieb: has joined #RubyOnRails
[00:35:25] benlieb: Client Quit
[00:36:15] benlieb: has joined #RubyOnRails
[00:38:54] benlieb: Client Quit
[01:07:04] benlieb: has joined #RubyOnRails
[01:07:23] benlieb: Client Quit
[01:23:36] benlieb: has joined #RubyOnRails
[01:23:53] benlieb: Client Quit
[02:20:45] benlieb: has joined #RubyOnRails
[02:51:51] benlieb: Ping timeout: 258 seconds
[07:48:56] benlieb: has joined #RubyOnRails
[07:55:10] benlieb: Quit: benlieb
[19:55:56] benlieb: has joined #RubyOnRails
[20:30:12] benlieb: Quit: benlieb

2019-01-04

[17:55:12] benlieb: has joined #RubyOnRails
[22:49:28] benlieb: I have the unfortunate task of making some legacy data work with a rails ap. Some of the id fields are strings
[22:49:29] benlieb: :client_id => "30430"
[22:49:52] benlieb: My associations work in mysql: belongs_to :client
[22:50:03] benlieb: but in postgres (which we’d prefer to use) it chokes
[22:50:07] benlieb: is there a way around this?
[22:50:20] benlieb: PG::UndefinedFunction: ERROR: operator does not exist: bigint = character varying LINE 1: ...ients" INNER JOIN "reservation" ON "clients"."id" = "reserva...
[22:50:34] benlieb: No operator matches the given name and argument type(s). You might need to add explicit type casts.
[23:31:40] benlieb: Cany anyone help me with this legacy foreign_key string issue? https://stackoverflow.com/questions/54047261/rails-association-for-legacy-data-when-foreign-key-is-string
[23:32:42] benlieb: drale2k_: I would say that the asset pipeline and webpacker were built for different purposes, but some of their functionality overlaps
[23:36:37] benlieb: havenwood: they are in a legacy db that the new app I’m writing is reading from. In the clients table the id is INT, but the associate key for some ungodly reason is string
[23:37:55] benlieb: If I could somehow cast the client_id to int, that would work, but I think the pg gem is checking the property time directly
[23:38:10] benlieb: I tried overwriting the getter and casting to int, but that didn’t do anything
[23:39:55] benlieb: it’s just a belongs_to :client
[23:40:05] benlieb: but client_id => '1234'
[23:40:48] benlieb: well I don’ t need foreign_key: since the naming convention is actually right
[23:41:02] benlieb: the original db is not from a rails app
[23:41:11] benlieb: It’s a 40 year old company
[23:41:18] benlieb: havenwood: does that work?
[23:41:25] benlieb: I looked at the reference, and didn’t see that
[23:42:13] benlieb: the client_id doesn’t increment it’s just an association, but clients.id increments and is INT
[23:43:08] benlieb: Unknown key: :type.
[23:43:17] benlieb: didn’t think that existed...
[23:43:25] benlieb: Valid keys are: :class_name, :anonymous_class, :foreign_key, :validate, :autosave, :foreign_type, :dependent, :primary_key, :inverse_of, :required, :polymorphic, :touch, :counter_cache, :optional, :default
[23:46:12] benlieb: so no way to manually write the association sql?

2018-07-10

[03:00:38] benlieb: has joined #RubyOnRails
[03:02:18] benlieb: Client Quit
[16:50:26] benlieb: has joined #RubyOnRails
[17:22:03] benlieb: Quit: benlieb
[17:26:14] benlieb: has joined #RubyOnRails
[19:17:53] benlieb: Quit: benlieb

2018-07-09

[00:51:54] benlieb: has joined #RubyOnRails
[00:52:52] benlieb: Client Quit
[04:01:19] benlieb: has joined #RubyOnRails
[04:29:21] benlieb: Quit: benlieb
[17:09:17] benlieb: has joined #RubyOnRails
[18:44:46] benlieb: Quit: benlieb
[20:13:06] benlieb: has joined #RubyOnRails
[20:42:21] benlieb: Quit: benlieb

2018-07-08

[00:08:31] benlieb: Quit: benlieb
[00:29:52] benlieb: has joined #RubyOnRails
[00:30:11] benlieb: Client Quit

2018-07-07

[00:07:42] benlieb: has joined #RubyOnRails
[00:12:33] benlieb: Client Quit
[00:36:55] benlieb: has joined #RubyOnRails
[00:53:15] benlieb: Quit: benlieb
[00:58:37] benlieb: has joined #RubyOnRails
[01:01:13] benlieb: Client Quit
[01:03:07] benlieb: has joined #RubyOnRails
[01:03:13] benlieb: Client Quit
[01:03:58] benlieb: has joined #RubyOnRails
[01:04:08] benlieb: Client Quit
[01:24:57] benlieb: has joined #RubyOnRails
[01:25:06] benlieb: Client Quit
[18:12:36] benlieb: has joined #RubyOnRails
[18:43:25] benlieb: Quit: benlieb
[18:45:09] benlieb: has joined #RubyOnRails
[18:51:06] benlieb: Quit: benlieb
[18:52:36] benlieb: has joined #RubyOnRails
[19:25:22] benlieb: Quit: benlieb
[19:57:24] benlieb: has joined #RubyOnRails
[20:08:51] benlieb: Quit: benlieb
[20:11:59] benlieb: has joined #RubyOnRails
[20:15:59] benlieb: Client Quit
[21:36:48] benlieb: has joined #RubyOnRails
[22:01:54] benlieb: Quit: benlieb
[23:27:52] benlieb: has joined #RubyOnRails

2018-07-06

[00:43:41] benlieb: Quit: benlieb
[16:03:02] benlieb: has joined #RubyOnRails
[16:32:43] benlieb: Quit: benlieb
[17:11:05] benlieb: has joined #RubyOnRails
[17:11:21] benlieb: Client Quit
[18:12:57] benlieb: has joined #RubyOnRails
[18:19:03] benlieb: Quit: benlieb
[18:23:17] benlieb: has joined #RubyOnRails
[18:25:33] benlieb: Client Quit
[22:24:44] benlieb: has joined #RubyOnRails
[22:30:52] benlieb: Quit: benlieb
[23:11:53] benlieb: has joined #RubyOnRails
[23:14:25] benlieb: Client Quit

2018-07-05

[15:11:42] benlieb: has joined #RubyOnRails
[15:23:02] benlieb: Quit: benlieb
[15:43:00] benlieb: has joined #RubyOnRails
[15:56:45] benlieb: Quit: benlieb
[16:18:10] benlieb: has joined #RubyOnRails
[16:41:43] benlieb: Quit: benlieb
[22:54:52] benlieb: has joined #RubyOnRails

2018-07-04

[00:47:58] benlieb: has joined #RubyOnRails
[01:16:51] benlieb: Quit: benlieb
[05:19:55] benlieb: has joined #RubyOnRails
[06:20:58] benlieb: Quit: benlieb
[06:25:50] benlieb: has joined #RubyOnRails
[07:26:31] benlieb: Quit: benlieb
[07:33:14] benlieb: has joined #RubyOnRails
[07:33:51] benlieb: Client Quit
[17:57:22] benlieb: has joined #RubyOnRails
[18:35:27] benlieb: Quit: benlieb
[20:16:32] benlieb: has joined #RubyOnRails
[20:22:37] benlieb: Quit: benlieb
[20:53:40] benlieb: has joined #RubyOnRails
[20:57:40] benlieb: Client Quit
[20:58:15] benlieb: has joined #RubyOnRails
[21:03:34] benlieb: Quit: benlieb
[21:05:20] benlieb: has joined #RubyOnRails
[21:12:28] benlieb: Quit: benlieb
[21:18:02] benlieb: has joined #RubyOnRails
[21:24:31] benlieb: Quit: benlieb
[21:42:10] benlieb: has joined #RubyOnRails
[22:12:22] benlieb: Quit: benlieb
[22:13:14] benlieb: has joined #RubyOnRails
[22:20:37] benlieb: Quit: benlieb
[23:14:35] benlieb: has joined #RubyOnRails
[23:15:39] benlieb: Client Quit

2018-07-03

[05:04:21] benlieb: Quit: benlieb
[08:06:33] benlieb: Client Quit
[08:06:33] benlieb: has joined #RubyOnRails
[16:22:49] benlieb: has joined #RubyOnRails
[16:27:59] benlieb: Quit: benlieb
[16:35:03] benlieb: has joined #RubyOnRails
[16:36:12] benlieb: Client Quit
[16:36:44] benlieb: has joined #RubyOnRails
[17:40:27] benlieb: Quit: benlieb
[17:44:26] benlieb: has joined #RubyOnRails
[19:21:38] benlieb: Quit: benlieb
[19:27:54] benlieb: has joined #RubyOnRails
[19:39:01] benlieb: Quit: benlieb
[19:40:49] benlieb: has joined #RubyOnRails
[19:43:13] benlieb: Client Quit
[19:49:37] benlieb: has joined #RubyOnRails
[20:13:03] benlieb: Quit: benlieb
[20:32:41] benlieb: has joined #RubyOnRails
[20:41:55] benlieb: Quit: benlieb
[20:54:12] benlieb: has joined #RubyOnRails
[20:57:02] benlieb: Client Quit
[21:10:48] benlieb: has joined #RubyOnRails
[21:13:32] benlieb: Client Quit
[21:28:52] benlieb: has joined #RubyOnRails
[23:17:33] benlieb: Quit: benlieb