[spoiler]

Activity Graph

Page 1 of 14 | Next »

2019-06-29

[02:03:52] [spoiler]: Quit: Cheers!

2019-05-31

[12:22:58] [spoiler]: Ping timeout: 257 seconds
[12:26:22] [spoiler]: has joined #ruby-offtopic
[12:26:22] [spoiler]: has joined #ruby

2019-04-22

[21:59:05] [spoiler]: Ping timeout: 246 seconds
[22:00:39] [spoiler]: has joined #ruby-offtopic
[22:00:39] [spoiler]: has joined #ruby

2019-04-13

[16:50:08] [spoiler]: *.net *.split

2019-02-19

[04:15:59] [spoiler]: Ping timeout: 268 seconds
[04:18:05] [spoiler]: has joined #ruby-offtopic
[04:18:05] [spoiler]: has joined #ruby

2019-01-24

[10:42:34] [spoiler]: Ping timeout: 246 seconds
[10:44:22] [spoiler]: has joined #ruby-offtopic
[10:44:22] [spoiler]: has joined #ruby

2019-01-17

[10:28:52] [spoiler]: Ping timeout: 264 seconds
[10:31:11] [spoiler]: has joined #ruby-offtopic
[10:31:11] [spoiler]: has joined #ruby

2018-11-26

[09:25:57] [spoiler]: has joined #ruby-offtopic
[09:25:57] [spoiler]: has joined #ruby

2018-10-05

[14:11:45] [spoiler]: has left #RubyOnRails: ("WeeChat 2.2")

2018-10-04

[14:32:15] [spoiler]: Ping timeout: 252 seconds
[14:34:31] [spoiler]: has joined #ruby-offtopic
[14:34:31] [spoiler]: has joined #ruby
[14:34:31] [spoiler]: has joined #RubyOnRails

2018-10-03

[12:19:53] [spoiler]: has joined #ruby
[12:19:53] [spoiler]: has joined #RubyOnRails
[12:19:54] [spoiler]: has joined #ruby-offtopic
[12:21:21] [spoiler]: Client Quit
[12:21:32] [spoiler]: has joined #ruby-offtopic
[12:21:32] [spoiler]: has joined #ruby
[12:21:32] [spoiler]: has joined #RubyOnRails
[16:06:44] [spoiler]: Quit: Cheers!
[16:06:56] [spoiler]: has joined #RubyOnRails
[16:06:57] [spoiler]: has joined #ruby-offtopic
[16:06:57] [spoiler]: has joined #ruby
[16:07:30] [spoiler]: Client Quit
[16:07:42] [spoiler]: has joined #ruby-offtopic
[16:07:42] [spoiler]: has joined #ruby
[16:07:42] [spoiler]: has joined #RubyOnRails

2018-01-28

[18:33:10] [spoiler]: has joined #ruby-offtopic
[18:33:10] [spoiler]: has joined #ruby-community
[18:33:10] [spoiler]: has joined #ruby
[18:33:10] [spoiler]: has joined #RubyOnRails

2018-01-15

[04:34:18] [spoiler]: Quit: Cheers!

2017-12-01

[02:28:20] [spoiler]: has joined #ruby-community
[02:28:27] [spoiler]: has joined #ruby-offtopic
[02:28:47] [spoiler]: has joined #ruby
[14:57:48] [spoiler]: Ping timeout: 240 seconds
[15:01:51] [spoiler]: has joined #ruby-offtopic
[15:01:51] [spoiler]: has joined #ruby-community
[15:01:51] [spoiler]: has joined #ruby
[15:01:51] [spoiler]: has joined #RubyOnRails
[20:07:35] [spoiler]: Ping timeout: 240 seconds
[20:10:11] [spoiler]: has joined #ruby
[20:10:11] [spoiler]: has joined #RubyOnRails
[20:10:12] [spoiler]: has joined #ruby-offtopic
[20:10:12] [spoiler]: has joined #ruby-community

2017-11-23

[11:07:07] [spoiler]: Quit: Cheers!
[11:07:29] [spoiler]: has joined #ruby-community
[11:07:29] [spoiler]: has joined #ruby
[11:07:29] [spoiler]: has joined #RubyOnRails
[11:07:30] [spoiler]: has joined #ruby-offtopic
[11:10:34] [spoiler]: Client Quit
[11:10:45] [spoiler]: has joined #ruby-offtopic
[11:10:45] [spoiler]: has joined #ruby-community
[11:10:45] [spoiler]: has joined #ruby
[11:10:45] [spoiler]: has joined #RubyOnRails
[11:11:41] [spoiler]: Client Quit
[11:11:53] [spoiler]: has joined #ruby-offtopic
[11:11:53] [spoiler]: has joined #ruby-community
[11:11:53] [spoiler]: has joined #ruby
[11:11:53] [spoiler]: has joined #RubyOnRails

2017-11-09

[03:47:01] [spoiler]: Ping timeout: 240 seconds
[03:47:48] [spoiler]: has joined #ruby-offtopic
[03:47:48] [spoiler]: has joined #ruby-community
[03:47:48] [spoiler]: has joined #ruby
[03:47:48] [spoiler]: has joined #RubyOnRails
[03:55:37] [spoiler]: Ping timeout: 276 seconds
[03:57:19] [spoiler]: has joined #ruby-offtopic
[03:57:19] [spoiler]: has joined #ruby-community
[03:57:19] [spoiler]: has joined #ruby
[03:57:19] [spoiler]: has joined #RubyOnRails
[06:22:53] [spoiler]: *.net *.split
[06:23:45] [spoiler]: has joined #RubyOnRails
[06:23:46] [spoiler]: has joined #ruby-offtopic
[06:23:46] [spoiler]: has joined #ruby-community
[06:23:46] [spoiler]: has joined #ruby

2017-09-19

[06:05:42] [spoiler]: has joined #ruby-offtopic
[06:05:42] [spoiler]: has joined #ruby-community
[06:05:42] [spoiler]: has joined #ruby
[06:05:42] [spoiler]: has joined #RubyOnRails

2017-09-11

[20:24:09] [spoiler]: *.net *.split

2017-08-11

[02:21:34] [spoiler]: Ping timeout: 240 seconds
[02:26:05] [spoiler]: has joined #ruby-offtopic
[02:26:05] [spoiler]: has joined #ruby-community
[02:26:05] [spoiler]: has joined #ruby
[02:26:05] [spoiler]: has joined #RubyOnRails

2017-08-03

[00:55:22] [spoiler]: Ping timeout: 276 seconds
[00:56:44] [spoiler]: has joined #ruby-offtopic
[00:56:44] [spoiler]: has joined #ruby-community
[00:56:44] [spoiler]: has joined #ruby
[00:56:44] [spoiler]: has joined #RubyOnRails

2017-07-30

[16:55:18] [spoiler]: Quit: Cheers!
[16:55:36] [spoiler]: has joined #ruby-offtopic
[16:55:36] [spoiler]: has joined #ruby-community
[16:55:36] [spoiler]: has joined #ruby
[16:55:36] [spoiler]: has joined #RubyOnRails
[16:57:51] [spoiler]: Client Quit
[17:08:56] [spoiler]: has joined #ruby-offtopic
[17:08:56] [spoiler]: has joined #ruby-community
[17:08:56] [spoiler]: has joined #ruby
[17:08:56] [spoiler]: has joined #RubyOnRails

2017-07-06

[05:14:54] [spoiler]: has joined #RubyOnRails
[05:14:55] [spoiler]: has joined #ruby-offtopic
[05:14:55] [spoiler]: has joined #ruby-community
[05:14:55] [spoiler]: has joined #ruby

2017-06-19

[18:19:42] [spoiler]: *.net *.split

2017-06-13

[08:02:13] [spoiler]: has joined #ruby-offtopic
[08:02:13] [spoiler]: has joined #ruby-community
[08:02:13] [spoiler]: has joined #ruby
[08:02:13] [spoiler]: has joined #RubyOnRails

2017-05-03

[22:22:53] [spoiler]: Ping timeout: 240 seconds
[22:26:27] [spoiler]: has joined #ruby-offtopic
[22:26:27] [spoiler]: has joined #ruby-community
[22:26:27] [spoiler]: has joined #ruby
[22:26:27] [spoiler]: has joined #RubyOnRails

2017-04-27

[22:13:26] [spoiler]: Ping timeout: 240 seconds
[22:17:08] [spoiler]: has joined #ruby-offtopic
[22:17:08] [spoiler]: has joined #ruby-community
[22:17:08] [spoiler]: has joined #ruby
[22:17:08] [spoiler]: has joined #RubyOnRails

2016-07-31

[09:33:27] [spoiler]: Hello! I am having an issue with `:inverse_of`—I'm probably doing something wrong, but it's not obvious to me what that is. :(
[09:33:33] [spoiler]: Here's more details: https://gist.github.com/omninonsense/d5d2a09f3eea374b6e0ad0500187916c
[09:37:01] [spoiler]: Oh, I think I was having a similar issue like bustiz did
[09:37:20] [spoiler]: no, nvm I don't think I did
[09:47:11] [spoiler]: noob_on_rails: `f.submit` should suffice
[09:55:35] [spoiler]: tbuehlmann: he does, though: `resources :classifieds`, unless you meant something else
[09:56:00] [spoiler]: Oh right, but there's `post 'update' => 'classifieds#update'` just above it, too
[09:56:15] [spoiler]: I think that's the little shit-stirrer here
[09:56:48] [spoiler]: also there's no need for the `get 'show/:id' => 'classifieds#show' , as: :classified`
[09:57:47] [spoiler]: noob_on_rails: you can generally pass your preferred routes (or "pretty routes") to `resources` as a hash
[10:02:20] [spoiler]: noob_on_rails: it's the ordering of the routes
[10:03:14] [spoiler]: Also, the naming
[10:03:27] [spoiler]: you have some duplicates without namespaces
[10:03:51] [spoiler]: I think your routes are giving you most of the headache. Try rewriting them with this in mind: http://edgeguides.rubyonrails.org/routing.html#translated-paths
[10:04:29] [spoiler]: `post 'update' => 'users#update' , as: :update` & `post 'update' => 'classifieds#update'`
[10:04:56] [spoiler]: also, an edit generates a PUT
[10:04:59] [spoiler]: erm or a PATCH
[10:05:06] [spoiler]: not sure right now, might be PATCH in newer versions
[10:06:40] [spoiler]: you can comment out everything apart from `resources :…` though
[10:06:52] [spoiler]: well not *everything*
[10:07:01] [spoiler]: but any REST resource
[10:08:14] [spoiler]: that is noraml
[10:09:14] [spoiler]: Check the table out http://edgeguides.rubyonrails.org/routing.html#crud-verbs-and-actions
[10:10:49] [spoiler]: Ok I have to get back to work now :( deadlines and shit
[10:13:06] [spoiler]: Anyway, reposting question from earlier (not sure if this is against some etiquette, if it is I apologise) https://gist.github.com/omninonsense/d5d2a09f3eea374b6e0ad0500187916c because I can't spot any fuck-up D:
[10:21:27] [spoiler]: AFAICT, this last gist you linked should work
[10:43:55] [spoiler]: noob_on_rails: LOL
[15:43:35] [spoiler]: nice. I've been debugging something for over an hour, and then i decided to google the error message and it turns out it's a race condition in ActionCable.
[15:43:45] [spoiler]: Pro tip: google first, think later
[16:19:23] [spoiler]: Working with action cable is not as pleasant as I imagined it would be. It's not bad, but eh.
[16:23:10] [spoiler]: matthewd: Yeah, it's okay. :)

2016-07-25

[17:16:18] [spoiler]: has joined #RubyOnRails
[19:09:21] [spoiler]: How come I have to add this manually in Dev (I was getting `Missing host to link to! Please provide :host parameter or set default_url_options[:host]`): `config.after_initialize { routes.default_url_options = config.action_mailer.default_url_options }`
[19:09:31] [spoiler]: It seems to pick it up fine in Test env?
[19:11:38] [spoiler]: Ok, more specifically: it wasn't working in `rails console` (& using `pry-rails` gem), not sure if it's just console-related or if it wasn't working on dev production on the web.
[19:20:10] [spoiler]: dminuoso: oh yes, I am using spring. I know it's a bit patchy, but I didn't think it would be affecting the console too
[19:25:24] [spoiler]: ok the error persists even without spring running (restarted the rails sever too, just in case)
[19:25:32] [spoiler]: adding the block resolves it, again
[19:47:31] [spoiler]: dminuoso: here it is: https://gist.github.com/omninonsense/282ee62e06af1aff19b51d54dd0b3bf4
[19:48:55] [spoiler]: I'm not completely new to Rails, but the last time I used Rails was ~3.2 or something
[19:49:57] [spoiler]: The environment files are just snips, the rest is the default Rails generates (I can include it if necessary, but I didn't find anything relevant in it)
[19:50:49] [spoiler]: dminuoso: it seems to work, though. I can move it outside the hook, it'll work the same
[19:51:28] [spoiler]: Oh, I forgot to clarify: pry1 is without the after_initialize, pry2 is with it
[19:53:19] [spoiler]: dminuoso: application.rb wasn't modified, but I've updated the gist.
[19:53:56] [spoiler]: While it Works™, I am curious why it's necessary in Dev, but not in Test env. :P
[19:55:14] [spoiler]: Yes, that's exactly my question. :D Why is it not necessary in test env, but is in the development environment
[19:55:24] [spoiler]: Or at least why is it necessary inside the console
[19:57:01] [spoiler]: The test in passes just fine without the after_initialize hook (which means `root_url` works fine), but I get the weird warning/error inside development environment (after some messing around in the console, I tried this "tweak," moved it to the dev.rb file and it worked)
[19:57:30] [spoiler]: the test in Test environment (damn environment is such a long word that's easy to typo)*
[19:57:43] [spoiler]: dminuoso: that is the full stack trace :P
[19:57:51] [spoiler]: That's what baffles me
[19:59:59] [spoiler]: I am not completely new to Ruby; I know what a stack trace looks like. The outputs in pry1 and pry2 are not truncated, it's the whole thing
[20:00:50] [spoiler]: Is that... configurable? I don't recall turning it on
[20:05:36] [spoiler]: Tested it outside of the hook and it works the same; updated the gist now: https://gist.github.com/omninonsense/282ee62e06af1aff19b51d54dd0b3bf4
[20:05:49] [spoiler]: The file I added is `pry1.wtf?`
[20:06:36] [spoiler]: dminuoso: It's giving me a headache, too :P
[20:07:11] [spoiler]: I honestly don't mind slapping that one line in each environment, but I am still curious why it behaves so differently
[20:09:01] [spoiler]: It took four question marks, yeah
[20:11:15] [spoiler]: dminuoso: updated the gist: https://gist.github.com/omninonsense/282ee62e06af1aff19b51d54dd0b3bf4#file-pry1-wtf
[20:15:57] [spoiler]: dminuoso: maybe it's a bug with the ruby-pry gem spring and rails and the moon phase
[20:21:18] [spoiler]: same thing with IRB
[20:21:24] [spoiler]: https://gist.github.com/omninonsense/282ee62e06af1aff19b51d54dd0b3bf4#file-irb
[20:22:26] [spoiler]: #metaprogrammingproblems
[20:26:10] [spoiler]: I am apparently not the only one with this problem. People solved it differently, though (on SO). I feel like my way is better, though. Most people define `default_url_options = {…}` inside their routes.rb file
[20:27:19] [spoiler]: dminuoso: I think this behaviour is only present in dev since it seems to be the only mode when it doesn't load code eagerly
[20:27:29] [spoiler]: s/mode/environment/
[20:29:12] [spoiler]: But if the routes are added on the fly, the config is missing the default_url_options, wouldn't it only detect this is missing at rutime (when you try to first reference the route, since it wasn't "eagerly" created)?
[20:29:26] [spoiler]: dminuoso: People on SO seem to mention Rails 4, too
[20:30:49] [spoiler]: dminuoso: just trying to dig one up; I am not sure if I imagined it now
[20:33:56] [spoiler]: dminuoso: ok yeah it seems to be rails5 specific, moreover there is this: http://edgeguides.rubyonrails.org/action_controller_overview.html#default-url-options
[20:35:52] [spoiler]: Frankly, I think it only works because ruby allows calling methods without `()`, so—just assuming here, too lazy to dig it up right now—it's probably called along the lines of `default_url_options[:host]` so it might be that it's a coincidence my hash shit works
[20:36:38] [spoiler]: Yes exactly what I meant :P
[20:37:54] [spoiler]: if you did `def a; {host: "banana"}; end` and called `a[:host]` it would essentially behave the same way as if a really is a Hash, no?
[20:38:56] [spoiler]: It might be that it's in scope where ever it's being reference. I could completely be wrong, it's just a theory
[20:40:02] [spoiler]: Yeah, don't bother with it, really.
[20:41:05] [spoiler]: I think it works in Test/Prod and maybe even browser because there's a request environment, while there is none in the console
[20:41:32] [spoiler]: since the URL helpers seem to fall back to `default_url_options` if there's no request environment
[20:41:46] [spoiler]: idk, I just skimmed it—again, i could be wrong
[20:43:39] [spoiler]: We can hold hands and walk through the scary depths of the Rails' Metaprogramming Horror Cave of Confisucles together
[20:44:01] [spoiler]: Or we can just chill and pretend it's because there's no rack req env
[20:49:32] [spoiler]: I don't see anywhere in the app code that the req.env. is spoofed, although it's possible it's done somewhere inside Rails.
[20:49:36] [spoiler]: ACTION shrugs
[20:49:55] [spoiler]: s/app code/boilerplate code/

2016-07-22

[15:28:30] [spoiler]: Ping timeout: 272 seconds
[15:30:20] [spoiler]: has joined #ruby-offtopic
[15:30:20] [spoiler]: has joined #ruby-community
[15:30:20] [spoiler]: has joined #ruby

2016-06-03

[11:26:23] [spoiler]: has joined #ruby-offtopic
[11:26:23] [spoiler]: has joined #ruby-community
[11:26:23] [spoiler]: has joined #ruby

2016-05-30

[07:40:21] [spoiler]: Quit: Cheers!

2016-05-20

[06:21:12] [spoiler]: has joined #ruby-offtopic
[06:21:12] [spoiler]: has joined #ruby-community
[06:21:12] [spoiler]: has joined #ruby

2016-05-19

[11:58:14] [spoiler]: Quit: Cheers!

2016-05-18

[20:28:40] [spoiler]: Ping timeout: 264 seconds
[20:31:19] [spoiler]: has joined #ruby-offtopic
[20:31:19] [spoiler]: has joined #ruby-community
[20:31:19] [spoiler]: has joined #ruby

2016-04-28

[12:43:41] [spoiler]: LOL https://codebabes.com/
[12:43:45] [spoiler]: Why no Ruby
[12:43:56] [spoiler]: And why no Codehunks?! :(

2016-04-16

[21:41:18] [spoiler]: Does anyone know what the reason behind Ruby's `(Float..Float)#size` is? If you look at the C code, it handles a Range between two floats differently.
[21:41:36] [spoiler]: When computing the size, that is
[21:42:55] [spoiler]: > (3.14..6.28).size # Returns 4, but I am not sure what the idea is
[21:43:02] [spoiler]: >> (3.14..6.28).size # Returns 4, but I am not sure what the idea is
[21:50:55] [spoiler]: havenwood: Oh. That's the only reason? Kinda explains why the name is `ruby_float_step_size`
[21:51:48] [spoiler]: I still think it's slightly bizarre, but oh well. Thanks, though
[21:51:58] [spoiler]: (mostly because I can't think of a usecase)

2016-04-15

[03:40:03] [spoiler]: has joined #ruby-offtopic
[03:40:03] [spoiler]: has joined #ruby-community
[03:40:03] [spoiler]: has joined #ruby