benlieb

Activity Graph

Page 1 of 27 | Next »

2019-07-07

[02:31:43] benlieb: Ping timeout: 245 seconds

2019-07-06

[06:54:53] benlieb: Quit: benlieb
[06:55:37] benlieb: has joined #RubyOnRails
[07:53:04] benlieb: Quit: benlieb
[08:59:29] benlieb: has joined #RubyOnRails
[09:04:06] benlieb: Client Quit
[16:19:40] benlieb: has joined #RubyOnRails
[16:56:05] benlieb: Quit: benlieb
[20:53:11] benlieb: has joined #RubyOnRails

2019-07-05

[17:55:01] benlieb: has joined #RubyOnRails
[21:03:19] benlieb: Quit: benlieb
[21:04:32] benlieb: has joined #RubyOnRails

2019-06-21

[18:03:11] benlieb: has joined #RubyOnRails
[18:05:46] benlieb: Client Quit
[18:06:02] benlieb: has joined #RubyOnRails
[19:47:30] benlieb: Quit: benlieb

2019-06-13

[23:15:53] benlieb: has joined #RubyOnRails
[23:17:46] benlieb: Client Quit

2019-05-31

[17:01:31] benlieb: has joined #RubyOnRails
[17:20:59] benlieb: Quit: benlieb
[17:34:15] benlieb: has joined #RubyOnRails
[22:28:47] benlieb: Quit: benlieb
[22:35:37] benlieb: has joined #RubyOnRails
[22:51:05] benlieb: Quit: benlieb
[23:03:52] benlieb: has joined #RubyOnRails
[23:20:19] benlieb: Quit: benlieb
[23:50:51] benlieb: has joined #RubyOnRails
[23:51:10] benlieb: Client Quit

2019-05-20

[21:57:36] benlieb: has joined #RubyOnRails
[21:57:58] benlieb: has left #RubyOnRails: ()

2019-05-16

[19:26:19] benlieb: has joined #RubyOnRails
[20:31:34] benlieb: Quit: benlieb
[20:44:54] benlieb: has joined #RubyOnRails
[21:00:17] benlieb: Quit: benlieb

2019-04-23

[01:13:12] benlieb: has joined #RubyOnRails
[02:04:31] benlieb: Quit: benlieb
[04:10:48] benlieb: has joined #RubyOnRails
[04:44:36] benlieb: Ping timeout: 246 seconds
[04:44:46] benlieb: has joined #RubyOnRails
[04:46:32] benlieb: Client Quit
[05:11:57] benlieb: has joined #RubyOnRails
[05:12:12] benlieb: Client Quit

2019-04-22

[05:18:04] benlieb: has joined #RubyOnRails
[05:38:36] benlieb: Quit: benlieb
[07:14:43] benlieb: has joined #RubyOnRails
[07:15:01] benlieb: Client Quit
[20:38:59] benlieb: has joined #RubyOnRails
[20:39:56] benlieb: Client Quit
[20:45:06] benlieb: has joined #RubyOnRails
[21:05:16] benlieb: Quit: benlieb
[21:06:16] benlieb: has joined #RubyOnRails
[22:24:29] benlieb: Quit: benlieb
[23:02:43] benlieb: has joined #RubyOnRails
[23:11:06] benlieb: Quit: benlieb
[23:32:46] benlieb: has joined #RubyOnRails
[23:38:25] benlieb: Quit: benlieb

2019-04-21

[01:01:54] benlieb: Quit: benlieb

2019-04-20

[22:40:11] benlieb: has joined #RubyOnRails

2019-03-17

[01:51:33] benlieb: has joined #RubyOnRails
[01:59:57] benlieb: Ping timeout: 246 seconds
[02:08:13] benlieb: has joined #RubyOnRails
[03:36:43] benlieb: Quit: benlieb
[04:41:03] benlieb: has joined #RubyOnRails
[04:55:15] benlieb: Quit: benlieb
[05:29:20] benlieb: has joined #RubyOnRails
[05:44:49] benlieb: Quit: benlieb
[05:50:47] benlieb: has joined #RubyOnRails
[05:50:52] benlieb: Client Quit

2019-03-12

[02:14:19] benlieb: has joined #RubyOnRails
[03:19:19] benlieb: Quit: benlieb
[03:19:55] benlieb: has joined #RubyOnRails
[03:20:03] benlieb: Client Quit
[03:27:38] benlieb: has joined #RubyOnRails
[03:58:35] benlieb: Quit: benlieb
[04:44:09] benlieb: has joined #RubyOnRails
[04:44:36] benlieb: Client Quit
[08:10:33] benlieb: has joined #RubyOnRails
[08:18:03] benlieb: Quit: benlieb

2019-02-28

[06:35:16] benlieb: Quit: benlieb
[06:47:54] benlieb: has joined #RubyOnRails
[06:48:03] benlieb: Client Quit
[15:48:02] benlieb: has joined #RubyOnRails
[17:53:46] benlieb: Quit: benlieb
[19:36:12] benlieb: has joined #RubyOnRails
[23:27:38] benlieb: How can I access the :layout option of the render call in a view?
[23:56:52] benlieb: Quit: benlieb

2019-02-27

[02:00:43] benlieb: Quit: benlieb
[04:05:14] benlieb: has joined #RubyOnRails
[07:39:41] benlieb: Quit: benlieb
[15:49:24] benlieb: has joined #RubyOnRails

2019-02-26

[23:13:34] benlieb: has joined #RubyOnRails
[23:27:32] benlieb: How do I access the render :layout option in a view?
[23:27:55] benlieb: controller.class.send(:_layout) will access the layout, but only if it's defined in the class with layout :layout, not if it's defined in the render cal
[23:28:03] benlieb: render layout: x || y

2019-02-18

[18:41:35] benlieb: has joined #RubyOnRails
[20:18:24] benlieb: Quit: benlieb
[20:38:01] benlieb: has joined #RubyOnRails
[20:42:50] benlieb: Client Quit
[20:58:10] benlieb: has joined #RubyOnRails
[21:12:24] benlieb: Quit: benlieb
[21:25:57] benlieb: has joined #RubyOnRails
[21:26:25] benlieb: Client Quit

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

[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