greengriminal

Activity Graph

Page 1 of 22 | Next »

2018-11-12

[15:14:38] greengriminal: has joined #RubyOnRails
[17:02:02] greengriminal: Quit: This computer has gone to sleep
[17:13:38] greengriminal: has joined #RubyOnRails
[22:00:54] greengriminal: Quit: This computer has gone to sleep

2018-11-08

[19:14:01] greengriminal: has joined #RubyOnRails
[19:14:23] greengriminal: Hey all quick question I'm trying to run: Rake::Task['db:schema:load'] and I'm getting: `untimeError: Don't know how to build task 'db:schema:load'`
[19:14:34] greengriminal: db:schema:load is a default task :?
[19:14:51] greengriminal: Better yet even when I try: `Rake::Task['db:migrate']` I get the same error.
[19:16:49] greengriminal: X_x I did: `Rails.application.load_tasks` and it works loads.
[19:16:58] greengriminal: I forgot to mention that I'm doing this from a rails console.
[19:17:45] greengriminal: For those who want to run a rake task from the rails console you need to run: `Rails.application.load_tasks` and then `Rake::Task['db:schema:load']` will load
[19:19:30] greengriminal: It was `Rails.application.load_tasks`
[19:20:07] greengriminal: `load_task` - https://apidock.com/rails/Rails/Application/load_tasks
[19:58:01] greengriminal: Quit: This computer has gone to sleep

2018-11-02

[00:13:37] greengriminal: Quit: This computer has gone to sleep
[18:30:42] greengriminal: has joined #RubyOnRails
[21:00:34] greengriminal: Quit: This computer has gone to sleep

2018-11-01

[18:02:01] greengriminal: has joined #RubyOnRails
[20:03:03] greengriminal: Quit: This computer has gone to sleep
[20:21:26] greengriminal: has joined #RubyOnRails

2018-10-31

[14:10:14] greengriminal: has joined #RubyOnRails

2018-10-09

[19:03:06] greengriminal: has joined #ruby
[19:04:09] greengriminal: Hey all I'm currently using Ruby 2.3.4 and the following (0.99 + (1.0 * 0.025)).round(2) = 1.01 but in Ruby 2.3.7 I get 1.02
[19:05:21] greengriminal: For that matter I get the same output on 2.4.0 as well
[19:15:35] greengriminal: Quit: This computer has gone to sleep
[19:34:19] greengriminal: has joined #ruby
[19:34:19] greengriminal: has joined #RubyOnRails
[20:37:09] greengriminal: Quit: This computer has gone to sleep

2018-08-08

[14:21:01] greengriminal: has joined #RubyOnRails

2018-07-03

[15:57:04] greengriminal: has joined #ruby
[15:58:33] greengriminal: Hey all quick question, I know that in Ruby 2.4 changes were made to how rounding works and I know that you can now pass optional params such as `half: :even`
[15:59:10] greengriminal: Now previously in 2.3 I could do: (0.99 + (1.0 * 0.025)).round(2) which would give me 1.01. now in ruby 2.4 the same calculation is giving 1.02.
[15:59:53] greengriminal: Using `round(half: :down)` or `round(half: :up)` doesn't appear to be working.
[16:00:00] greengriminal: Am I missing something fundamental here?
[16:18:22] greengriminal: https://i.imgur.com/ZA8x9zW.png
[16:18:28] greengriminal: apeiros, check that out ^
[16:22:44] greengriminal: my team are trying to upgrade to a rails proj to use 2.5.0 and as a result we have some failing spec which relates back to the rounding changes that were introduced in 2.4
[17:02:46] greengriminal: Thanks konsolebox so with that said I should be using BigDecimal instead of a Float ?
[17:04:02] greengriminal: Yeah I was taking a thorough read through of that read just now
[17:49:50] greengriminal: Quit: This computer has gone to sleep
[17:51:34] greengriminal: has joined #ruby
[19:02:56] greengriminal: Quit: This computer has gone to sleep
[19:06:54] greengriminal: has joined #ruby
[19:13:38] greengriminal: has joined #ruby
[19:15:27] greengriminal: has joined #ruby
[19:42:29] greengriminal: Quit: This computer has gone to sleep
[19:46:41] greengriminal: has joined #ruby
[19:49:48] greengriminal: has joined #ruby
[19:55:24] greengriminal: Quit: This computer has gone to sleep
[19:56:06] greengriminal: has joined #ruby

2018-06-08

[13:40:26] greengriminal: has joined #RubyOnRails

2018-06-05

[18:34:24] greengriminal: has joined #RubyOnRails
[21:19:15] greengriminal: Quit: This computer has gone to sleep
[22:19:41] greengriminal: has joined #RubyOnRails

2018-05-29

[00:16:26] greengriminal: has joined #RubyOnRails
[01:17:33] greengriminal: Quit: This computer has gone to sleep

2018-05-20

[15:44:17] greengriminal: has joined #RubyOnRails

2018-05-17

[12:59:38] greengriminal: has joined #RubyOnRails

2018-05-13

[20:10:38] greengriminal: has joined #ruby
[20:16:23] greengriminal: I'm trying to verify a request using an SSL cert_path but I keep getting: Conn close because of connect error SSL_connect returned=1 errno=0 state=error: certificate verify failed
[20:16:41] greengriminal: https://gist.github.com/davidpatters0n/762215abfb5c1c51a1f75797fdb96390 is what I have
[20:18:31] greengriminal: is there a reason why I'm getting this ?
[20:38:42] greengriminal: has left #ruby: ("Leaving")

2018-05-08

[16:44:58] greengriminal: has joined #RubyOnRails
[19:30:48] greengriminal: Ping timeout: 255 seconds

2018-05-04

[18:52:41] greengriminal: has joined #RubyOnRails

2018-05-01

[15:09:01] greengriminal: has joined #RubyOnRails

2018-04-30

[15:03:23] greengriminal: has joined #RubyOnRails
[17:31:41] greengriminal: Quit: This computer has gone to sleep

2018-04-27

[18:20:59] greengriminal: has joined #RubyOnRails
[20:50:23] greengriminal: Quit: This computer has gone to sleep
[20:50:48] greengriminal: has joined #RubyOnRails

2018-04-24

[13:31:41] greengriminal: has joined #ruby
[14:57:37] greengriminal: Ping timeout: 248 seconds
[14:58:31] greengriminal: has joined #ruby
[14:58:31] greengriminal: has joined #RubyOnRails
[15:06:21] greengriminal: Ping timeout: 264 seconds
[15:06:46] greengriminal: has joined #ruby
[15:34:33] greengriminal: Ping timeout: 264 seconds

2018-04-10

[23:20:49] greengriminal: has joined #RubyOnRails
[23:49:31] greengriminal: has joined #RubyOnRails

2018-04-09

[02:19:41] greengriminal: has joined #RubyOnRails

2018-03-21

[02:00:53] greengriminal: has joined #RubyOnRails
[02:10:14] greengriminal: Quit: This computer has gone to sleep
[02:55:46] greengriminal: has joined #RubyOnRails
[04:34:06] greengriminal: has joined #RubyOnRails
[05:34:30] greengriminal: Quit: This computer has gone to sleep
[13:29:09] greengriminal: has joined #RubyOnRails
[14:53:58] greengriminal: Quit: This computer has gone to sleep

2018-03-20

[23:03:08] greengriminal: has joined #RubyOnRails
[23:35:44] greengriminal: Quit: This computer has gone to sleep

2018-03-07

[14:56:39] greengriminal: has joined #RubyOnRails
[15:27:47] greengriminal: Ping timeout: 256 seconds

2018-03-02

[18:48:37] greengriminal: has joined #RubyOnRails
[18:50:24] greengriminal: Hey all quick question. I've got a rails app and am attempting to get my rails engine working. Currently the engine lives under: `enginges/boxoffice_payments`. I have also configured some initializers. My issue is that I can execute the rails console successfully from the `engines/boxoffice_payments/test_dummy` app. But cannot access the rails console from my main app. I have confirmed that the app is mounted in my Gemfile and in my routes.rb
[18:50:33] greengriminal: This is my gist: https://gist.github.com/anonymous/8676ef84a3af6818722762cff5bea772
[18:51:50] greengriminal: my question simply is, why does the rails console work when I launch `rails console` from the test/dummy app and not from my main app ;/
[18:57:47] greengriminal: interesting...
[18:58:13] greengriminal: so what would be the correct way in autoloading modules that exist in engines
[18:58:22] greengriminal: or is that just not possible.
[21:34:50] greengriminal: Quit: This computer has gone to sleep
[21:35:55] greengriminal: has joined #RubyOnRails
[21:43:01] greengriminal: Quit: This computer has gone to sleep
[21:55:43] greengriminal: has joined #RubyOnRails
[22:04:39] greengriminal: has joined #RubyOnRails

2018-02-09

[22:27:13] greengriminal: has joined #RubyOnRails
[22:27:32] greengriminal: is there a way to ovverride active record migration path ?
[23:00:26] greengriminal: Quit: This computer has gone to sleep

2018-02-08

[03:09:43] greengriminal: has joined #RubyOnRails
[06:50:37] greengriminal: Quit: This computer has gone to sleep
[13:10:47] greengriminal: has joined #RubyOnRails
[13:44:32] greengriminal: Quit: This computer has gone to sleep

2018-02-07

[06:00:47] greengriminal: has joined #RubyOnRails
[13:56:10] greengriminal: has joined #RubyOnRails
[15:01:35] greengriminal: Quit: This computer has gone to sleep

2018-02-06

[01:37:12] greengriminal: has joined #RubyOnRails
[02:18:30] greengriminal: Quit: This computer has gone to sleep
[03:16:58] greengriminal: has joined #RubyOnRails
[05:23:07] greengriminal: Quit: This computer has gone to sleep

2018-02-05

[23:43:16] greengriminal: has joined #RubyOnRails
[23:57:41] greengriminal: Quit: This computer has gone to sleep

2018-01-26

[16:30:12] greengriminal: has joined #RubyOnRails
[21:01:26] greengriminal: Quit: This computer has gone to sleep
[21:04:27] greengriminal: has joined #RubyOnRails
[22:11:13] greengriminal: Quit: This computer has gone to sleep

2018-01-24

[14:23:40] greengriminal: has joined #RubyOnRails
[15:37:29] greengriminal: Quit: This computer has gone to sleep
[19:55:05] greengriminal: has joined #RubyOnRails
[19:56:31] greengriminal: Read error: Connection reset by peer
[20:03:25] greengriminal: has joined #RubyOnRails
[20:04:48] greengriminal: Read error: Connection reset by peer
[20:05:08] greengriminal: has joined #RubyOnRails
[20:24:51] greengriminal: Quit: This computer has gone to sleep
[20:45:48] greengriminal: has joined #RubyOnRails
[22:13:08] greengriminal: Quit: This computer has gone to sleep

2018-01-20

[02:48:08] greengriminal: has joined #RubyOnRails

2018-01-19

[00:13:23] greengriminal: has joined #RubyOnRails
[14:50:57] greengriminal: has joined #RubyOnRails
[16:29:10] greengriminal: Quit: This computer has gone to sleep

2018-01-16

[01:17:34] greengriminal: has joined #RubyOnRails
[02:30:55] greengriminal: Quit: This computer has gone to sleep
[15:46:14] greengriminal: has joined #RubyOnRails
[16:23:05] greengriminal: Quit: This computer has gone to sleep
[16:37:23] greengriminal: has joined #RubyOnRails
[16:53:49] greengriminal: Quit: This computer has gone to sleep
[19:17:26] greengriminal: has joined #RubyOnRails
[20:28:28] greengriminal: Quit: This computer has gone to sleep

2018-01-03

[01:15:35] greengriminal: has joined #RubyOnRails
[01:59:58] greengriminal: Quit: This computer has gone to sleep
[04:15:52] greengriminal: has joined #RubyOnRails
[04:32:56] greengriminal: Quit: This computer has gone to sleep

2017-12-15

[00:36:52] greengriminal: has joined #RubyOnRails

2017-12-14

[22:09:05] greengriminal: has joined #RubyOnRails
[22:09:35] greengriminal: I want to disable rubicon for a method is this possible?
[22:10:08] greengriminal: I know you can specify what rule to disable such as `rubocop:disable Style/ClassVars` but I want to disable all checks for a method
[22:11:06] greengriminal: i meant rubocp
[22:11:17] greengriminal: oh man today is not my day i can't type lol
[22:11:23] greengriminal: Its a migration
[22:11:34] greengriminal: lol I've done it.

2017-11-21

[04:34:46] greengriminal: has joined #ruby
[04:35:52] greengriminal: Hey all, quick question is there a weird ruby-ism here: https://gist.github.com/davidpatters0n/2584206473cf2196a8a82f1579022e52
[04:37:01] greengriminal: it seems as though the method `defined?` doesn't correctly evaluate if you dynamically fetch the ivar via #instance_variable_get
[05:41:02] greengriminal: Thanks for that.
[05:48:30] greengriminal: agreed, I didn't end up using it in the end
[07:05:39] greengriminal: Quit: This computer has gone to sleep
[14:43:30] greengriminal: has joined #ruby
[15:30:12] greengriminal: Quit: This computer has gone to sleep
[15:43:37] greengriminal: has joined #ruby
[19:23:10] greengriminal: Quit: This computer has gone to sleep
[19:50:16] greengriminal: has joined #ruby
[20:13:09] greengriminal: Quit: This computer has gone to sleep
[20:21:36] greengriminal: has joined #ruby
[21:10:25] greengriminal: Quit: This computer has gone to sleep
[21:11:09] greengriminal: has joined #ruby
[21:11:29] greengriminal: Remote host closed the connection
[21:12:05] greengriminal: has joined #ruby

2017-11-16

[19:48:25] greengriminal: has joined #RubyOnRails
[23:16:57] greengriminal: Quit: This computer has gone to sleep
[23:50:08] greengriminal: has joined #RubyOnRails

2017-11-07

[21:29:20] greengriminal: has joined #ruby
[21:31:09] greengriminal: Hey all, is it possible to override a method and call its original method i.e https://gist.github.com/davidpatters0n/2ab898de0deb4a1f18ed817947bcd80a
[21:31:34] greengriminal: I know I could use inheritance.
[21:42:08] greengriminal: dminuoso, - So trying your prepend suggestion but I seem to be doing something wrong here: https://gist.github.com/davidpatters0n/609e6b4af3f58f5658caf640c2b44fd6
[21:46:30] greengriminal: dminuoso, I ended up using the `alias`
[21:48:19] greengriminal: oh interesting

2017-10-27

[15:01:17] greengriminal: has joined #RubyOnRails

2017-09-20

[14:56:22] greengriminal: has joined #RubyOnRails
[22:26:33] greengriminal: Quit: This computer has gone to sleep

2017-07-21

[14:07:52] greengriminal: has joined #RubyOnRails

2017-07-18

[16:45:44] greengriminal: has joined #RubyOnRails
[16:53:04] greengriminal: Can someone shed a bit of light on an issue I'm facing. My problem is rails is failing to load an asset in the test env.
[16:53:20] greengriminal: I can confirm that in development the asset will load. This is the gist I have prepared: https://gist.github.com/davidpatters0n/9c5f5d00917a88f01916afbfc0a7c6c7
[16:54:21] greengriminal: Quit: This computer has gone to sleep
[16:57:29] greengriminal: has joined #RubyOnRails
[16:57:37] greengriminal: mwlang, - I got disconnected
[16:57:59] greengriminal: mwlang, - Should i be running `spring stop` from within the rails test console ?
[16:58:34] greengriminal: okay so ran that from outside the rails console.
[16:59:54] greengriminal: Appears to not make a difference. If i re-run `Rails.application.assets.find_asset('foundation_emails').to_s` in a rails test console.
[22:16:56] greengriminal: Quit: This computer has gone to sleep

2017-07-17

[00:45:44] greengriminal: has joined #RubyOnRails
[02:28:31] greengriminal: Quit: This computer has gone to sleep
[14:06:49] greengriminal: has joined #RubyOnRails

2017-07-15

[15:03:27] greengriminal: has joined #RubyOnRails
[15:33:23] greengriminal: Quit: This computer has gone to sleep

2017-06-22

[23:01:49] greengriminal: has joined #RubyOnRails
[23:24:07] greengriminal: Quit: This computer has gone to sleep

2017-06-13

[02:36:36] greengriminal: has joined #RubyOnRails

2017-05-26

[15:07:50] greengriminal: has joined #RubyOnRails
[15:08:12] greengriminal: Hey all quick question, has anyone independently been able to render a HAML files from within the rails console ?

2017-05-24

[18:52:10] greengriminal: has joined #RubyOnRails

2017-05-04

[16:23:22] greengriminal: Hey, does anyone have any thoughts on why this migration maybe failing: https://gist.github.com/davidpatters0n/b2a5c778bff82ab5d057fb7cace8873f I'm using postgres. Also have looked at similar questions on SO and they don't seem related.