« Back to channel list

#RubyOnRails - 23 March 2017

« Back 1 day Forward 1 day »
[00:06:04] arBmind: has joined #RubyOnRails
[00:07:21] xibalba: has joined #RubyOnRails
[00:10:20] jdm: has joined #RubyOnRails
[00:10:25] jhack: has joined #RubyOnRails
[00:10:29] jhack: has joined #RubyOnRails
[00:11:52] jkrclaro: has joined #RubyOnRails
[00:14:57] nyaa: has joined #RubyOnRails
[00:15:34] hays_: has joined #RubyOnRails
[00:15:34] hays_: has joined #RubyOnRails
[00:17:25] cagomez: has joined #RubyOnRails
[00:32:24] xibalba: has joined #RubyOnRails
[00:35:42] coatezy: has joined #RubyOnRails
[00:39:30] brent__: has joined #RubyOnRails
[00:42:02] xibalba: has joined #RubyOnRails
[00:43:34] brent__: has joined #RubyOnRails
[01:06:13] davedo321: has joined #RubyOnRails
[01:06:58] shinnya: has joined #RubyOnRails
[01:07:41] cagomez: has joined #RubyOnRails
[01:10:23] superlou: has joined #RubyOnRails
[01:11:31] irishfromua: has joined #RubyOnRails
[01:12:48] xaviergmail: has joined #RubyOnRails
[01:16:11] l4v2: has joined #RubyOnRails
[01:26:28] jaequery: has joined #RubyOnRails
[01:29:21] LBRapid: has joined #RubyOnRails
[01:29:30] roamingdog: has joined #RubyOnRails
[01:30:20] roamingdog: has joined #RubyOnRails
[01:30:41] djbkd: has joined #RubyOnRails
[01:31:05] roamingdog: has joined #RubyOnRails
[01:31:55] roamingdog: has joined #RubyOnRails
[01:32:41] roamingdog: has joined #RubyOnRails
[01:33:28] roamingdog: has joined #RubyOnRails
[01:34:19] roamingdog: has joined #RubyOnRails
[01:34:57] chopin: has joined #RubyOnRails
[01:36:01] jenrzzz: has joined #RubyOnRails
[01:36:01] jenrzzz: has joined #RubyOnRails
[01:37:20] aajjbb: has joined #RubyOnRails
[01:38:08] Pumukel: has joined #RubyOnRails
[01:39:20] chrickso: has joined #RubyOnRails
[01:44:58] Axsuul: has joined #RubyOnRails
[01:47:38] roflmyeggo: has joined #RubyOnRails
[01:59:36] Jameser: has joined #RubyOnRails
[02:02:09] cnk: has joined #RubyOnRails
[02:12:58] banisterfiend: has joined #RubyOnRails
[02:17:33] KnownSyntax: has joined #RubyOnRails
[02:18:03] Schoolmeister: has joined #RubyOnRails
[02:20:01] knight33: has joined #RubyOnRails
[02:20:01] mwlang: dminuoso: https://t.co/JP1HGkMnxQ (rendering JSON using PostgreSQL)
[02:24:13] jaequery: has joined #RubyOnRails
[02:28:26] LBRapid: has joined #RubyOnRails
[02:28:50] irishfromua: has joined #RubyOnRails
[02:29:21] cnk: mwlang: interesting. I'll have to have a look
[02:30:13] Pumukel: has joined #RubyOnRails
[02:31:01] Pumukel: has joined #RubyOnRails
[02:31:49] Pumukel: has joined #RubyOnRails
[02:32:09] irishfromua: has joined #RubyOnRails
[02:32:37] Pumukel: has joined #RubyOnRails
[02:33:25] Pumukel: has joined #RubyOnRails
[02:39:37] Jayson_Virissimo: has joined #RubyOnRails
[02:39:38] WinterBluFox: has joined #RubyOnRails
[02:44:24] davedo321: has joined #RubyOnRails
[02:45:26] pwnd_nsfw`: has joined #RubyOnRails
[02:47:13] Limix: has joined #RubyOnRails
[02:54:08] roamingdog: has joined #RubyOnRails
[03:05:59] eclecticjohny: has joined #RubyOnRails
[03:07:08] libastral: has joined #RubyOnRails
[03:09:42] jenrzzz: has joined #RubyOnRails
[03:09:42] jenrzzz: has joined #RubyOnRails
[03:16:19] justrying: has joined #RubyOnRails
[03:18:25] pickle_: has joined #RubyOnRails
[03:20:45] dblessing: has joined #RubyOnRails
[03:25:25] paradisaeidae: has joined #RubyOnRails
[03:26:52] jaequery: has joined #RubyOnRails
[03:32:41] zacts: has joined #RubyOnRails
[03:33:48] dblessing: has joined #RubyOnRails
[03:34:08] jaequery: has joined #RubyOnRails
[03:34:33] LBRapid: has joined #RubyOnRails
[03:39:34] Technodrome: has joined #RubyOnRails
[03:40:34] Derperperd: has joined #RubyOnRails
[03:41:25] rakm: has joined #RubyOnRails
[03:52:24] urkle: has joined #RubyOnRails
[03:53:34] Derperperd: has joined #RubyOnRails
[03:54:45] Derperperd: has joined #RubyOnRails
[03:57:20] psethi: has joined #RubyOnRails
[03:58:00] Or1on: has joined #RubyOnRails
[04:02:23] Derperperd: has joined #RubyOnRails
[04:08:31] Derperperd: has joined #RubyOnRails
[04:10:07] rubyonrails306: has joined #RubyOnRails
[04:11:36] thebaffoon: has joined #RubyOnRails
[04:12:10] _3dwardsharp: has joined #RubyOnRails
[04:15:04] harfangk: has joined #RubyOnRails
[04:16:49] roflmyeggo: has joined #RubyOnRails
[04:23:21] b4rbz: has joined #RubyOnRails
[04:24:39] Derperperd: has joined #RubyOnRails
[04:27:37] psethi: has joined #RubyOnRails
[04:27:57] urkle: has joined #RubyOnRails
[04:28:12] paradisaeidae__: has joined #RubyOnRails
[04:31:39] LBRapid: has joined #RubyOnRails
[04:36:39] chopin_: has joined #RubyOnRails
[04:37:49] psethi: has joined #RubyOnRails
[04:54:23] irishfromua: has joined #RubyOnRails
[04:56:15] pwnd_nsfw: has joined #RubyOnRails
[04:57:17] pankaj_: has joined #RubyOnRails
[04:57:36] pankaj_: Hello, Is anybody there?
[05:01:17] artto: has joined #RubyOnRails
[05:04:36] jdm: has joined #RubyOnRails
[05:05:43] helpa: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
[05:05:51] baweaver: wrong one, but still a good read
[05:06:04] baweaver: Anyways, just ask your question pankaj_
[05:06:06] pankaj_: Can anybody help me out?
[05:06:23] baweaver: If someone knows the answer they'll chime in
[05:06:39] pankaj_: baweaver: I am having problem with rails installation on my Linuxmint
[05:06:54] baweaver: Also no need to tag my name for every reply
[05:07:21] baweaver: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you
[05:07:30] baweaver: That should get you through setting everything up from the ground
[05:08:26] pankaj_: Thanks. If any problem arises I will contact you again.
[05:14:33] wkoszek: Which open-source Rails projects have a nicely figured out deploy model, so that I could look at it?
[05:15:19] wkoszek: I'm interested in stealing a flow for running a migration on a remote machine and having staging/prod on a separate VPSes.
[05:18:14] pankaj_: baweaver: I installed mysql package by command 'sudo apt-get install libmysqlclient-dev' but then I did 'gem install mysql2' I got errror:
[05:18:35] pankaj_: gem install mysql2
[05:18:35] pankaj_: ERROR: While executing gem ... (Gem::FilePermissionError)
[05:18:35] pankaj_: You don't have write permissions for the /var/lib/gems/2.3.0 directory.
[05:19:07] baweaver: Did you follow the steps
[05:20:32] pankaj_: Yes, the same. What do you think should I do after you read the error?
[05:21:00] zero1one0: has joined #RubyOnRails
[05:21:36] pankaj_: The thing is that I had already installed Ruby and rails previously successfully. But then I did 'bundle install' I go error in some certain gems like sqlite, debug inspector etc.
[05:22:14] keerthana: has joined #RubyOnRails
[05:23:36] pankaj_: baweaver: Hello
[05:23:55] zero1one0: has joined #RubyOnRails
[05:23:58] baweaver: follow the steps exactly from the beginning
[05:24:11] baweaver: you likely have ruby from apt-get install
[05:24:55] pankaj_: I think so. But how can I remove those old settings. It must be very tedious task.
[05:26:06] l4v2: has joined #RubyOnRails
[05:27:35] wkoszek: Before you do so, you may source ~/.profile && which gem <- whatever you get, should show you ~/.rvm/... bleh path.
[05:28:49] pankaj_: wkoszek: Out of my mind.
[05:31:14] Pumukel: has joined #RubyOnRails
[05:37:49] chagel: has joined #RubyOnRails
[05:42:50] psethi: has joined #RubyOnRails
[05:44:02] brent__: has joined #RubyOnRails
[05:44:48] armyriad: has joined #RubyOnRails
[05:59:15] jenrzzz: has joined #RubyOnRails
[05:59:15] jenrzzz: has joined #RubyOnRails
[05:59:28] dminuoso: Radar: Mmm, I dont think caching realistically applies for my case.
[05:59:36] urkle: has joined #RubyOnRails
[05:59:49] Fridtjof: has joined #RubyOnRails
[06:00:13] dminuoso: Radar: In my app it's just when a show action for a particular resource is requested. It's unlikely that you have the data cached locally anyway.
[06:00:46] dminuoso: Or does fresh_when do transparent server side caching across clients?
[06:01:55] pickle_: has joined #RubyOnRails
[06:03:07] dubalubdub: has joined #RubyOnRails
[06:04:49] Radar: dminuoso: it doesn't
[06:05:01] Radar: dminuoso: For that sort of thing I would use the json.cache blocks that jbuilder provides
[06:05:18] wkoszek_: has joined #RubyOnRails
[06:06:47] nibbo: has joined #RubyOnRails
[06:06:55] dmcc_: has joined #RubyOnRails
[06:07:13] mwlang: wkoszek: how fancy are you looking to get on your deploys?
[06:08:17] ArTiSTiX_: has joined #RubyOnRails
[06:08:48] mwlang: if you’re just doing the most typical thing, the capistrano getting started guide is pretty clear cut and well organized.
[06:08:56] sunya7a__: has joined #RubyOnRails
[06:09:08] nej: has joined #RubyOnRails
[06:09:23] fsc_: has joined #RubyOnRails
[06:09:29] funnel_: has joined #RubyOnRails
[06:12:24] cydrobolt_: has joined #RubyOnRails
[06:12:35] fedruantine: has joined #RubyOnRails
[06:12:41] ekem: has joined #RubyOnRails
[06:13:18] xMopxShell: has joined #RubyOnRails
[06:13:48] scrooloose: has joined #RubyOnRails
[06:14:20] Fridtjof: has joined #RubyOnRails
[06:30:46] lightheaded: has joined #RubyOnRails
[06:34:24] darutoko: has joined #RubyOnRails
[06:43:04] igniting: has joined #RubyOnRails
[06:48:38] jenrzzz: has joined #RubyOnRails
[06:55:33] Fridtjof: has joined #RubyOnRails
[06:55:54] lightheaded: has joined #RubyOnRails
[07:00:37] xixi_: has joined #RubyOnRails
[07:01:01] chouhoulis: has joined #RubyOnRails
[07:01:13] DoctorMonocular: has joined #RubyOnRails
[07:02:58] djgraham: has joined #RubyOnRails
[07:04:03] ErhardtMundt: has joined #RubyOnRails
[07:04:31] D9: has joined #RubyOnRails
[07:08:29] zz_timnovinger: has joined #RubyOnRails
[07:11:49] tvw: has joined #RubyOnRails
[07:14:34] mochiyoda: has joined #RubyOnRails
[07:18:27] cagomez: has joined #RubyOnRails
[07:19:20] pLaTo0n: has joined #RubyOnRails
[07:20:16] AzaToth: has joined #RubyOnRails
[07:23:01] Pumukel: has joined #RubyOnRails
[07:27:24] conta: has joined #RubyOnRails
[07:36:52] andywww: has joined #RubyOnRails
[07:42:34] lele: has joined #RubyOnRails
[07:51:58] roshanavand: has joined #RubyOnRails
[07:55:30] Andr3as: morning folks
[07:56:19] arBmind: has joined #RubyOnRails
[07:56:52] Andr3as: if the app i am building will serve 2500 users and lets say they all visit the site the same time.. i know it all depends on the coding but as a rule of thumb, how big a server would i need to serve 'em?
[08:03:31] s2013: has joined #RubyOnRails
[08:08:45] DrYockel: has joined #RubyOnRails
[08:21:30] adac: has joined #RubyOnRails
[08:21:56] Qchmqs: has joined #RubyOnRails
[08:22:30] kiltzman: has joined #RubyOnRails
[08:22:47] SanguineAnomaly: has joined #RubyOnRails
[08:23:04] mark_66: has joined #RubyOnRails
[08:26:46] doublemalt__: has joined #RubyOnRails
[08:32:45] artto: has joined #RubyOnRails
[08:39:34] antgel: has joined #RubyOnRails
[08:41:35] naftilos76: has joined #RubyOnRails
[08:41:56] Ergo: has joined #RubyOnRails
[08:42:20] jenrzzz: has joined #RubyOnRails
[08:44:37] yaw: has joined #RubyOnRails
[08:45:30] naftilos76: Hi, is it a really good idea to have a captcha on my user login sreen? I am using rails 4.2 and bcrypt which is on purpose slow (as you probably already know) so that bots are discouraged to continue hitting my login page. What do you think?
[08:46:13] pulkit4tech: has joined #RubyOnRails
[08:51:57] chagel: has joined #RubyOnRails
[08:53:18] naftilos76: Is bcrypt enough to keep robots away?
[08:58:26] dangerousdave: has joined #RubyOnRails
[08:59:28] snickers: has joined #RubyOnRails
[08:59:41] artto: has joined #RubyOnRails
[09:01:38] mikecmpbll: has joined #RubyOnRails
[09:06:32] teddysmoker: has joined #RubyOnRails
[09:15:28] Andr3as: naftilos76: i am using humanizer for that..
[09:15:37] Andr3as: it works great
[09:16:11] Andr3as: for "captcha" purposes - not on a login screen, though
[09:16:21] naftilos76: Andr3as, thanks
[09:17:02] Andr3as: i've also saw a drupal addon the other day, where they put a field on the page which is hidden by css.. if the robot fills it, they ignore the form
[09:17:11] Andr3as: this was also very effective
[09:17:28] Andr3as: as robots tend to read the page without styling they fill it, usually
[09:17:54] Andr3as: doesnt sound too complicated to implement that in rails if there isnt a gem for that anyway
[09:18:26] Andr3as: naftilos76: is that a high trafic page?
[09:18:27] jsrn_: has joined #RubyOnRails
[09:19:24] naftilos76: Andr3as, it is not a page yet :) . I am building a basic website builder.
[09:20:11] Andr3as: ah.. k.. i'm asking due to my "sizing question" above.. am really not having any experience with it
[09:20:25] Andr3as: my pages usually nobody wants to see ;)
[09:20:50] pLaTo0n: has joined #RubyOnRails
[09:21:28] artto: has joined #RubyOnRails
[09:24:41] IpyCreator: has joined #RubyOnRails
[09:26:06] mikecmpbll: does anyone use sidekiq via activejob? is it worth it? seems like the disadvantages are quite extensive
[09:26:23] mikecmpbll: https://github.com/mperham/sidekiq/wiki/Active-Job#customizing-error-handling
[09:28:42] artto: has joined #RubyOnRails
[09:29:18] patarr: has joined #RubyOnRails
[09:30:02] tbuehlmann: mikecmpbll: I do
[09:32:54] mikecmpbll: tbuehlmann : what happens with job errors?
[09:35:05] tbuehlmann: um, they are rescued
[09:36:15] mikecmpbll: by active job? is it possible to get the trace?
[09:37:08] Jameser: has joined #RubyOnRails
[09:38:47] dionysus69: has joined #RubyOnRails
[09:39:59] dminuoso: naftilos76: Googles new recaptcha is actually pretty good because it will only trigger if the user is likely to be a machine.
[09:40:34] dminuoso: Though its not exactly new anymore.
[09:46:07] Papierkorb: dminuoso: it's awful, I *always* have to click pictures
[09:46:38] Papierkorb: Rumor has it it's because I block privacy-invading tracking shit
[09:47:27] naftilos76: dminuoso, i think i will not use it for now. I will rely on fail2ban or a future ruby version of fail2ban and iptables that drops down the number of requests/sec
[09:53:53] yaw: has joined #RubyOnRails
[09:55:49] nacho_: has joined #RubyOnRails
[09:56:01] nacho_: Hi all, I have a question regarding mailers and iCalendar gem
[09:56:12] nacho_: I'm creating this event to be attached to an e-mail
[09:56:16] nacho_: And that works fine
[09:56:36] nacho_: The event is correct and if I validate it, it looks fine
[09:56:59] nacho_: However, when receiving the e-mail, I get the end of the lines \r\n
[09:57:08] nacho_: transformed to \n
[09:57:25] nacho_: I tried setting the mime type to text/calendar, application/ics
[09:57:45] nacho_: But still, apple's calendar app won't take the event because the end of line is not standard
[09:57:53] nacho_: Has anyone any experience on this before?
[09:58:45] dminuoso: Papierkorb: If you always have to click pictures it's a strong smell that there's something wrong with your computer or your network.
[09:59:39] dminuoso: Papierkorb: Or you have blacklisted *.google.com cookies
[10:00:37] lxsameer: has joined #RubyOnRails
[10:00:40] brent__: has joined #RubyOnRails
[10:00:58] dminuoso: Papierkorb: (This could happen if you implicitly configure your browser to block third-party cookies)
[10:01:07] dminuoso: In which case you would have to explicitly whitelist *.google.com
[10:02:12] Andr3as: so you have to allow them to spy on you in order to not get annoyed?
[10:02:24] Andr3as: dont be evil, eh?
[10:04:49] yaw: has joined #RubyOnRails
[10:07:46] tedwing: has joined #RubyOnRails
[10:08:07] srinidhi: has joined #RubyOnRails
[10:08:33] Papierkorb: dminuoso: Nothing's wrong with my computer or network, I just don't like being spied upon. Third-party cookies are of course blocked.
[10:10:38] Papierkorb: dminuoso: I'm not even hardcore, I don't block JS per se, just a adblocker with sane configuration
[10:15:28] Jameser: has joined #RubyOnRails
[10:16:59] pLaTo0n: has joined #RubyOnRails
[10:18:00] dionysus69: has joined #RubyOnRails
[10:18:28] doublemalt_: has joined #RubyOnRails
[10:23:43] arBmind: has joined #RubyOnRails
[10:25:21] aganov: has joined #RubyOnRails
[10:26:26] Jameser: has joined #RubyOnRails
[10:29:17] adlerdias_: has joined #RubyOnRails
[10:32:42] Jameser: has joined #RubyOnRails
[10:39:29] artto: has joined #RubyOnRails
[10:41:43] GodFather: has joined #RubyOnRails
[10:44:36] lightheaded: has joined #RubyOnRails
[10:44:37] dps: has joined #RubyOnRails
[10:45:21] Terens: has joined #RubyOnRails
[10:46:51] workmad3: has joined #RubyOnRails
[10:51:02] rikkipitt: has joined #RubyOnRails
[10:52:04] lightheaded: has joined #RubyOnRails
[10:52:51] ferr1: has joined #RubyOnRails
[10:57:10] DeusNeusEx: has joined #RubyOnRails
[10:57:35] DeusNeusEx: Hi, someone else have to success to add trumbowyg gem to her proejct ?
[10:58:49] itsgokul: has joined #RubyOnRails
[11:01:52] lightheaded: has joined #RubyOnRails
[11:04:14] KnownSyntax: has joined #RubyOnRails
[11:04:14] KnownSyntax: has joined #RubyOnRails
[11:07:49] dpsk: has joined #RubyOnRails
[11:13:09] patarr: has joined #RubyOnRails
[11:15:40] pLaToOn: has joined #RubyOnRails
[11:18:20] Qchmqs: has joined #RubyOnRails
[11:25:08] adlerdias___: has joined #RubyOnRails
[11:26:28] adlerdias__: has joined #RubyOnRails
[11:26:37] Jameser: has joined #RubyOnRails
[11:29:46] itsgokul: has joined #RubyOnRails
[11:32:07] aajjbb: has joined #RubyOnRails
[11:32:57] artto: has joined #RubyOnRails
[11:33:50] Or1on: has joined #RubyOnRails
[11:38:33] ldnunes: has joined #RubyOnRails
[11:46:02] HoierM: has joined #RubyOnRails
[11:54:14] artto: has joined #RubyOnRails
[11:54:59] lightheaded: has joined #RubyOnRails
[11:59:56] Qchmqs: has joined #RubyOnRails
[12:09:43] Schoolmeister: has joined #RubyOnRails
[12:10:15] lightheaded: has joined #RubyOnRails
[12:13:05] Fernando-Basso: has joined #RubyOnRails
[12:16:55] buckrockwell: has joined #RubyOnRails
[12:17:17] brent__: has joined #RubyOnRails
[12:20:34] marr: has joined #RubyOnRails
[12:35:51] Jameser: has joined #RubyOnRails
[12:44:22] brent__: has joined #RubyOnRails
[12:56:49] artto_: has joined #RubyOnRails
[12:58:32] ramortegui: has joined #RubyOnRails
[13:01:11] artto: has joined #RubyOnRails
[13:02:22] gamut: has joined #RubyOnRails
[13:05:55] Jameser: has joined #RubyOnRails
[13:10:36] armyriad: has joined #RubyOnRails
[13:14:55] Jameser: has joined #RubyOnRails
[13:15:27] handicraftsman: has joined #RubyOnRails
[13:19:19] buckrockwell: has joined #RubyOnRails
[13:25:21] lightheaded: has joined #RubyOnRails
[13:25:47] efy: has joined #RubyOnRails
[13:31:02] doodlehaus: has joined #RubyOnRails
[13:34:03] dionysus69: has joined #RubyOnRails
[13:34:49] DLSteve: has joined #RubyOnRails
[13:35:14] yaw: has joined #RubyOnRails
[13:38:12] keerthana: has joined #RubyOnRails
[13:39:36] tedwing: has joined #RubyOnRails
[13:42:44] lightheaded: has joined #RubyOnRails
[13:45:18] alex88: has joined #RubyOnRails
[13:45:51] knight33: has joined #RubyOnRails
[13:46:29] oded: has joined #RubyOnRails
[13:50:07] agent_white: has joined #RubyOnRails
[13:50:59] artto: has joined #RubyOnRails
[13:51:43] Jameser: has joined #RubyOnRails
[13:51:57] agent_white: Mornin' folks
[13:55:03] roflmyeggo: has joined #RubyOnRails
[13:55:28] artto: has joined #RubyOnRails
[13:57:35] yaw: has joined #RubyOnRails
[14:00:03] artto: has joined #RubyOnRails
[14:03:14] alex88: has joined #RubyOnRails
[14:05:27] chagel: has joined #RubyOnRails
[14:11:22] alex88: has joined #RubyOnRails
[14:17:20] artto: has joined #RubyOnRails
[14:18:48] dblessing: has joined #RubyOnRails
[14:20:47] dionysus69: has joined #RubyOnRails
[14:24:36] envint: has joined #RubyOnRails
[14:25:17] cpruitt: has joined #RubyOnRails
[14:26:47] artto: has joined #RubyOnRails
[14:26:51] Qchmqs: has joined #RubyOnRails
[14:27:53] cpruitt: has joined #RubyOnRails
[14:32:58] envint: has joined #RubyOnRails
[14:39:10] jdm: has joined #RubyOnRails
[14:39:42] gremly: has joined #RubyOnRails
[14:41:41] tenderlo_: has joined #RubyOnRails
[14:43:13] asdfaa: has joined #RubyOnRails
[14:45:19] asdfaa: does someone find www.railstutorial.org useful?
[14:49:16] artto: has joined #RubyOnRails
[14:52:54] artto: has joined #RubyOnRails
[14:55:07] artto_: has joined #RubyOnRails
[14:56:22] yaw: has left #RubyOnRails: ()
[14:56:25] yaw: has joined #RubyOnRails
[14:59:22] patarr: has joined #RubyOnRails
[15:00:10] pankaj_: has joined #RubyOnRails
[15:01:51] armyriad: has joined #RubyOnRails
[15:01:53] lightheaded: has joined #RubyOnRails
[15:02:20] artto: has joined #RubyOnRails
[15:06:11] lightheaded: has joined #RubyOnRails
[15:06:37] donnib: has joined #RubyOnRails
[15:07:07] donnib: i am trying to do rake db:create and i get error "Couldn't create database for..." where do i get more information what fails ?
[15:07:59] igniting: has joined #RubyOnRails
[15:08:59] donnib: has left #RubyOnRails: ()
[15:10:08] envint: has joined #RubyOnRails
[15:10:10] pankaj_: Hello Guys
[15:15:52] asfa: has joined #RubyOnRails
[15:16:53] cagomez: has joined #RubyOnRails
[15:18:36] thebaffoon: has joined #RubyOnRails
[15:25:45] cagomez: has joined #RubyOnRails
[15:27:05] envint: has joined #RubyOnRails
[15:31:42] Limix: has joined #RubyOnRails
[15:34:09] brent__: has joined #RubyOnRails
[15:36:01] snickers: has joined #RubyOnRails
[15:37:01] [Butch]: has joined #RubyOnRails
[15:38:06] froyo1: has joined #RubyOnRails
[15:39:53] froyo1: So I have two models -- Post and Comment. I'm using fragment caching to cache each post, and on the Comment model I've specified -> 'belongs_to :post, touch: true'
[15:40:13] froyo1: This works as expected. Whenever I add a new comment to a post, the cache key of that particular post expires
[15:40:37] froyo1: HOWEVER, when I delete a comment from a post, the cache key of that post doesn't expire. What gives?
[15:42:20] pankaj_: has joined #RubyOnRails
[15:43:29] pankaj_: beweaver: Hello
[15:45:04] cek: has joined #RubyOnRails
[15:45:41] cek: What's the modenr way of getting test data into DB via rspec and not via factories (too much data). I have an sql snapshot of data here.
[15:46:35] Derperperd: has joined #RubyOnRails
[15:49:32] yaw: has joined #RubyOnRails
[15:51:01] AnomalousBit: has joined #RubyOnRails
[15:53:10] artto: has joined #RubyOnRails
[15:58:07] kies: has joined #RubyOnRails
[15:59:25] pankaj_: Is anybody there?
[16:10:02] havenwood: pankaj_: yup
[16:11:49] pankaj_: havenwood: I was having problem with rails installation on linuxmint
[16:12:06] havenwood: pankaj_: What kind of problems? Is there an error?
[16:12:44] matthewd: pankaj_: !ask2ask
[16:12:44] helpa: pankaj_: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[16:13:23] artto_: has joined #RubyOnRails
[16:17:12] pankaj_: No the problem was that I had already installed rails but via get-apt. It didnot worked out for me. Gems like sqlite,debugger etc. are causing error.
[16:17:40] artto: has joined #RubyOnRails
[16:18:13] pankaj_: After that somebody suggested me a link and told not use 'get-apt' to install rails. But due to some problem in my OS I was unable to retrieve the link.
[16:18:48] brent__: is there any way to conditionally show formfields based on a select's choice?
[16:19:15] Tralin: has joined #RubyOnRails
[16:19:25] brent__: so a select dropdown inside the form, if a certain option is chosen, i want to show a couple other fields, i know this can be done with jquery, but wondering if there is any rails way to accomplish it
[16:20:28] tbuehlmann: brent__: there's nothing built-in for that
[16:21:00] brent__: tbuehlmann: okay, so jquery is the best route?
[16:21:43] tbuehlmann: if you know how to do it with jquery, sure, go for it
[16:25:05] gusrub: has joined #RubyOnRails
[16:25:07] pankaj_: Can anybody tell me how can I install rails on Linuxmint successfully?
[16:26:18] tbuehlmann: pankaj_, ryan wrote a guide for you: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[16:27:00] brent__: tbuehlmann: I do, is there a better way to handle this?
[16:27:57] tbuehlmann: no, if you are fine with jquery, do that
[16:29:19] pankaj_: tbuehlmann: Will it work successfully. Because after many attempts I am frustated with myself. Yesterday My OS cracked because of some problems.
[16:29:48] pankaj_: tbuehlmann: Thanks. I was searching for same blog.
[16:30:19] tbuehlmann: I'm using ruby-install and chruby and it works like a charm
[16:37:49] pLaTo0n: has joined #RubyOnRails
[16:41:08] oded: has joined #RubyOnRails
[16:41:23] cagomez: has joined #RubyOnRails
[16:42:02] cagomez: has joined #RubyOnRails
[16:42:55] cnk: has joined #RubyOnRails
[16:43:19] Limix: has joined #RubyOnRails
[16:43:37] pankaj_: tbuehlmann: Following error occured while updating : The following packages have unmet dependencies:
[16:43:37] pankaj_: build-essential : Depends: libc6-dev but it is not going to be installed or
[16:43:37] pankaj_: Depends: g++ (>= 4:5.2) but it is not going to be installed
[16:43:37] pankaj_: E: Unable to correct problems, you have held broken packages
[16:43:38] rakm: has joined #RubyOnRails
[16:46:08] jhfisc: has joined #RubyOnRails
[16:46:34] tbuehlmann: pankaj_: seeing this for the first time. can't help there, check google
[17:01:23] cagomez: has joined #RubyOnRails
[17:03:43] centrx: has joined #RubyOnRails
[17:04:11] srinidhi: has joined #RubyOnRails
[17:05:45] cagomez: has joined #RubyOnRails
[17:06:47] cagomez: has joined #RubyOnRails
[17:08:16] waltair: has joined #RubyOnRails
[17:13:47] chopin: has joined #RubyOnRails
[17:13:58] _djbkd: has joined #RubyOnRails
[17:14:05] envint: has joined #RubyOnRails
[17:37:03] artto: has joined #RubyOnRails
[17:38:21] cagomez: is it possible to interpolate Ruby into HTML comments?
[17:38:36] cagomez: *Ruby expression values
[17:39:37] pankaj: has joined #RubyOnRails
[17:40:49] tbuehlmann: cagomez: what?
[17:41:05] tercenya_: has joined #RubyOnRails
[17:41:36] cagomez: for example, <!-- #{myVar} -->
[17:42:07] envint: has joined #RubyOnRails
[17:43:10] tbuehlmann: sure: <!-- <%= your_var %>-->
[17:47:46] kreantos: has joined #RubyOnRails
[17:48:45] fryguy: ^^ assuming you are using erb
[17:48:59] artto: has joined #RubyOnRails
[17:50:22] kreantos: has joined #RubyOnRails
[17:52:25] kreantos: cpruitt, I've solved it now in a similar manner as you suggested
[17:52:47] marcdel: has joined #RubyOnRails
[17:53:22] kreantos: just that i created a scheduler task which does the scheduling
[17:56:55] knight33: has joined #RubyOnRails
[17:59:18] kreantos: Is there a way in ActiveJob to set the max amount of attempts?
[18:00:46] beingjohnm: I was looking at delayed_job but Heroku doesn't recommend it as it can cause strain on the databaes. They instead recommend a Redis-based queuing system. Curious if anybody had any thoughts on that?
[18:01:28] havenwood: beingjohnm: Sidekiq or Resque are quite nice, amongst others.
[18:04:32] kreantos: beingjohnm, sidekiq unfortunately only the hobbyist version is for free
[18:05:28] beingjohnm: I eventually want to move to Elastic Beanstalk as I have a bunch of AWS credits but can't focus on that now
[18:05:43] beingjohnm: whichever option would be easiest to switch is probably what I should go with
[18:06:13] artto: has joined #RubyOnRails
[18:07:30] kreantos: beingjohnm, the easiest imho is delayed_job. As this is no option, i would go for rescue
[18:11:09] defsdoor: has joined #RubyOnRails
[18:11:22] cpruitt: kreantos: Good to hear you got it sorted. As far as active job max attempts, I’m not sure. What’s the default behavior? Aborts after first failure?
[18:12:23] pwnd_nsfw: I knew installing ruby on my pi would take forever lol
[18:12:44] kreantos: delayed_job stops after 25 attempts, and with delayed job it is pretty straight forward to set on job level the max_attempts
[18:13:40] kreantos: but i can't find a setting for ActiveJob, its a pity as I thought its pretty neat to keep it abstract :-/
[18:13:50] cpruitt: kreantos: Yeah I know DJ uses max attempts but I thought I remembered activejob just trying once. Not sure. I don't use it.
[18:14:55] cpruitt: & as for sidekiq I think (don’t use it either) that most of the non-core functionality available with the paid license is also available through additional gems. Least that’s what I recall from listening to the author on a podcast once.
[18:14:55] workmad3: ActiveJob defers to the adapter
[18:14:55] kreantos: with activejob it does the default behavior of DelayedJob, cpruitt
[18:14:56] cpruitt: https://rubygems.org/search?utf8=%E2%9C%93&query=sidekiq
[18:15:35] cpruitt: kreantos: Then I’d suspect that your delayed job config would be the place to set max attempts.
[18:15:59] kreantos: and there goes the ActiveJob abstraction layer :-S
[18:16:00] Jasaka: has joined #RubyOnRails
[18:16:55] cpruitt: (which is why I dont’ use it. lol)
[18:17:25] kreantos: ha, man I think ActiveJob is really just for simple simple stuff -.-
[18:18:21] matthewd: AJ gains some retry handling in 5.1. Individual adapters are always going to have more options, though.
[18:18:22] kreantos: I loved the idea that i just can xchange the backend behind ActiveJob (e.g. switch from delayed_job to resque)
[18:18:45] Spami_: has joined #RubyOnRails
[18:18:50] Limix: has joined #RubyOnRails
[18:19:14] cpruitt: It’s a nice thought cause you can (in theory) just swap out your back end any time you want. But if the worst case is that you have to set up a new config for the back end, that doesn’t sound like that big a deal.
[18:20:56] cpruitt: kreantos: does ActJob still rquire you to start your worker processes directly or does it abstract that our too? Like, are you you still using bin/delayed_job or whatever?
[18:21:27] beingjohnm: kreantos: you can use delayed job on Heroku they just don't recommend it
[18:21:34] Spami_: has joined #RubyOnRails
[18:22:14] kreantos: Im using rake jobs:work locally and require 'capistrano/delayed_job' for capistrano
[18:23:57] cpruitt: kreantos: OK, so the thing is, you’re interacting with JelayedJob directly anyway. max_attempts is a config option for DJ. So trying to go through AJ to set it doesn’t make much sense. AJ isn’t really involved at that point. It’s DJ all the way through the process.
[18:24:22] workmad3: tbh, I find ActiveJob useful because it has a relatively simple interface and integrates with ActionMailer well for background sending... also the transparency for passing ActiveRecord objects around with GlobalID is pretty nice
[18:25:16] workmad3: changing backends isn't something I think of it for... similar to the fact that changing backends with ActiveRecord is 'possible' but almost never done, so all the practical advantages it provides are really what you use it for rather than that one rather esoteric use-case
[18:27:43] kreantos: I see, so option1 forget about ActiveJob and use DelayedJob only. option2 wait for 5.1
[18:27:47] cpruitt: workmad3: I see an advantage to having one consistent api across projects that might use various backends.
[18:28:25] workmad3: cpruitt: oh, yeah, the consistent api across projects is also good
[18:28:35] cpruitt: kreantos: Or option 3, just set up your DJ config file if activejob defers to it anyway
[18:29:02] kreantos: cpruitt, the issue whit that is, that i can't do it jobwise then
[18:29:39] cpruitt: workmad3: you want to set max attempts per individual job?
[18:29:52] gusrub: has joined #RubyOnRails
[18:29:55] duderonomy: has joined #RubyOnRails
[18:29:58] kreantos: i have jobs which need to be retried like forever, i have others, when they fail once they should never be retried
[18:30:01] cpruitt: kreantos: That last was for you
[18:31:32] cpruitt: kreantos: Hmmm…. I mean… you could manually query the jobs table & delete stuff. Or you could rescue errors and manually set failed_at for the job. I think.
[18:31:40] kreantos: with dj you can do it per job struct with a method -> def max_attempts
[18:31:41] jenrzzz: has joined #RubyOnRails
[18:31:41] jenrzzz: has joined #RubyOnRails
[18:31:46] cpruitt: Not sure about that one to be honest
[18:32:37] kreantos: cpruit, this sounds very hacky just for the sake of being able to use ActiveJob
[18:32:39] cpruitt: kreantos: Yeah, might need to wait for a rails update for that one unless you want to patch AJ somewhere
[18:32:53] cpruitt: kreantos: I’d tend to agree.
[18:34:06] cpruitt: ActiveJob is like anything else in rails. It’s fantastic as long as you’re using the tool for the use case it was meant to match. Sometimes you have problems you need to solve that the tool doesn’t (intend to) solve well. So you need to switch your tool.
[18:34:38] kreantos: hmm, i need to meditate on this
[18:36:01] kreantos: at least i have a ton of options, thinking of doing the same in java gives me the shivers
[18:37:44] dps: has joined #RubyOnRails
[18:40:30] dpsk: has joined #RubyOnRails
[18:45:53] Spami: has joined #RubyOnRails
[18:45:53] Spami: has joined #RubyOnRails
[18:48:22] lightheaded: has joined #RubyOnRails
[18:59:33] jenrzzz: has joined #RubyOnRails
[19:02:33] envint: has joined #RubyOnRails
[19:02:40] _djbkd: has joined #RubyOnRails
[19:04:47] fernandomm: has joined #RubyOnRails
[19:05:50] nyanz: has joined #RubyOnRails
[19:08:19] jenrzzz: has joined #RubyOnRails
[19:13:50] tomasm-: has joined #RubyOnRails
[19:17:17] _djbkd: has joined #RubyOnRails
[19:18:57] pLaTo0n: has joined #RubyOnRails
[19:20:05] nahtnam: has joined #RubyOnRails
[19:23:05] tedwing: has joined #RubyOnRails
[19:25:42] GodFather: has joined #RubyOnRails
[19:27:31] igniting: has joined #RubyOnRails
[19:29:35] Spami: has joined #RubyOnRails
[19:29:35] Spami: has joined #RubyOnRails
[19:36:14] cek: need to build a predictible fixture with factorygirl . Want to supply an arg to create("factory)
[19:36:27] cek: then, in factory definition, use that arg to build attrs
[19:37:32] xangria: has joined #RubyOnRails
[19:38:07] d5sx43: has joined #RubyOnRails
[19:40:41] xangria: I'm working on a project for a restaurant and they want a booking system and CMS, can you recommend some gems or API please
[19:42:11] fox_mulder_cp: Xangria: crm - i see a ads in twi with rails based cms
[19:43:05] pankaj: Can anybody work me out here with Ruby on rails?
[19:43:17] xangria: I need to implemnt cms so the owner can edit the menu everyday
[19:43:37] xangria: And a booking system so people can book through thr website
[19:44:48] brent__: has joined #RubyOnRails
[19:45:25] dionysus69: has joined #RubyOnRails
[19:45:32] adac: has joined #RubyOnRails
[19:48:01] fernandomm: has joined #RubyOnRails
[19:48:26] cagomez: has joined #RubyOnRails
[19:52:46] workmad3: has joined #RubyOnRails
[20:01:46] lxsameer: has joined #RubyOnRails
[20:02:46] tbuehlmann: depending on what you want, have a look at traits (https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#traits) or setting attributes directly: create(:model, foo: 'bar')
[20:03:11] buckrockwell: has joined #RubyOnRails
[20:08:00] pankaj: has joined #RubyOnRails
[20:15:23] Limix: has joined #RubyOnRails
[20:17:27] cagomez: has joined #RubyOnRails
[20:17:33] Rodya_: has joined #RubyOnRails
[20:32:32] meoblast001: has joined #RubyOnRails
[20:35:59] conta: has joined #RubyOnRails
[20:44:42] p8m: has joined #RubyOnRails
[20:47:36] rubyonrails758: has joined #RubyOnRails
[20:56:11] buckrockwell: has joined #RubyOnRails
[20:57:58] envint: has joined #RubyOnRails
[21:06:26] Spami: has joined #RubyOnRails
[21:06:26] Spami: has joined #RubyOnRails
[21:09:32] rubyonrails758: Hi All. I am having an issue where the same exact query takes >100ms when I run it as part of a larger method, but only 15 ms, when I run it by itself.
[21:09:36] rubyonrails758: PurchasePattern Load (106.9ms) SELECT "purchase_patterns".* FROM "purchase_patterns" WHERE "purchase_patterns"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]]
[21:09:56] rubyonrails758: PurchasePattern Load (15.8ms) SELECT "purchase_patterns".* FROM "purchase_patterns" WHERE "purchase_patterns"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
[21:10:12] birolsenturk: has joined #RubyOnRails
[21:10:25] rubyonrails758: This is causing my program (top line) to be excruciatingly slow.
[21:16:06] envint: has joined #RubyOnRails
[21:20:26] sunya7a: has joined #RubyOnRails
[21:21:39] d5sx43: has joined #RubyOnRails
[21:29:36] rubyonrails758: RE my question above, these are all being produced by ActiveRecord
[21:31:11] GodFather: has joined #RubyOnRails
[21:32:28] buckrockwell: has joined #RubyOnRails
[21:38:25] _djbkd: has joined #RubyOnRails
[21:39:24] CGibsonmm: has joined #RubyOnRails
[21:41:31] fryguy: rubyonrails758: is it always the same method generating the same timing?
[21:43:00] fryguy: rubyonrails758: do you see similar performance characterstics when running each query directly using your RDBMS client? does exploring your query plan show anything interestingly different between the 2 queries? Is there disk caching in place?
[21:43:07] Technodrome: has joined #RubyOnRails
[21:44:11] workmad3: has joined #RubyOnRails
[21:49:03] CGibsonmm: has joined #RubyOnRails
[21:49:23] aajjbb: has joined #RubyOnRails
[21:51:03] DoctorMonocular: rubyonrails758: also wondering about what fryguy asked, and am curious about the contents of the slow method
[21:51:52] arBmind: has joined #RubyOnRails
[21:55:40] Rodya_: has joined #RubyOnRails
[22:00:55] Rodya__: has joined #RubyOnRails
[22:01:07] mikecmpbll: has joined #RubyOnRails
[22:02:42] roamingdog: has joined #RubyOnRails
[22:02:43] Radar: dminuoso: https://github.com/pat/json_template_benchmarking/blob/master/OUTPUT.markdown
[22:02:47] Radar: This is what I was trying to think of yesterday.
[22:06:27] rikkipitt: has joined #RubyOnRails
[22:14:16] d5sx43: has joined #RubyOnRails
[22:14:46] fox_mulder_cp: i'm go to sleep.
[22:15:23] dminuoso: Radar: This is interesting, seems to indicate that jbuilder is still the fastest solution.
[22:16:13] dminuoso: Radar: Though it's mildly amusing that even in case of my frontend components are usually functions or objects.
[22:17:41] Technodrome: has joined #RubyOnRails
[22:21:10] Flwyd: has joined #RubyOnRails
[22:21:59] catbusters: has joined #RubyOnRails
[22:29:50] srinidhi: has joined #RubyOnRails
[22:36:54] doodlehaus: has joined #RubyOnRails
[22:37:24] Limix: has joined #RubyOnRails
[22:44:55] Rodya_: has joined #RubyOnRails
[22:45:17] Jayson_Virissimo: has joined #RubyOnRails
[22:46:16] Technodrome: has joined #RubyOnRails
[22:51:51] hahuang61: has joined #RubyOnRails
[22:54:12] nahtnam: has joined #RubyOnRails
[22:55:10] hays: has joined #RubyOnRails
[22:56:05] ahrs: has joined #RubyOnRails
[22:58:16] agent_white: has joined #RubyOnRails
[22:59:08] jhfisc: has joined #RubyOnRails
[23:03:59] roamingdog: has joined #RubyOnRails
[23:05:12] mecnun_c: has joined #RubyOnRails
[23:06:53] doublemalt_: has joined #RubyOnRails
[23:06:57] Spami: has joined #RubyOnRails
[23:06:57] Spami: has joined #RubyOnRails
[23:10:05] rakm: has joined #RubyOnRails
[23:19:22] zeddan: has joined #RubyOnRails
[23:22:26] bronson_: has joined #RubyOnRails
[23:25:24] quazimodo: has joined #RubyOnRails
[23:29:31] dps: has joined #RubyOnRails
[23:30:24] cagomez: has joined #RubyOnRails
[23:30:46] tomasm-: has joined #RubyOnRails
[23:33:12] cagomez_: has joined #RubyOnRails
[23:34:51] pankaj: has joined #RubyOnRails
[23:35:08] byteflame: has joined #RubyOnRails
[23:38:14] roamingdog: has joined #RubyOnRails
[23:39:00] Limix: has joined #RubyOnRails
[23:41:02] wkoszek_: Do you guys know any Rails apps that are both open-source and have an active team that runs them as SaaS? (example: Discourse is an example)
[23:41:27] wkoszek_: I'm looking for good patterns for running migrations in production, once you have some clients' data inside of your app.
[23:47:37] Rodya_: has joined #RubyOnRails
[23:50:16] eclm: has joined #RubyOnRails
[23:58:17] Radar: wkoszek_: gitlab?