« Back to channel list

#RubyOnRails - 25 January 2018

« Back 1 day Forward 1 day »
[00:01:55] bholzer: has joined #RubyOnRails
[00:05:20] bholzer: I have a question about a design issue I'm having. I am creating a new model that acts as a composable way to group some things together. I want an existing model to be able to behave as though it is an instance of the new model. How might this be done?
[00:18:55] LateralO1: has joined #RubyOnRails
[00:30:36] dogweather: has joined #RubyOnRails
[00:38:21] tcopeland: has joined #RubyOnRails
[00:57:37] bronson: has joined #RubyOnRails
[01:06:39] camfowler: has joined #RubyOnRails
[01:07:34] gambl0re: has joined #RubyOnRails
[01:13:44] fugee: has joined #RubyOnRails
[01:16:02] mices: i'm trying to debug a gem, it was using attr_accesible i replaced it with strong params but now even though there's a post model and post object a form_for @post in my form Action Controller returns undefined for post_params
[01:16:36] mices: i have post_params defined in the posts controller
[01:26:10] andrew91841: has joined #RubyOnRails
[01:29:04] mtkd: has joined #RubyOnRails
[01:48:57] DTZUZO: has joined #RubyOnRails
[01:56:16] mices: has joined #RubyOnRails
[01:56:27] mices: o nevermind i found my mistake
[01:56:37] mices: stupid sh#t
[02:03:26] alfiemax: has joined #RubyOnRails
[02:03:30] jottr_: has joined #RubyOnRails
[02:19:30] LateralOctober: has joined #RubyOnRails
[02:22:53] bga57: has joined #RubyOnRails
[02:57:42] jottr_: has joined #RubyOnRails
[02:58:48] bronson: has joined #RubyOnRails
[03:02:21] aguestuser: has joined #RubyOnRails
[03:09:01] crankharder: has joined #RubyOnRails
[03:12:00] ahrs: has joined #RubyOnRails
[03:17:48] JBrickley: has joined #RubyOnRails
[03:17:55] darkhanb: has joined #RubyOnRails
[03:22:37] jottr_: has joined #RubyOnRails
[03:34:08] mtkd: has joined #RubyOnRails
[03:48:49] nso95: has joined #RubyOnRails
[03:49:10] nso95: has left #RubyOnRails: ()
[03:50:35] workmad3: has joined #RubyOnRails
[03:53:30] crankharder: has joined #RubyOnRails
[03:54:12] jottr_: has joined #RubyOnRails
[03:59:34] bronson: has joined #RubyOnRails
[04:05:55] fryguy: has joined #RubyOnRails
[04:13:34] GodFather: has joined #RubyOnRails
[04:20:05] LateralO1: has joined #RubyOnRails
[04:39:59] jottr_: has joined #RubyOnRails
[04:46:57] thejamespinto: has joined #RubyOnRails
[04:56:41] choke: has joined #RubyOnRails
[05:11:25] JusticeFries: has joined #RubyOnRails
[05:17:48] crankharder: has joined #RubyOnRails
[05:23:10] xuyuheng: has joined #RubyOnRails
[05:24:45] xuyuheng: has joined #RubyOnRails
[05:26:32] xuyuheng: has joined #RubyOnRails
[05:30:55] srinidhi: has joined #RubyOnRails
[05:34:00] jottr_: has joined #RubyOnRails
[05:39:09] blackcross: has joined #RubyOnRails
[05:51:01] xuyuheng: has joined #RubyOnRails
[05:51:26] workmad3: has joined #RubyOnRails
[06:00:10] rrichardsr3: has joined #RubyOnRails
[06:00:36] bronson: has joined #RubyOnRails
[06:01:36] GodFather: has joined #RubyOnRails
[06:11:34] Dimik: has joined #RubyOnRails
[06:11:59] jottr_: has joined #RubyOnRails
[06:14:28] xuyuheng_: has joined #RubyOnRails
[06:20:41] LateralOctober: has joined #RubyOnRails
[06:20:46] Axsuul: has joined #RubyOnRails
[06:27:25] darkhanb: has joined #RubyOnRails
[06:31:53] conta: has joined #RubyOnRails
[06:32:36] KeyJoo: has joined #RubyOnRails
[06:40:51] darkhanb: has joined #RubyOnRails
[06:48:10] s2013: has joined #RubyOnRails
[06:57:57] roshanavand: has joined #RubyOnRails
[06:58:45] captainfantastic: has joined #RubyOnRails
[06:59:24] darkhanb: has joined #RubyOnRails
[07:00:13] captainfantastic: Hi I'm a beginner learning Rails. Rail has a nice builtin validation methods for models, but it's showing generic error messages like `email is not valid`. How to add custom messages without manually writing validation methods?
[07:06:03] jottr_: has joined #RubyOnRails
[07:06:55] xuyuheng_: has joined #RubyOnRails
[07:19:38] jottr_: has joined #RubyOnRails
[07:23:14] baweaver: captainfantastic: http://guides.rubyonrails.org/active_record_validations.html#message
[07:23:44] baweaver: The guides are pretty descriptive, they'll help a lot in finding things while you're getting started.
[07:36:14] conta: has joined #RubyOnRails
[07:43:01] mtkd: has joined #RubyOnRails
[07:45:11] noocx: has joined #RubyOnRails
[07:50:05] noocx: gem install bundler --no-rdoc --no-ri ERROR: Loading command: install (LoadError) cannot load such file -- zlib ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass
[07:50:28] noocx: have you got any idea why? zlib, zlib-dev install, its amazon 2 linux, 2.4 ruby
[07:50:38] noocx: installed*
[07:50:59] noocx: ahh and rvm
[07:51:52] noocx: ok working now
[07:52:01] noocx: needed to recompile ruby after zlib install
[07:52:15] workmad3: has joined #RubyOnRails
[07:55:22] gambl0re: has joined #RubyOnRails
[07:57:43] hammer065: has joined #RubyOnRails
[08:01:29] jottr_: has joined #RubyOnRails
[08:01:33] bronson: has joined #RubyOnRails
[08:16:06] loveablelobster: has joined #RubyOnRails
[08:16:13] loveablelobster: has left #RubyOnRails: ()
[08:21:16] LateralO1: has joined #RubyOnRails
[08:35:03] srinidhi: has joined #RubyOnRails
[08:55:27] jottr_: has joined #RubyOnRails
[09:14:29] captainfantastic: baweaver: thanks for the link. I ended up writing custom validations like is_blank and added custom error messages. it is working now, but is it an acceptable way?
[09:18:09] xuyuheng_: has joined #RubyOnRails
[09:27:29] ur5us: has joined #RubyOnRails
[09:30:43] s2013: has joined #RubyOnRails
[09:31:15] za1b1tsu: has joined #RubyOnRails
[09:43:32] uksio: has joined #RubyOnRails
[09:44:09] chavdardimitrov: has joined #RubyOnRails
[09:46:13] DrYockel: has joined #RubyOnRails
[09:51:19] AzaToth: has joined #RubyOnRails
[09:52:01] jottr_: has joined #RubyOnRails
[09:53:09] workmad3: has joined #RubyOnRails
[10:03:08] bronson: has joined #RubyOnRails
[10:04:19] s2013: has joined #RubyOnRails
[10:07:24] xuyuheng_: has joined #RubyOnRails
[10:10:54] marr: has joined #RubyOnRails
[10:21:31] arBmind: has joined #RubyOnRails
[10:21:54] LateralOctober: has joined #RubyOnRails
[10:25:26] funnel: has joined #RubyOnRails
[10:28:23] xuyuheng_: has joined #RubyOnRails
[10:29:09] kapil___: has joined #RubyOnRails
[10:29:48] Cavallari: has joined #RubyOnRails
[10:38:39] fumk: has joined #RubyOnRails
[10:43:27] xuyuheng_: has joined #RubyOnRails
[10:46:13] jottr_: has joined #RubyOnRails
[11:03:58] alfiemax: has joined #RubyOnRails
[11:08:37] loveablelobster: has joined #RubyOnRails
[11:13:17] _aeris_: has joined #RubyOnRails
[11:17:25] xuyuheng_: has joined #RubyOnRails
[11:19:13] jottr_: has joined #RubyOnRails
[11:20:50] lunarkitty7: has joined #RubyOnRails
[11:28:21] ur5us: has joined #RubyOnRails
[11:34:29] noocx: has joined #RubyOnRails
[11:37:39] Ergo: has joined #RubyOnRails
[11:41:19] apparition: has joined #RubyOnRails
[11:46:13] aiguuu: has joined #RubyOnRails
[11:53:56] workmad3: has joined #RubyOnRails
[12:04:05] bronson: has joined #RubyOnRails
[12:08:32] jottr_: has joined #RubyOnRails
[12:10:25] xhoy: has joined #RubyOnRails
[12:17:41] za1b1tsu: has joined #RubyOnRails
[12:21:41] mtkd: has joined #RubyOnRails
[12:22:26] LateralO1: has joined #RubyOnRails
[12:23:39] apparition: has joined #RubyOnRails
[12:55:13] apeiros: has joined #RubyOnRails
[13:08:59] malsagxulo: has joined #RubyOnRails
[13:20:11] s2013: has joined #RubyOnRails
[13:29:22] Cavallari1: has joined #RubyOnRails
[13:53:46] DTZUZO: has joined #RubyOnRails
[13:54:47] workmad3: has joined #RubyOnRails
[13:56:51] alfiemax: has joined #RubyOnRails
[14:03:15] loveablelobster: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[14:05:00] bronson: has joined #RubyOnRails
[14:16:30] JusticeFries: has joined #RubyOnRails
[14:24:19] quazimodo: has joined #RubyOnRails
[14:26:56] mtkd: has joined #RubyOnRails
[14:33:17] apeiros: has joined #RubyOnRails
[14:50:00] apparition: has joined #RubyOnRails
[14:50:25] keegnotrub: has joined #RubyOnRails
[14:55:57] malsagxulo: has joined #RubyOnRails
[14:58:47] trautwein: has joined #RubyOnRails
[14:58:57] moei: has joined #RubyOnRails
[15:02:25] JusticeFries: has joined #RubyOnRails
[15:14:04] ahrs: has joined #RubyOnRails
[15:18:27] thejamespinto: has joined #RubyOnRails
[15:24:43] alfiemax_: has joined #RubyOnRails
[15:33:37] thejamespinto: has joined #RubyOnRails
[15:35:23] za1b1tsu: has joined #RubyOnRails
[15:43:30] rikkipitt: has joined #RubyOnRails
[15:46:10] Raffy: has joined #RubyOnRails
[15:46:26] Raffy: Hi everyone
[15:47:35] Raffy: do you know a good web hosting company with unmetered storage and bandwith ?
[15:48:00] Raffy: I need to be able to choose my ruby and rails version and have imagemagik supported
[15:55:35] workmad3: has joined #RubyOnRails
[15:56:58] alfiemax: has joined #RubyOnRails
[15:57:31] fryguy: Raffy: are you looking to colocate a server, rent a server, or do dynamic infrastructure?
[15:58:09] Raffy: i am looking for a very simple solution like shared hosting or PaaS
[15:59:13] Raffy: dynamic is going to be too expansive because i need to store a lot of photos (at least 1 TB)
[16:00:33] Raffy: and i don't want to administrate the server myself
[16:04:12] fryguy: yah i have no suggestions for that
[16:06:30] bronson: has joined #RubyOnRails
[16:08:49] jottr_: has joined #RubyOnRails
[16:15:48] kapil___: has joined #RubyOnRails
[16:15:58] rikkipitt: has joined #RubyOnRails
[16:16:45] rikkipitt: has joined #RubyOnRails
[16:17:37] rikkipitt: has joined #RubyOnRails
[16:18:20] rikkipitt: has joined #RubyOnRails
[16:19:10] rikkipitt: has joined #RubyOnRails
[16:24:52] troys: has joined #RubyOnRails
[16:27:49] epochwolf: Raffy: unmetered simply means they don't have listed limits and if you use more resources than their other customers, they'll likely just lock your account and tell you to find another host.
[16:29:00] rikkipitt: has joined #RubyOnRails
[16:29:29] Raffy: yes but as soon as you don't abuse, it is ok i think. I won't use for personnal storage, all images will be linked to the website
[16:31:03] rikkipitt: has joined #RubyOnRails
[16:33:50] morfin: do you use CarrierWave for attachments on s3?
[16:34:19] alfiemax: has joined #RubyOnRails
[16:34:24] morfin: i remember it could upload files with aws gem
[16:39:02] dionysus69: has joined #RubyOnRails
[16:39:15] DTZUZO: has joined #RubyOnRails
[16:42:06] blackcross: has joined #RubyOnRails
[16:44:21] uks: has joined #RubyOnRails
[16:44:56] stacktracer: has joined #RubyOnRails
[16:47:10] [Butch]: has joined #RubyOnRails
[16:48:45] dviola: has joined #RubyOnRails
[16:50:25] roshanavand: has joined #RubyOnRails
[16:51:01] stacktracer: anyone here hiring desperate people lol
[16:53:10] Raffy: has joined #RubyOnRails
[16:53:21] Axsuul: has joined #RubyOnRails
[17:02:46] jottr_: has joined #RubyOnRails
[17:02:50] one_zero: has joined #RubyOnRails
[17:11:05] cgfbee: has joined #RubyOnRails
[17:13:19] quarters: has joined #RubyOnRails
[17:24:12] alfiemax: has joined #RubyOnRails
[17:24:43] aiguuu: has joined #RubyOnRails
[17:33:19] orbyt_: has joined #RubyOnRails
[17:34:11] choke: has joined #RubyOnRails
[17:34:15] darkhanb: has joined #RubyOnRails
[17:56:25] workmad3: has joined #RubyOnRails
[17:56:46] jottr_: has joined #RubyOnRails
[18:07:02] helpa-bot: has joined #RubyOnRails
[18:07:21] bronson: has joined #RubyOnRails
[18:09:01] helpa: has joined #RubyOnRails
[18:22:54] tcopeland: VPS at digital ocean
[18:27:48] Raffy: you deploy with capistrano?
[18:29:43] kies: has joined #RubyOnRails
[18:30:48] Raffy: what is the minimum droplet to choose?
[18:31:52] andrew91841: has joined #RubyOnRails
[18:32:57] jottr_: has joined #RubyOnRails
[18:36:20] workmad3: has joined #RubyOnRails
[18:39:58] fryguy: our companies stuff is in AWS
[18:43:38] desperek: has joined #RubyOnRails
[18:44:56] Raffy: can we use sidekiq on aws or do ?
[18:48:33] workmad3: has joined #RubyOnRails
[18:49:06] fryguy: you can do anything on aws
[18:49:17] fryguy: well, most things
[18:53:15] lupine: I can think of a few things you can't :D
[18:53:21] lupine: confidentiality innit
[18:53:35] Raffy: ok thanks
[18:54:45] s2013: has joined #RubyOnRails
[18:55:15] Raffy: digitalocean looks cheaper
[18:56:31] Axsuul: has joined #RubyOnRails
[19:01:17] choke: has joined #RubyOnRails
[19:01:33] tcopeland: their new pricing is pretty sweet
[19:02:32] tcopeland: sorry Raffy I missed your earlier message… yup I use capistrano to deploy. I’ve got a $40/month droplet which is probably overkill for the 3-4 apps I have on there, but, hey
[19:07:08] Axsuul: has joined #RubyOnRails
[19:07:29] inanepenguin: has joined #RubyOnRails
[19:11:05] choke: has joined #RubyOnRails
[19:15:58] jottr_: has joined #RubyOnRails
[19:18:00] alfiemax: has joined #RubyOnRails
[19:18:24] arBmind: has joined #RubyOnRails
[19:20:12] Axsuul: has joined #RubyOnRails
[19:24:21] Dimik: has joined #RubyOnRails
[19:28:26] JusticeFries: has joined #RubyOnRails
[19:30:50] jottr_: has joined #RubyOnRails
[19:32:14] mtkd: has joined #RubyOnRails
[19:38:00] conta: has joined #RubyOnRails
[19:38:43] sagax: has joined #RubyOnRails
[20:02:02] mices: has joined #RubyOnRails
[20:02:38] mices: has anyone tried using blogit gem
[20:08:06] bronson: has joined #RubyOnRails
[20:09:44] jottr_: has joined #RubyOnRails
[20:12:30] ur5us: has joined #RubyOnRails
[20:16:32] mtkd: has joined #RubyOnRails
[20:19:35] GodFather: has joined #RubyOnRails
[20:26:26] apeiros: has joined #RubyOnRails
[20:26:52] Aherin: has joined #RubyOnRails
[20:30:27] NoGodDamnIdea: has joined #RubyOnRails
[20:37:31] jottr_: has joined #RubyOnRails
[20:38:40] sameerynho: has joined #RubyOnRails
[20:39:03] orbyt_: has joined #RubyOnRails
[20:40:19] alfiemax: has joined #RubyOnRails
[20:40:33] inanepenguin: has joined #RubyOnRails
[20:43:06] gambl0re: has joined #RubyOnRails
[20:56:37] za1b1tsu: has joined #RubyOnRails
[20:57:56] apeiros: has joined #RubyOnRails
[21:08:16] jottr_: has joined #RubyOnRails
[21:09:09] bronson: has joined #RubyOnRails
[21:14:17] jottr_: has joined #RubyOnRails
[21:22:18] za1b1tsu: Strings pass this validation: validates :archived, inclusion: { in: [true, false] }
[21:22:31] za1b1tsu: anyone I can validates only boolean?
[21:32:51] Raffy: maybe try with [true, false].include? var
[21:33:16] za1b1tsu: wanted to use a standard validation
[21:33:26] za1b1tsu: 'validates', turns out it's a useless test
[21:33:43] za1b1tsu: since non-boolean values get converted to boolean values. So I need a custom one
[21:34:01] Raffy: you can use lambda if you want
[22:02:02] jottr_: has joined #RubyOnRails
[22:10:05] bronson: has joined #RubyOnRails
[22:13:15] jottr_: has joined #RubyOnRails
[22:20:35] quazimodo: has joined #RubyOnRails
[22:21:18] mtkd: has joined #RubyOnRails
[22:22:51] chavdardimitrov: has joined #RubyOnRails
[22:28:35] NoGodDamnIdea: has joined #RubyOnRails
[22:33:08] kapil___: has joined #RubyOnRails
[22:44:52] hahuang65: has joined #RubyOnRails
[22:48:38] DTZUZO: has joined #RubyOnRails
[23:00:10] camfowler: has joined #RubyOnRails
[23:01:50] camfowler: has joined #RubyOnRails
[23:10:46] bronson: has joined #RubyOnRails
[23:13:36] jottr_: has joined #RubyOnRails
[23:19:03] alfiemax: has joined #RubyOnRails
[23:27:04] zzj: has joined #RubyOnRails
[23:31:59] fschuindt: has joined #RubyOnRails
[23:34:27] fschuindt: What's up folks? Ya'll doing good? Just a question about a company called Rockstar Coders. Any one here with something relevant to share? I think I will be on a core position (not freelancer) working to them soon. Any good/bad experiences here?
[23:46:20] baweaver: The name doesn't inspire confidence, but I haven't worked with them. Check Glassdoor and other sites and see what you can find.
[23:47:35] Disavowed: I'm fascinated by the notion that they have the top 1% whilst charging under market rates to the client! I guess the answer lies somewhere between VCs and 'Bubble
[23:47:50] baweaver: was about to comment on the rates as well
[23:47:53] Disavowed: But still, it's interesting. Let us know how you get on with them fschuindt
[23:48:16] baweaver: If they're truly 1% and best of the best then 100+/hr would not be unusual.
[23:48:19] Disavowed: baweaver: Glad it wasn't just me who noticed that!
[23:50:03] Disavowed: I don't live in America but Bay Area contractor rates could easily be double that I'd imagine
[23:51:27] baweaver: Take an annual salary of 150k for a Senior developer in the bay (mid-range), divide that by 2000 (hours working / year rough), and add 50% overhead (insurance, expenses, etc)
[23:51:54] baweaver: that'd give you the low end
[23:52:20] baweaver: most freelancers don't work that 2000 hours, so keep that in mind
[23:52:34] Disavowed: Just ran some numbers. Eye-watering!
[23:53:12] baweaver: A 1% rockstar I'd qualify as a Principal Eng at a Google level, which would net over 500k in salary with options
[23:53:16] Disavowed: Even worse with big 4; a YouTube mate makes 100K in options alone
[23:53:29] baweaver: remember those are base salaries
[23:53:47] baweaver: In SF it's not unusual to get that 150k + 50k option/stock/bonus
[23:53:57] Disavowed: Level 7 maybe but I think generally software engineers are a little lower than tht
[23:54:03] Disavowed: Not worked there though
[23:54:11] Disavowed: Yeah all told he's pulling 250K I think
[23:54:15] Disavowed: Which is mad when you think about it
[23:54:53] baweaver: Admittedly I earn more than that in options
[23:54:58] baweaver: and I'm in the bay area.
[23:56:40] Disavowed: Oh nice! Big 4?
[23:56:45] Disavowed: (you don't have to answer that, obviously)
[23:56:53] Disavowed: Also, is rent as horrific as I imagine?
[23:58:29] baweaver: Na, Square.
[23:59:00] baweaver: I pay ~3000 on a home loan a month, but 600 is tax so it's effectively 2400 or so
[23:59:01] Disavowed: didn't know they were Rails
[23:59:12] baweaver: Rails, Ember, Go, and Java.
[23:59:25] Disavowed: Did not know that! As usual, you're a fascinating insight
[23:59:49] baweaver: They're also perpetually hiring