ngr

Activity Graph

Page 1 of 1

2019-03-24

[17:25:25] ngr: Quit: leaving

2019-03-07

[04:53:43] ngr: has joined #elixir-lang

2016-06-09

[14:22:46] ngr: has joined #RubyOnRails

2016-05-13

[07:57:13] ngr: Remote host closed the connection

2016-05-11

[00:21:33] ngr: Ping timeout: 276 seconds
[00:28:47] ngr: has joined #RubyOnRails

2016-04-15

[15:25:53] ngr: *.net *.split

2016-04-11

[00:25:49] ngr: has joined #RubyOnRails

2016-02-17

[09:34:36] ngr: Remote host closed the connection

2016-02-10

[12:37:41] ngr: has joined #RubyOnRails

2016-01-20

[13:56:03] ngr: *.net *.split

2015-12-13

[19:35:53] ngr: *.net *.split
[19:35:58] ngr: has joined #RubyOnRails

2015-12-09

[08:33:59] ngr: why is it that everywhere I see 'RAILS_ENV=production rake assets:precompile' when 'rake assets:precompile' seems to do the same thing? is there a difference? I'm trying to avoid running into a cargo cult here.
[08:40:30] ngr: bob_f: okay, I can imagine how setting RAILS_ENV would affect the assets. Asking the other way round: Will setting RAILS_ENV=production harm my development environment? I'm building a Dockerfile and would prefere to keep it environment agnostic
[08:43:23] ngr: bob_f: would that mean to not include RAILS_ENV in the 'rake' command line but instead setting it when building the image using 'docker build -e'?
[09:09:58] ngr: bob_f: thanks. I'm using --build-arg now to set RAILS_ENV to 'production' unless I do a local build (using docker-compose) in which case it defaults to 'development'. which is also a good workaround for compose not supporting build-args.

2015-12-02

[00:23:06] ngr: has joined #RubyOnRails
[15:35:49] ngr: *.net *.split
[16:28:43] ngr: has joined #RubyOnRails

2015-11-26

[19:01:48] ngr: *.net *.split
[19:10:03] ngr: has joined #RubyOnRails

2015-11-24

[10:32:19] ngr: has joined #RubyOnRails

2015-11-21

[02:19:03] ngr: Write error: Broken pipe

2015-11-18

[13:26:53] ngr: do I need an Action Job backend when I want to use Action Mailer's deliver_later? I'm asking because the Active Job guide states that "Rails [...] executes the job immediately if not adapter is set." Does this mean it is still send in another thread?
[13:30:08] ngr: rvanlieshout: thanks, while you at it, can you suggest a (light) one?
[13:31:47] ngr: 'normal' db sounds good, I want to keep it as simple as possible because this is just about sending low priority mail notifications (not too bad when some get lost)

2015-11-17

[05:00:09] ngr: Ping timeout: 246 seconds
[14:58:58] ngr: has joined #RubyOnRails
[15:24:18] ngr: I am using Ransack to filter a complex data model but it fails with an SQL error ("no suchs column: activities_performances_2") and it also generates redundant JOIN statements ("activities", "activities_performances", "activities_performances_joins"). I am not sure if this problem is related to Ransack or to ActiveRecord. I'd much appreciate any hints on this subject. Please see https://gist.github.com/ngrash/486532f629b7349a9c6f for a short listing of my models
[15:25:41] ngr: I also included the failing test case (q: { verticals_id_eq: 1, activity_finish_date_gteq: '2015-11-17', activity_finish_date_lteq: '2015-11-17'). interestingly, when I don't filter for verticals_id_eq it works.

2015-11-16

[06:28:36] ngr: has joined #RubyOnRails

2015-11-14

[05:51:08] ngr: Ping timeout: 250 seconds
[06:19:01] ngr: has joined #RubyOnRails

2015-11-11

[05:55:57] ngr: Remote host closed the connection
[08:12:51] ngr: has joined #RubyOnRails

2015-10-26

[09:25:13] ngr: has joined #RubyOnRails

2015-10-20

[09:15:05] ngr: Remote host closed the connection

2015-10-16

[00:08:50] ngr: has joined #RubyOnRails

2015-10-13

[08:35:34] ngr: mikecmpbll: did not forget about you ;) here is what my implementation of what I call 'sub_id' looks like: https://gist.github.com/ngrash/b0bb493fa2441670d934#file-has_sub_id-rb
[09:04:52] ngr: mikecmpbll: thanks for having a look :)

2015-10-10

[19:31:51] ngr: Ping timeout: 246 seconds
[19:32:55] ngr: has joined #RubyOnRails

2015-10-08

[07:57:09] ngr: has joined #RubyOnRails
[08:01:46] ngr: I have a nested model and want to give it an 'id' that is incremented in parent scope. I want to achieve a hierarchy like this: 1.1, 1.2, 1.3, 2.1, 2.2, 3.1 where currently it is: 1.1, 1.2, 1.3, 2.4, 2.5, 4.6. I'm looking for a Gem that handles it but any hints are welcome :)
[09:06:44] ngr: mikecmpbll: yeah, that's the obvious solution. I was hoping for something more sophisticated. thanks anyway :)
[09:11:24] ngr: mikecmpbll: are you KISSing me? ;)
[09:13:18] ngr: mikecmpbll: my nesting is multiple levels deep so I'm gonna put that code in a concern. I was just thinking "maybe someone did this already"
[19:15:30] ngr: mikecmpbll: you were right. i ended implementing it myself.

2015-09-28

[01:38:52] ngr: Ping timeout: 250 seconds

2015-09-27

[02:58:06] ngr: Ping timeout: 246 seconds
[03:05:39] ngr: has joined #RubyOnRails
[03:15:48] ngr: Ping timeout: 264 seconds
[03:24:55] ngr: has joined #RubyOnRails

2015-09-26

[13:25:56] ngr: Ping timeout: 250 seconds
[13:28:06] ngr: has joined #RubyOnRails

2015-09-23

[15:04:52] ngr: I'm trying to put some of my javascript files into a gem so I can reuse them accross my apps. I created my gem using 'bundle gem my_gem' and put my javascript files in 'my_gem/app/assets/javascripts/my_gem'. In my app's Gemfile I use ':path => ~/my_gem' and in my application.js I have '//= require my_gem'. Now I get a Sprocket::FileNotFound exception saying "couldn't find file 'my_gem' with type 'application/javascript'"
[15:05:08] ngr: I also tried adding a index.js to my gem without any luck
[15:17:40] ngr: carlesso: thanks, gonna try this now
[15:22:47] ngr: carlesso: it worked! the second step was enough. thanks a lot :)

2015-09-16

[13:07:16] ngr: I'm building a database scheme where an activity has multiple people associated with it which can be of different roles (following the RACI principle if you want to know). what is the rails way to build this relationship? I thought of creating three tables: activities[name,id] <-> activities_users[activity_id, user_id, role] <-> user[name, id] but I don't know how to set up the associations on a model level. I'd much appreciate any hints or google keywords
[13:08:13] ngr: I want to be able to do "activity.responsible << user" and "activity.accountable << user"
[13:08:26] ngr: as well as "user.accountable_activities" and "user.responsible_activities"
[13:08:38] ngr: accountable and responsible being "roles" on the activities_users association
[13:26:48] ngr: does this sound like a use case for polymorphic associations? I am having a hard time wrapping my head around all those different association types for non trivial cases

2015-09-01

[13:57:32] ngr: has joined #RubyOnRails

2015-08-28

[04:31:28] ngr: Remote host closed the connection

2015-08-22

[12:32:21] ngr: aep: you could do where("device_id = ? AND created_at < ?", stat.device.id, stat.create_at)

2015-07-27

[10:48:25] ngr: has joined #RubyOnRails
[10:49:06] ngr: how do I access my generator's arguments from inside a template (erb)?
[10:50:09] ngr: I already tried the options hash without success :-(
[10:55:53] ngr: got it. it's 'attributes' or whatever name I passed as first argument to 'argument'
[14:50:59] ngr: how can I debug hook_for in my custom generator? I have multiple generators and I expect them to be called by a parent generator but only the parent is invoked.
[14:52:02] ngr: they are all defined inside libs/generators without module and derive from Rails::Generators::NamedBase
[14:52:53] ngr: mrbubbles: self.method()?

2015-04-28

[06:03:18] ngr: from inside a Gem, is there a way to get the path to the application code using the gem? the path to the Gemfile the gem was listed or so?
[06:05:35] ngr: It's going to be an internal micro-framework based on Grape and I make heavy assumptions about how the 'app code' is stuctured. For example I want to automatically require all the files inside the 'models' directory without having to write any line of code in the app itself
[06:07:24] ngr: it's gonna be a Rack application, so ideally all I want in the config.ru is a "require 'my_micro_framework'" and then "run MyMicroframework::App"
[06:09:24] ngr: Radar: this is not a question of Grape or not, because I'm already using it in a about seven micro-services that are currently rails applications. However I feel that rails is totally overkill and since Grape is self-sufficient I wanted to remove all the overhead (i.e. rails-stuff, except ActiveRecord of course)
[06:10:37] ngr: Radar: that sounds excatly like what I need, thanks a lot!
[06:13:33] ngr: Radar: thanks. I guess is doesn't matter where I create the constant?
[06:14:24] ngr: zotherstupidguy: what do you think is wrong with Grape?
[06:14:47] ngr: Radar: would like to hear the same from you. Why don't you think it's 'fun'?
[06:15:07] ngr: My experience so far is good, I like the DSL and the code is quite expressive
[06:17:06] ngr: zotherstupidguy: as far as I can tell there are 9 runtime dependencies in their gemspec which is okay imo
[06:17:46] ngr: three of them being rack related, which I use anyway
[06:18:08] ngr: well I din't check indirect dependencies
[06:18:31] ngr: zotherstupidguy: as I mentioned I am using ActiveRecord
[06:19:16] ngr: zotherstupidguy: also, I cannot see activerecord being mentioned here https://github.com/intridea/grape/blob/master/grape.gemspec
[06:22:16] ngr: Radar: okay I see why you dislike it, hopefully I'll have a more pleasing experience
[06:22:41] ngr: okay, back to work. thanks for your input Radar, zotherstupidguy :)

2015-03-02

[08:54:09] ngr: As part of my automated environment I don't want to manually enter the API token in my client app. Is it possible to create an API token from an environment variable as part of db:seed? What models do I need?
[14:14:57] ngr: gmacdougall: I want to query all products, so i guess I need a user token