rodd

Activity Graph

Page 1 of 1

2018-11-08

[14:02:33] rodd: *.net *.split
[14:09:59] rodd: has joined #RubyOnRails

2018-10-07

[22:11:16] rodd: GOOD EVENING

2018-10-06

[03:47:17] rodd: anyone using traefik + docker + puma care to share your container labels in docker-compose?

2018-09-18

2018-09-16

[03:46:52] rodd: docker is a good solution for that

2018-09-06

[22:09:11] rodd: noob q: Is there a way to retrieve the current host / request.host outside a controller? i.e. in a service/custom mailer ?
[22:14:35] rodd: found a hacky way, will have to do for now
[22:15:07] rodd: a before_action in applicationController, then set settings on ActionMailer::Base.default_url_options based on request
[22:15:18] rodd: k maybe ill just pass from controller

2018-09-01

[15:08:13] rodd: Morning. I've created a many-to-many relationship using through as described here https://guides.rubyonrails.org/association_basics.html#choosing-between-has-many-through-and-has-and-belongs-to-many and rails/activerecord created each entity field representation in the join table in plural, "places_id" and "categories_id". Is that the normal behavior? inflector kicking in?
[15:09:11] rodd: I ask because when I try to create an association when creating a record using attributes, it gives: POST /places ... error: unknown attribute "place_id" for CategoriesPlaces
[20:46:18] rodd: regardind my question earlier today, I messed up in my migrations and used plural in t.belongs_to

2018-08-29

[02:42:51] rodd: *.net *.split
[03:00:17] rodd: has joined #RubyOnRails

2018-07-28

[14:13:12] rodd: has left #ruby: ("WeeChat 1.4")

2018-07-26

[19:40:56] rodd: has joined #ruby

2018-07-07

[19:50:05] rodd: Quit: WeeChat 1.4

2018-06-26

[14:50:13] rodd: is there a way to avoid "repetition" in a hash where key/value are the same? i.e { email: email, username: username } -> { email, username }

2018-06-15

[02:55:41] rodd: Quit: WeeChat 1.4
[02:59:54] rodd: has joined #ruby

2018-06-14

[15:45:32] rodd: has left #RubyOnRails: ("WeeChat 1.4")

2018-06-05

[22:07:50] rodd: is there a way to use an existing rspec matcher inside a custom matcher?
[22:09:58] rodd: nvm just found my answer here https://relishapp.com/rspec/rspec-expectations/docs/custom-matchers/define-a-matcher-supporting-block-expectations

2018-05-29

[02:47:20] rodd: *.net *.split
[02:47:48] rodd: has joined #RubyOnRails
[02:48:09] rodd: has joined #ruby

2018-05-02

[14:21:09] rodd: has joined #RubyOnRails
[14:21:35] rodd: has joined #ruby

2017-05-12

[13:13:46] rodd: has joined #ruby
[13:14:47] rodd: I'm trying to set the value of a variable to a return from a shell command in rake, i.e.: composer = execute('which composer'), what's the right way to do this?
[13:14:57] rodd: to the return value*
[13:15:16] rodd: ljarvis: nice, let me try
[13:25:06] rodd: has left #ruby: ()

2016-02-12

[20:03:30] rodd: has joined #ruby
[20:04:37] rodd: has left #ruby: ()