« Back to channel list

#RubyOnRails - 07 July 2018

« Back 1 day Forward 1 day »
[00:07:42] benlieb: has joined #RubyOnRails
[00:10:37] orbyt_: has joined #RubyOnRails
[00:21:27] apeiros: has joined #RubyOnRails
[00:22:49] apeiros: has joined #RubyOnRails
[00:28:56] bradleyprice: has joined #RubyOnRails
[00:32:54] ellcs: has joined #RubyOnRails
[00:34:07] orbyt_: has joined #RubyOnRails
[00:35:15] bradleyprice: has joined #RubyOnRails
[00:36:55] benlieb: has joined #RubyOnRails
[00:58:37] benlieb: has joined #RubyOnRails
[00:59:50] hays: has joined #RubyOnRails
[01:03:07] benlieb: has joined #RubyOnRails
[01:03:58] benlieb: has joined #RubyOnRails
[01:24:57] benlieb: has joined #RubyOnRails
[01:54:17] fragamus: has joined #RubyOnRails
[02:45:09] Technodrome: has joined #RubyOnRails
[02:55:17] bradleyprice: has joined #RubyOnRails
[03:07:26] tdy: has joined #RubyOnRails
[03:09:08] cagomez: has joined #RubyOnRails
[03:09:46] braincrash: has joined #RubyOnRails
[03:27:17] kapil___: has joined #RubyOnRails
[03:56:06] apparition: has joined #RubyOnRails
[03:57:10] cjfn: has joined #RubyOnRails
[03:58:05] cjfn: I have a non-rails ruby project but I'm trying to use active support's hash with indifferent access
[03:58:20] cjfn: I require 'active_support/hash_with_indifferent_access'
[03:58:33] cjfn: but when I run an rspec test for that module
[03:58:46] cjfn: it tells me that I can't do {}.with_indifferent_access
[03:58:51] cjfn: or Hash.new.with_indifferent_access
[03:59:13] cjfn: pry> {}.with_indifferent_access
[03:59:13] cjfn: NoMethodError: undefined method `with_indifferent_access' for {}:Hash
[03:59:18] cjfn: any ideas why?
[03:59:46] cjfn: [6] pry> require 'active_support/hash_with_indifferent_access'
[03:59:46] cjfn: => false
[03:59:55] cjfn: I've tried re-requiring it from the binding.pry so I know it's required it
[04:00:19] cjfn: the HashWithIndifferentAccess class is available as well since I can do this:
[04:00:30] cjfn: [4] pry> HashWithIndifferentAccess
[04:00:30] cjfn: => ActiveSupport::HashWithIndifferentAccess
[04:00:30] cjfn: [5] pry> HashWithIndifferentAccess.new
[04:01:32] cjfn: looks like I need to require: 'active_support/core_ext/hash/indifferent_access'
[04:03:56] Technodrome: has joined #RubyOnRails
[04:07:26] cjfn: has left #RubyOnRails: ()
[04:20:21] bradleyprice: has joined #RubyOnRails
[04:50:45] moei: has joined #RubyOnRails
[04:51:43] FastJack: has joined #RubyOnRails
[05:02:18] akaiiro: has joined #RubyOnRails
[05:04:52] srinidhi: has joined #RubyOnRails
[05:24:25] reber: has joined #RubyOnRails
[05:32:54] Saukk: has joined #RubyOnRails
[05:37:38] Saukk: has joined #RubyOnRails
[05:38:36] mtkd: has joined #RubyOnRails
[06:04:04] dustinm`: has joined #RubyOnRails
[06:21:18] bradleyprice: has joined #RubyOnRails
[06:30:53] apparition: has joined #RubyOnRails
[06:59:16] lupine: has joined #RubyOnRails
[07:07:56] yottanami: has joined #RubyOnRails
[07:08:40] yottanami: Is anyway to handle this query using rails orm? `select user_id,sum(score) as rank from leaders group by user_id order by rank desc`
[07:10:29] tbuehlmann: yottanami, sure: Leader.select('user_id, SUM(score) AS rank').group(:user_id).order(rank: :desc)
[07:10:56] mtkd: has joined #RubyOnRails
[07:13:26] yottanami: tbuehlmann, tnx
[07:28:42] vedu_: has joined #RubyOnRails
[07:28:58] yottanami: tbuehlmann, I tried the query but I got this error `ActiveRecord::StatementInvalid (PG::WrongObjectType: ERROR: WITHIN GROUP is required for ordered-set aggregate rank)`
[07:29:07] yottanami: LINE 1: ...M "leaders" GROUP BY "leaders"."user_id" ORDER BY "leaders"....
[07:29:26] tbuehlmann: right, try this: Leader.select('user_id, SUM(score) AS rank').group(:user_id).order('SUM(score) DESC')
[07:33:47] kapil___: has joined #RubyOnRails
[07:35:46] yottanami: tbuehlmann, ActiveRecord::StatementInvalid (PG::SyntaxError: ERROR: syntax error at or near "AS")
[07:35:46] yottanami: LINE 1: SELECT COUNT(user_id, SUM(score) AS rank) AS count_user_id_...
[07:42:53] tbuehlmann: remove that aggregate function when COUNTing leaders
[07:49:43] blackmesa1: has joined #RubyOnRails
[08:01:20] za1b1tsu: has joined #RubyOnRails
[08:02:20] yottanami: tbuehlmann, you mean removing sum? but the sum of scores is important for me
[08:02:34] tbuehlmann: not when counting, right?
[08:28:17] ellcs: has joined #RubyOnRails
[08:41:05] conta: has joined #RubyOnRails
[09:00:40] za1b1tsu: has joined #RubyOnRails
[09:11:23] sameerynho: has joined #RubyOnRails
[09:17:05] mtkd: has joined #RubyOnRails
[10:17:41] lxsameer: has joined #RubyOnRails
[10:30:01] lxsameer: has joined #RubyOnRails
[10:32:01] apparition: has joined #RubyOnRails
[10:50:00] lxsameer: has joined #RubyOnRails
[10:57:15] mtkd: has joined #RubyOnRails
[10:58:37] Technodrome: has joined #RubyOnRails
[11:10:05] lxsameer: has joined #RubyOnRails
[11:18:37] vedu_: has joined #RubyOnRails
[11:20:04] lxsameer: has joined #RubyOnRails
[12:10:05] lxsameer: has joined #RubyOnRails
[12:18:44] Navyak: has joined #RubyOnRails
[12:18:52] mtkd: has joined #RubyOnRails
[12:19:12] Navyak: hi can anyone help me?
[12:21:14] apeiros: Navyak: how'd anyone know?
[12:21:35] Navyak: just want to know if anyone here helps lol
[12:21:53] apeiros: you'll see that once you've asked a question
[12:22:54] Navyak: im using cloud9, after rails install new app i get this
[12:22:56] Navyak: https://23f4bea21d6047189f78d7dada94dba0.vfs.cloud9.us-east-1.amazonaws.com
[12:23:15] Navyak: but its not the usual homepage
[12:23:49] Navyak: also the preview doesnt work
[12:24:03] Navyak: i have to paste the link in seperate windwo
[12:25:18] apeiros: haven't used cloud9, so I doubt I'll be able to help
[12:26:36] apeiros: don't they provide support?
[12:27:56] Navyak: i need instant support as i dont have time
[12:28:10] Navyak: im trying codeanywhere now
[12:55:58] za1b1tsu: has joined #RubyOnRails
[13:10:06] lxsameer: has joined #RubyOnRails
[13:10:19] srinidhi: has joined #RubyOnRails
[13:12:54] za1b1tsu: has joined #RubyOnRails
[13:28:50] bonhoeffer: has joined #RubyOnRails
[13:29:07] bonhoeffer: on my production site ENV isn't loading .env
[13:29:16] bonhoeffer: config.ru has the load
[13:43:29] uks: has joined #RubyOnRails
[13:46:29] desperek: has joined #RubyOnRails
[13:55:35] fmcgeough: has joined #RubyOnRails
[13:55:56] Puffball: has joined #RubyOnRails
[14:00:16] Pupeno: has joined #RubyOnRails
[14:01:14] Pupeno: I haven't done Rails in quite a while. Back in the day I was using Bootstrap. Is it still a good option with good integration? Or should I explore something else?
[14:02:55] fryguy: bootstrap is still fine
[14:12:15] Pupeno: Should I handle it with webpack? This project is not going to use React or any of the other big frameworks for JS. It's still going to have some Javascrip.t
[14:15:58] Technodrome: has joined #RubyOnRails
[14:27:39] Navyak: anyone knows how to run javascript instance in opera?
[14:27:50] Navyak: im trying to use codemirror
[14:38:19] Dbugger: has joined #RubyOnRails
[14:48:36] fragamus: has joined #RubyOnRails
[14:53:35] kapil___: has joined #RubyOnRails
[15:04:56] jackhum: has joined #RubyOnRails
[15:08:48] hfp_work: has joined #RubyOnRails
[15:18:01] _aeris_: has joined #RubyOnRails
[15:25:28] lxsameer: has joined #RubyOnRails
[15:46:28] Dimik: has joined #RubyOnRails
[15:46:44] jackhum: has joined #RubyOnRails
[15:52:41] mtkd: has joined #RubyOnRails
[16:07:14] ur5us: has joined #RubyOnRails
[16:18:54] apeiros: has joined #RubyOnRails
[16:18:58] hfp_work: has joined #RubyOnRails
[16:19:19] reber: has joined #RubyOnRails
[16:23:00] xhoy: has joined #RubyOnRails
[16:23:07] apparition: has joined #RubyOnRails
[16:23:08] fmcgeough: has joined #RubyOnRails
[16:41:57] Technodrome: has joined #RubyOnRails
[16:50:18] jackhum: has joined #RubyOnRails
[16:51:36] samosaphile: has joined #RubyOnRails
[16:52:13] jackhum: has joined #RubyOnRails
[16:55:18] jackhum_: has joined #RubyOnRails
[17:01:06] lunarkitty7: has joined #RubyOnRails
[17:12:24] Dbugger: has joined #RubyOnRails
[17:20:39] bonhoeffer: i'm getting the "we're sorry but something went wrong" and not able to see anything in the production log, what should i check?
[17:26:25] lxsameer: has joined #RubyOnRails
[17:35:16] desperek: has joined #RubyOnRails
[17:36:06] TvL2386: has joined #RubyOnRails
[17:36:47] FernandoBasso: has joined #RubyOnRails
[17:47:46] desperek: has joined #RubyOnRails
[17:57:53] johndunn: has joined #RubyOnRails
[18:00:50] conta: has joined #RubyOnRails
[18:08:00] ur5us: has joined #RubyOnRails
[18:10:20] orbyt_: has joined #RubyOnRails
[18:12:36] benlieb: has joined #RubyOnRails
[18:13:59] mikecmpbll: has joined #RubyOnRails
[18:14:59] mtkd: has joined #RubyOnRails
[18:37:06] fmcgeough: has joined #RubyOnRails
[18:37:53] aiguuu: has joined #RubyOnRails
[18:39:14] Aherin: has joined #RubyOnRails
[18:44:38] Technodrome: has joined #RubyOnRails
[18:45:09] benlieb: has joined #RubyOnRails
[18:48:41] johndunn: has left #RubyOnRails: ()
[18:52:36] benlieb: has joined #RubyOnRails
[19:10:41] desperek: has joined #RubyOnRails
[19:27:14] lxsameer: has joined #RubyOnRails
[19:43:35] bradleyprice: has joined #RubyOnRails
[19:53:50] jasmith: has joined #RubyOnRails
[19:54:27] babykosh: has joined #RubyOnRails
[19:57:24] benlieb: has joined #RubyOnRails
[19:59:11] cagomez: has joined #RubyOnRails
[20:02:52] sirensari2: has joined #RubyOnRails
[20:08:45] ur5us: has joined #RubyOnRails
[20:11:59] benlieb: has joined #RubyOnRails
[20:21:51] za1b1tsu: has joined #RubyOnRails
[20:50:20] mtkd: has joined #RubyOnRails
[21:01:29] apeiros: has joined #RubyOnRails
[21:07:06] apeiros: has joined #RubyOnRails
[21:11:34] za1b1tsu: has joined #RubyOnRails
[21:15:22] dviola: has joined #RubyOnRails
[21:28:00] lxsameer: has joined #RubyOnRails
[21:35:38] fmcgeough: has joined #RubyOnRails
[21:36:48] benlieb: has joined #RubyOnRails
[21:49:52] za1b1tsu: has joined #RubyOnRails
[21:57:18] apeiros__: has joined #RubyOnRails
[21:58:13] za1b1tsu: has joined #RubyOnRails
[22:04:38] vedu_: has joined #RubyOnRails
[22:06:47] ur5us: has joined #RubyOnRails
[22:25:25] orbyt_: has joined #RubyOnRails
[22:26:18] lxsameer: has joined #RubyOnRails
[22:45:44] FernandoBasso: has joined #RubyOnRails
[23:17:16] Technodrome: has joined #RubyOnRails
[23:19:28] Fuzai: has joined #RubyOnRails
[23:21:57] Fuzai: how do I add a custom path to views so I can render it? <%= render 'includes/nav' %> works but if I create a modals folder and try <%= render 'modals/example' %> it get an error that it's missing
[23:27:52] benlieb: has joined #RubyOnRails
[23:35:02] Fuzai: nm I figured it out, it was a suffix error