greengriminal

Activity Graph

Page 1 of 22 | Next »

2019-04-19

[00:52:18] greengriminal: has joined #elixir-lang
[00:57:19] greengriminal: has joined #elixir-lang
[04:39:27] greengriminal: Quit: This computer has gone to sleep
[04:44:15] greengriminal: has joined #elixir-lang
[05:25:00] greengriminal: Quit: This computer has gone to sleep
[15:47:15] greengriminal: has joined #elixir-lang
[17:53:32] greengriminal: Quit: This computer has gone to sleep
[22:43:00] greengriminal: has joined #elixir-lang

2019-04-18

[00:23:48] greengriminal: Quit: This computer has gone to sleep
[01:36:22] greengriminal: has joined #elixir-lang
[15:53:38] greengriminal: has joined #elixir-lang
[21:18:08] greengriminal: Quit: This computer has gone to sleep

2019-04-17

[23:53:31] greengriminal: has joined #elixir-lang

2019-04-16

[15:52:17] greengriminal: has joined #elixir-lang

2019-04-15

[12:52:26] greengriminal: has joined #elixir-lang
[13:19:40] greengriminal: Quit: This computer has gone to sleep

2019-04-13

[02:07:03] greengriminal: has joined #elixir-lang
[02:58:27] greengriminal: Quit: This computer has gone to sleep
[03:05:10] greengriminal: has joined #elixir-lang
[03:46:05] greengriminal: Quit: This computer has gone to sleep
[06:28:14] greengriminal: has joined #elixir-lang
[07:41:20] greengriminal: Quit: This computer has gone to sleep
[12:43:55] greengriminal: has joined #elixir-lang
[14:44:28] greengriminal: has joined #elixir-lang
[15:27:44] greengriminal: Quit: This computer has gone to sleep

2019-04-12

[15:44:47] greengriminal: has joined #elixir-lang
[21:59:11] greengriminal: Quit: This computer has gone to sleep

2019-04-09

[16:37:12] greengriminal: has joined #elixir-lang

2019-04-08

[13:30:51] greengriminal: has joined #elixir-lang

2019-03-29

[15:50:21] greengriminal: has joined #elixir-lang

2019-03-28

[18:47:29] greengriminal: has joined #elixir-lang
[18:48:41] greengriminal: has joined #RubyOnRails
[18:48:58] greengriminal: Hey quick question what are people doing nowadays in order to have a rails console that is a sandbox env
[18:49:08] greengriminal: I understand that support was dropped as of 4.2 - https://github.com/rails/rails/issues/32349#issuecomment-376171579

2019-03-27

[17:54:05] greengriminal: has joined #elixir-lang

2019-03-26

[14:14:59] greengriminal: has joined #elixir-lang

2019-03-20

[16:50:15] greengriminal: has joined #elixir-lang
[17:08:06] greengriminal: Quit: This computer has gone to sleep
[17:10:13] greengriminal: has joined #elixir-lang

2019-03-17

[19:15:01] greengriminal: has joined #elixir-lang
[19:16:06] greengriminal: has joined #RubyOnRails
[19:16:39] greengriminal: has joined #ruby

2019-03-13

[01:10:18] greengriminal: has joined #elixir-lang
[01:10:48] greengriminal: has joined #RubyOnRails
[01:11:11] greengriminal: Hey all quick question is this the right syntax for only enabling uniqueness constraints on create: `validates :user_id, uniqueness: true, on: :create`
[01:12:02] greengriminal: My previous syntax was: `validates_uniqueness_of :user_id` and was finding that if I loaded an existing AR record and called `#save` it would fail this validation check.
[01:16:07] greengriminal: answered my own question it will work.

2019-03-11

[20:08:36] greengriminal: has joined #elixir-lang

2019-02-14

[15:24:02] greengriminal: has joined #RubyOnRails
[15:27:13] greengriminal: Does anyone here use monogid having a bit of an issue with when I call `#first` - https://gist.github.com/davidpatters0n/7cedc822cb9fd5d591e7811a9ce64f37
[15:28:04] greengriminal: I am certain that I have these indexes too.

2019-02-11

[19:59:04] greengriminal: has joined #RubyOnRails
[19:59:36] greengriminal: Hey all quick question regarding Arel. I have the following: https://gist.github.com/davidpatters0n/68d034b9f8800f0b7432eed6dc5faa25 and am getting the following error: `Arel::Visitors::UnsupportedVisitError: Unsupported argument type: Symbol. Construct an Arel node instead.` when I call .to_sql on it.
[20:01:13] greengriminal: any idea on what I'm doing wrong here?
[23:02:59] greengriminal: Quit: This computer has gone to sleep
[23:27:23] greengriminal: has joined #RubyOnRails

2019-02-06

[13:28:43] greengriminal: has joined #RubyOnRails
[13:29:48] greengriminal: Hey all quick question regarding adding validation on a `belongs_to` association. Is there any actual difference between: https://gist.github.com/davidpatters0n/314f4d7e98e954c671d69e2b4dd2feda
[13:30:45] greengriminal: Ah got my answer I think: using `required` option: Validates the association itself, not the id
[13:32:38] greengriminal: Which brings me to my next question, which one makes more sense to use.
[13:34:11] greengriminal: I mean there's no harm in using both, because then that way you validate that the association exists & the foreign key exists too.
[13:40:51] greengriminal: What if you're using a nosql db such as mongodb.
[13:41:23] greengriminal: in the case of a rails app we're using mongoid.
[14:45:56] greengriminal: Quit: This computer has gone to sleep

2019-01-28

[14:40:33] greengriminal: has joined #RubyOnRails
[22:24:38] greengriminal: Ping timeout: 245 seconds
[22:25:41] greengriminal: has joined #RubyOnRails
[22:35:13] greengriminal: Quit: This computer has gone to sleep

2018-11-26

[23:39:56] greengriminal: has joined #RubyOnRails

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

[20:28:28] greengriminal: Quit: This computer has gone to sleep