tedwing

Activity Graph

Page 1 of 1

2017-08-11

[13:44:18] tedwing: has joined #RubyOnRails
[17:53:32] tedwing: Ping timeout: 258 seconds

2017-06-13

[14:15:47] tedwing: has joined #RubyOnRails
[14:48:09] tedwing: Ping timeout: 240 seconds

2017-05-24

[08:38:27] tedwing: has joined #RubyOnRails
[09:05:46] tedwing: Generally controller class names are written in camel case, like `ProjectsSettingsController`. Is that the case for your controller?
[09:09:30] tedwing: `:projects_settings` or `:project_settings`?
[09:27:49] tedwing: The route should be created in the `resources` call you mentioned earlier as described in the Rails Guide. Try running `rails routes` in the console to check that the route was defined correctly. Might be useful to post some code if you're still having trouble.
[09:28:04] tedwing: Also, eventually it sounds like a `form_for` would be a good idea
[09:30:16] tedwing: try `bundle exec rails routes` or `bundle exec rake routes`
[09:32:42] tedwing: sure thing
[09:33:31] tedwing: It's a handy sanity check
[11:24:46] tedwing: Seems like you _have_ to run 2 separate processes for webpack. Webpacker recommends Foreman to simplify the steps (https://github.com/rails/webpacker#binstubs)
[11:31:47] tedwing: Ping timeout: 260 seconds

2017-05-18

[14:16:21] tedwing: has joined #RubyOnRails
[14:49:35] tedwing: Ping timeout: 240 seconds

2017-04-29

[18:42:07] tedwing: has joined #ruby
[20:09:29] tedwing: Quit: leaving

2017-04-26

[08:38:22] tedwing: has joined #RubyOnRails
[10:10:50] tedwing: Ping timeout: 260 seconds
[12:25:25] tedwing: has joined #RubyOnRails
[13:01:39] tedwing: Ping timeout: 240 seconds

2017-04-17

[09:56:56] tedwing: has joined #RubyOnRails
[22:12:22] tedwing: Quit: leaving

2017-04-14

[09:58:52] tedwing: has joined #RubyOnRails
[10:44:24] tedwing: Ping timeout: 260 seconds

2017-04-13

[13:39:38] tedwing: has joined #RubyOnRails
[15:24:27] tedwing: Ping timeout: 240 seconds

2017-04-06

[13:10:20] tedwing: has joined #RubyOnRails
[14:31:08] tedwing: Ping timeout: 240 seconds
[15:10:19] tedwing: has joined #RubyOnRails
[17:16:07] tedwing: Ping timeout: 240 seconds
[18:14:54] tedwing: has joined #RubyOnRails
[18:14:58] tedwing: Client Quit

2017-04-04

[09:05:42] tedwing: has joined #RubyOnRails
[12:12:58] tedwing: Ping timeout: 264 seconds
[13:30:13] tedwing: has joined #RubyOnRails
[16:36:07] tedwing: Ping timeout: 240 seconds
[17:43:30] tedwing: has joined #RubyOnRails
[17:47:58] tedwing: Ping timeout: 240 seconds
[21:26:17] tedwing: has joined #RubyOnRails
[21:37:37] tedwing: Quit: leaving

2017-04-03

[10:06:05] tedwing: has joined #RubyOnRails
[10:58:44] tedwing: Ping timeout: 260 seconds
[11:54:19] tedwing: has joined #RubyOnRails
[14:51:57] tedwing: Ping timeout: 240 seconds
[15:15:26] tedwing: has joined #RubyOnRails
[16:42:32] tedwing: Quit: leaving

2017-03-30

[09:52:33] tedwing: has joined #RubyOnRails
[10:51:28] tedwing: Ping timeout: 240 seconds
[13:15:33] tedwing: has joined #RubyOnRails
[13:18:39] tedwing: Client Quit

2017-03-27

[10:32:13] tedwing: has joined #RubyOnRails
[11:18:58] tedwing: Ping timeout: 256 seconds
[12:00:27] tedwing: has joined #RubyOnRails
[17:23:26] tedwing: Quit: leaving

2017-03-24

[10:42:47] tedwing: has joined #RubyOnRails
[11:12:41] tedwing: Ping timeout: 246 seconds
[11:52:08] tedwing: has joined #RubyOnRails
[12:08:21] tedwing: Ping timeout: 260 seconds
[13:22:59] tedwing: has joined #RubyOnRails
[15:09:25] tedwing: Ping timeout: 260 seconds
[15:31:54] tedwing: has joined #RubyOnRails
[17:23:39] tedwing: Ping timeout: 260 seconds

2017-03-23

[10:07:46] tedwing: has joined #RubyOnRails
[12:47:47] tedwing: Ping timeout: 264 seconds
[13:39:36] tedwing: has joined #RubyOnRails
[18:33:29] tedwing: Ping timeout: 268 seconds
[19:23:05] tedwing: has joined #RubyOnRails
[19:23:12] tedwing: Client Quit

2017-03-22

[10:51:20] tedwing: has joined #RubyOnRails
[11:59:09] tedwing: Ping timeout: 240 seconds
[12:57:57] tedwing: has joined #RubyOnRails
[13:49:28] tedwing: Ping timeout: 240 seconds
[14:17:11] tedwing: has joined #RubyOnRails
[17:49:09] tedwing: Ping timeout: 240 seconds
[18:14:00] tedwing: has joined #RubyOnRails
[18:14:30] tedwing: Client Quit

2017-03-21

[14:44:31] tedwing: has joined #RubyOnRails
[15:25:36] tedwing: I'm trying to set up a :through association where the through model is polymorphic. Multiple pairs of models can thus be associated through this one table. Here's what I have so far: https://www.pastery.net/pvvraj/ . I'm trying to set up an association to be able to use `shopping_list.items`, but I can't figure out how to tell it to get the item id from `"references"."left_id"` (instead of the
[15:25:42] tedwing: default `"references"."referenceable_id"`). What exactly am I missing?
[16:03:45] tedwing: epochwolf: really? that simplifies things. all in the ShoppingList model?
[16:07:07] tedwing: right, the database fields don't match the model names. So I should be using something like `has_many :items, as: :left`?
[16:15:20] tedwing: Ah that explains it. So `Reference` should have a `belongs_to :item, foreign_key: :left_id` ?
[16:22:57] tedwing: Normally I would, but in this case the association table needs to support multiple types of associations.
[16:24:27] tedwing: Hrm, still having trouble. When I run `ShoppingList.first.items`, it tries to run this SQL: `SELECT "items".* FROM "items" INNER JOIN "references" ON "items"."id" = "references"."referenceable_id" WHERE "references"."right_id" = $1 AND "references"."referenceable_type" = $2`
[16:27:01] tedwing: Oh, to the `belongs_to :referenceable, polymorphic: true`?
[16:27:14] tedwing: Yes, it seems that worked!
[16:28:21] tedwing: Thanks matthewd , epochwolf
[17:50:58] tedwing: Quit: leaving

2017-03-20

[13:57:54] tedwing: has joined #RubyOnRails
[15:19:51] tedwing: Ping timeout: 258 seconds
[15:37:16] tedwing: has joined #RubyOnRails
[17:12:48] tedwing: Quit: leaving

2017-03-16

[09:34:24] tedwing: has joined #RubyOnRails
[12:07:07] tedwing: Ping timeout: 256 seconds
[13:12:35] tedwing: has joined #RubyOnRails
[16:08:58] tedwing: Ping timeout: 240 seconds
[17:30:47] tedwing: has joined #RubyOnRails
[17:35:21] tedwing: Client Quit

2017-03-15

[09:44:37] tedwing: has joined #RubyOnRails
[17:26:49] tedwing: Ping timeout: 260 seconds
[18:32:07] tedwing: has joined #RubyOnRails
[18:32:22] tedwing: Client Quit

2017-03-14

[10:36:13] tedwing: has joined #RubyOnRails
[12:26:14] tedwing: Ping timeout: 258 seconds
[13:23:44] tedwing: has joined #RubyOnRails
[17:20:33] tedwing: Quit: leaving

2017-03-10

[09:59:44] tedwing: has joined #RubyOnRails
[13:09:57] tedwing: Ping timeout: 260 seconds
[13:49:03] tedwing: has joined #RubyOnRails
[14:51:43] tedwing: Is it possible to destroy a model that has no id attribute?
[14:56:14] tedwing: tbuehlmann: no id column with `id: false` set in the migration
[14:57:01] tedwing: also no primary key
[14:59:38] tedwing: yeah, pretty non-standard. I'm beginning to think it wasn't a good idea.
[15:01:35] tedwing: when I created the model I decided I didn't need it, but there's no real reason not to have it
[15:07:43] tedwing: epochwolf: thanks, I had a feeling that was the case. Going to add an id column to that table now.
[17:51:09] tedwing: Quit: leaving

2017-03-09

[09:33:03] tedwing: has joined #RubyOnRails
[12:19:25] tedwing: Ping timeout: 260 seconds
[13:13:51] tedwing: has joined #RubyOnRails
[17:46:11] tedwing: Ping timeout: 258 seconds

2017-03-08

[09:24:12] tedwing: has joined #RubyOnRails
[13:00:23] tedwing: Ping timeout: 264 seconds
[14:17:40] tedwing: has joined #RubyOnRails
[17:41:44] tedwing: Ping timeout: 246 seconds

2017-03-07

[10:40:14] tedwing: has joined #RubyOnRails
[12:26:07] tedwing: Ping timeout: 258 seconds
[13:22:22] tedwing: has joined #RubyOnRails
[17:16:31] tedwing: Ping timeout: 240 seconds
[18:13:28] tedwing: has joined #RubyOnRails
[18:31:42] tedwing: Quit: leaving

2016-06-08

[02:19:36] tedwing: has joined #RubyOnRails
[03:54:55] tedwing: Quit: leaving
[03:59:40] tedwing: has joined #RubyOnRails
[08:12:06] tedwing: Quit: leaving