« Back to channel list

#RubyOnRails - 19 December 2015

« Back 1 day Forward 1 day »
[00:00:00] taxen: isn't the view irrelevant
[00:01:37] Papierkorb: apparently it does not do what you want
[00:01:47] taxen: Papierkorb: true :)
[00:01:52] matthewd: taxen: If you're not passing it inside the users hash, why do you expect it to end up in there?
[00:02:11] taxen: matthewd: because somehow email ends up there
[00:02:24] pawnbox: has joined #RubyOnRails
[00:02:31] matthewd: Then you probably need to understand what that "somehow" is
[00:02:41] matthewd: It might reveal why password misses out
[00:02:42] taxen: matthewd: im new to rails
[00:03:59] matthewd: I'm 95% sure that doesn't happen unless your code tells it to
[00:06:02] taxen: matthewd: you were right - wrapping it inside a user hash did it
[00:06:13] ElFerna: has joined #RubyOnRails
[00:06:24] taxen: still no idea why email would show up with the other way I had it though
[00:07:03] matthewd: taxen: There is indeed an option that automatically pushes the top params down, as you see happening for email... so your controller can do the railsy thing and use params[:user], while your external API uses top level parameters
[00:07:27] taxen: matthewd: ahh, that explains it
[00:07:36] taxen: thank you for your help
[00:07:42] matthewd: I don't remember what it's called, but when properly configured, it will only do so with attributes that exist on the model
[00:08:07] matthewd: (and presumably 'password' doesn't actually exist... the DB column's likely secure_password or something)
[00:08:54] matthewd: If you care about the API, you should be able to find that setting, and tell it to push password down too... or just grab the value straight from params[:password]
[00:09:39] taxen: yeah, building my own hash and grabbing the values straight from params worked, but is that really the right/safe way to go about it?
[00:10:22] nyaa: has joined #RubyOnRails
[00:12:52] dfwqdfui2342: has joined #RubyOnRails
[00:13:40] quazimodo: has joined #RubyOnRails
[00:13:52] hardtail: has joined #RubyOnRails
[00:16:34] pontiki: taxen: the parameters hash is constructed based on the how the form fields are named
[00:16:58] syzygy_: has joined #RubyOnRails
[00:17:20] pontiki: the standard way rails creates a form in `form_for` wraps them in an entry like you're seeing with User fields in a subhash in the main params hash
[00:18:37] pontiki: if you look at the HTML that is generated, you'll see field names like "user[email]" for example
[00:20:29] kies^: has joined #RubyOnRails
[00:22:13] wethu: has joined #RubyOnRails
[00:24:15] Oliphaunte: has joined #RubyOnRails
[00:26:20] _Tariq: has joined #RubyOnRails
[00:26:25] pwnd_nsfw: Rails 5 beta woot
[00:29:24] dfwqdfui2342: has joined #RubyOnRails
[00:31:18] dfwqdfui2342: has left #RubyOnRails: ()
[00:31:56] pawnbox: has joined #RubyOnRails
[00:34:20] hardtail: has anyone redirected a domain from go daddy to their heroku app? I followed the guide and added the domain in the CLI and added the CNAME to my app. it still does not point to the app. what did I do wrong?
[00:36:55] jessemcgilallen: has joined #RubyOnRails
[00:38:35] ElFerna: has joined #RubyOnRails
[00:39:57] jottr: has joined #RubyOnRails
[00:40:43] pwnd_nsfw: Hardtail, pointed www.domainname.com
[00:40:48] pwnd_nsfw: instead of just domain.com?
[00:42:22] hardtail: pwnd_nsfw yes in the Terminal I added the domain with www.
[00:46:16] pwnd_nsfw: But.. did you add the cname that states such
[00:47:16] hardtail: it propagated for a day and now just shows the domain parked at godaddy
[00:47:37] alex88: has joined #RubyOnRails
[00:47:58] pontiki: check the DNS entry itself
[00:51:09] hardtail: hi pontiki. do you mean this? http://imgur.com/WWH1XgU
[00:53:37] VeryBewitching: has joined #RubyOnRails
[00:54:45] tuelz: has joined #RubyOnRails
[00:56:10] dfwqdfui2342: has joined #RubyOnRails
[01:00:49] NBarnes: has joined #RubyOnRails
[01:00:49] AzaToth: has joined #RubyOnRails
[01:01:32] pawnbox: has joined #RubyOnRails
[01:01:33] brupm: has joined #RubyOnRails
[01:02:22] nyaa: has joined #RubyOnRails
[01:04:40] blackhuey: has joined #RubyOnRails
[01:05:36] superlou: has joined #RubyOnRails
[01:11:41] snowy: has joined #RubyOnRails
[01:12:43] shibabu: has joined #RubyOnRails
[01:13:53] chouhoulis: has joined #RubyOnRails
[01:14:03] stannard: has joined #RubyOnRails
[01:23:09] indiebrain: has joined #RubyOnRails
[01:25:23] sucks: has joined #RubyOnRails
[01:25:58] rgtk: has joined #RubyOnRails
[01:28:50] mib_mib: has joined #RubyOnRails
[01:29:12] mib_mib: hi is there any way to turn off datetime parsing for a query? its super fucking slow
[01:31:55] roshanavand: has joined #RubyOnRails
[01:32:09] hendricius: i want to find similar users in my database, based on which tv shows they liked
[01:32:17] hendricius: is that possible with sql? :D
[01:32:53] Oliphaunte: has joined #RubyOnRails
[01:33:15] one_zero: has joined #RubyOnRails
[01:34:18] IrishGringo: has joined #RubyOnRails
[01:34:38] idefine: has joined #RubyOnRails
[01:35:44] williamcage: has joined #RubyOnRails
[01:37:01] blackmesa: has joined #RubyOnRails
[01:38:57] cassioscabral: has joined #RubyOnRails
[01:41:13] pawnbox: has joined #RubyOnRails
[01:45:01] alex88: has joined #RubyOnRails
[01:46:38] rickmasta: has joined #RubyOnRails
[01:47:30] RegulationD: has joined #RubyOnRails
[01:48:16] dandaman: has joined #RubyOnRails
[01:53:25] upsell5: has joined #RubyOnRails
[01:55:14] tuelz: has joined #RubyOnRails
[02:01:20] lele: has joined #RubyOnRails
[02:07:56] moeabdol: has joined #RubyOnRails
[02:08:01] shanemcd: has joined #RubyOnRails
[02:09:03] djbkd: has joined #RubyOnRails
[02:11:02] ElFerna: has joined #RubyOnRails
[02:12:38] Miron_: has joined #RubyOnRails
[02:16:18] chouhoulis: has joined #RubyOnRails
[02:17:21] shibabu: has joined #RubyOnRails
[02:20:56] pawnbox: has joined #RubyOnRails
[02:21:34] yoshie902a: has joined #RubyOnRails
[02:31:22] roshanavand: has joined #RubyOnRails
[02:32:31] atomical_: has joined #RubyOnRails
[02:33:45] yoshie902a: I am trying to pass an array of hashes to another controller, see here http://pastie.org/10640865 I am not sure the best way to do this. any advice?
[02:33:56] yoshie902a: controller= controller action
[02:34:16] nyaa: has joined #RubyOnRails
[02:37:50] fryguy: yoshie902a: consider using cookies or session
[02:38:24] DLSteve: has joined #RubyOnRails
[02:39:29] dandaman1: has joined #RubyOnRails
[02:40:41] jottr: has joined #RubyOnRails
[02:41:52] blackmesa: has joined #RubyOnRails
[02:42:31] yoshie902a: fryguy: is using a class variable a bad idea?
[02:42:46] FailBit: very much so
[02:45:22] FailBit: http://lifehacker.com/you-can-break-into-a-linux-system-by-pressing-backspace-1748370796
[02:45:44] nyaa: has joined #RubyOnRails
[02:46:39] dkam: has joined #RubyOnRails
[02:50:38] pawnbox: has joined #RubyOnRails
[02:51:43] idefine: has joined #RubyOnRails
[02:57:10] _Tariq: has joined #RubyOnRails
[02:58:10] tuelz: has joined #RubyOnRails
[02:59:47] JoshL: has joined #RubyOnRails
[03:05:01] sarink: has joined #RubyOnRails
[03:10:19] moeabdol: has joined #RubyOnRails
[03:10:39] yoshie902a: has left #RubyOnRails: ()
[03:11:14] rubyonrailed: has joined #RubyOnRails
[03:11:17] ja: ???sup FailBit
[03:11:23] ja: are you enjoying your Rails 5 beta?
[03:12:41] FailBit: I haven't even tried it
[03:16:59] sankaber: has joined #RubyOnRails
[03:17:05] chouhoulis: has joined #RubyOnRails
[03:19:41] dkam: has joined #RubyOnRails
[03:19:55] moonman: has joined #RubyOnRails
[03:20:03] moonman: why doesn't rails have a stack?
[03:20:24] pawnbox: has joined #RubyOnRails
[03:20:55] dandaman: has joined #RubyOnRails
[03:21:08] VeryBewitching: moonman: What do you mean?
[03:21:30] moonman: fullstack js has MEAN
[03:21:39] moonman: fullstack php has LAMP
[03:21:46] moonman: but rails doesn't have a stack
[03:23:00] moonman: i thought of a stack for rails, but nobody seems to like the idea... Rails Activerecord Postgresql Ember.js
[03:23:24] VeryBewitching: ACTION sighs.
[03:26:50] rgtk: has joined #RubyOnRails
[03:29:02] nyaa: has joined #RubyOnRails
[03:43:37] blackmesa: has joined #RubyOnRails
[03:44:41] DavidDudson: has joined #RubyOnRails
[03:45:10] dkam: has joined #RubyOnRails
[03:50:48] tfittsy: has joined #RubyOnRails
[03:51:15] tfittsy: has left #RubyOnRails: ()
[03:51:30] williamcage: has joined #RubyOnRails
[03:52:37] alex88: has joined #RubyOnRails
[03:55:44] idefine: has joined #RubyOnRails
[03:58:14] djbkd: has joined #RubyOnRails
[03:58:27] cassioscabral: has joined #RubyOnRails
[03:58:59] tuelz: has joined #RubyOnRails
[04:00:24] rubyonrailed: has joined #RubyOnRails
[04:02:21] williamcage: has joined #RubyOnRails
[04:02:39] idefine: has joined #RubyOnRails
[04:07:51] sarink: has joined #RubyOnRails
[04:08:49] idefine: has joined #RubyOnRails
[04:09:45] ja: some men should just stay on the moon
[04:09:51] ja: just sayin
[04:10:44] tfittsy: has joined #RubyOnRails
[04:12:00] rhizome: pot is fun
[04:13:35] braincrash: has joined #RubyOnRails
[04:13:46] tfittsy: I have a rails app that I have been using less in (from before there was a full sass port of bootstrap.) I???m trying to remove less and I???ve removed 'less-rails-bootstrap' from my gemfile and run bundle install but the less files are still being read and presented. I would expect to just get a bunch of errors until all the less is removed.
[04:15:14] joshkovach: has joined #RubyOnRails
[04:16:31] rhizome: run 'bundle update less-rails-bootstrap'
[04:17:06] tfittsy: could not find gem less-rails-bootstrap
[04:17:47] whitedawg: has joined #RubyOnRails
[04:18:12] chouhoulis: has joined #RubyOnRails
[04:19:52] rhizome: grep less Gemfile.log
[04:19:57] rhizome: Gemfile.lock
[04:20:35] tfittsy: I got it, had to uninstall the gem
[04:20:50] shibabu: has joined #RubyOnRails
[04:20:56] tfittsy: thus begins I???m sure a very long project
[04:31:02] nyaa: has joined #RubyOnRails
[04:38:39] rails690: has joined #RubyOnRails
[04:40:44] rattatmatt: has joined #RubyOnRails
[04:41:25] jottr: has joined #RubyOnRails
[04:44:13] willywos: has joined #RubyOnRails
[04:44:45] rails690: how can i implement this http://www.ag-grid.com/ with elasticsearch in rails?
[04:44:58] rails690: i would have to feed it json data that is returned by elasticsearch
[04:45:24] rails690: is it possible?
[04:45:27] blackmesa: has joined #RubyOnRails
[04:46:14] xybre: Anything is possible if you try hard and believe in yourself.
[04:47:32] willywos: ugh i wouldn't want to implement that :(
[04:48:41] NBarnes: has joined #RubyOnRails
[04:48:57] rails690: what would u do?
[04:49:10] rails690: if u wanted something, fast yet advanced?
[04:51:45] xybre: I think yeah, you'll have to set up a JSON handler, so your app can send the frontend JSON somehow and then the frontend can parse it into the tables that ag-grid needs.
[04:52:31] xybre: You might be able to skip a step with js.erb templates, so long as your data is static.
[04:54:08] rails690: thank you. if u wanted something that was fast and very search advanced, are thse the tools u would use?
[04:54:15] xybre: But, from the docs, it looks like the API to ag-grid is a bit funky. Pure JSON would be way better.
[04:55:29] lessless: has joined #RubyOnRails
[04:55:46] rails690: yeah like loading the JSON returned by the search directly into the grid with a little bit of processing?
[04:57:20] xybre: Do you use Angular?
[04:57:22] rakm: has joined #RubyOnRails
[04:58:27] xybre: It looks like it was designed for Angular in particular.
[04:58:36] tfittsy: has joined #RubyOnRails
[04:58:43] rails690: yeah but theres the JS only version
[04:58:53] TDJACR: has joined #RubyOnRails
[04:59:14] rails690: i couldnt find anything as advanced as it except DataTables... and DataTables is too hard for me to implement with elasticsearch
[04:59:37] tuelz: has joined #RubyOnRails
[04:59:47] rails690: and it doenst have the features i want that AG grid has
[05:00:18] rails690: what do u think?
[05:01:42] ja: I like your attitude, xybre
[05:02:00] ja: whoops; /me was in scrollback
[05:03:33] nyaa: has joined #RubyOnRails
[05:04:23] jstransky: has joined #RubyOnRails
[05:07:14] jstransky: has joined #RubyOnRails
[05:07:42] xybre: rails690: time to generate some JSON using Ruby and then write some var-setting code in JS. I couldn't find a simple adapter or replacement grid with the same featureset.
[05:09:08] owenjones: has joined #RubyOnRails
[05:10:05] smathy: has joined #RubyOnRails
[05:18:27] Oliphaunte: has joined #RubyOnRails
[05:18:56] chouhoulis: has joined #RubyOnRails
[05:18:57] pawnbox: has joined #RubyOnRails
[05:20:05] bronson: has joined #RubyOnRails
[05:24:40] jacksparrow007: has joined #RubyOnRails
[05:27:33] shanemcd: has joined #RubyOnRails
[05:27:38] rgtk: has joined #RubyOnRails
[05:34:34] ornerymoose: has joined #RubyOnRails
[05:35:47] rails690: xybre i have a question
[05:36:03] rakm: has joined #RubyOnRails
[05:37:58] idefine: has joined #RubyOnRails
[05:38:10] DavidDudson: has joined #RubyOnRails
[05:40:56] lxsameer: has joined #RubyOnRails
[05:41:19] Oliphaunte: has joined #RubyOnRails
[05:43:17] AntiSpamMeta: has joined #RubyOnRails
[05:45:08] xybre: rails690: sup?
[05:46:21] JDeen: has joined #RubyOnRails
[05:46:37] djbkd: has joined #RubyOnRails
[05:47:10] tfittsy: has joined #RubyOnRails
[05:47:22] JDeen: I got a quesiton on CanCan, and appreciate if some one can help. The problem is that I have a ability that can be dfined like this: t
[05:47:26] JDeen: 11:16 !sendak.freenode.net *** Couldn't look up your hostname
[05:47:28] JDeen: 11:16 -!- Irssi: Not connected to server
[05:47:41] JDeen: can :manage, Event, school_id: user.schools.map(&:id)
[05:48:09] JDeen: But when the role access the '#new' action, it complains of 'access denied'
[05:48:27] blackmesa: has joined #RubyOnRails
[05:48:35] pawnbox: has joined #RubyOnRails
[05:48:40] JDeen: when using load_and_authorize_resource
[05:48:57] RegulationD: has joined #RubyOnRails
[05:49:03] JDeen: can this be rectified?
[05:50:05] guacamole: has joined #RubyOnRails
[05:50:06] JDeen: Or I think I will have t skip for the new action
[05:50:19] JDeen: for any suggestions / advice thanks in advance
[05:51:55] arooni-mobile: has joined #RubyOnRails
[05:53:47] alex88: has joined #RubyOnRails
[05:54:26] idefine: has joined #RubyOnRails
[05:55:41] nyaa: has joined #RubyOnRails
[05:59:57] JDeen: ^^^ never mind, I think I found what I want. Using skip_authorize_resource only: :new seemed to have worked
[06:00:13] tuelz: has joined #RubyOnRails
[06:06:32] roshanavand: has joined #RubyOnRails
[06:09:24] jmrepetti: has joined #RubyOnRails
[06:10:55] speaking1ode: has joined #RubyOnRails
[06:13:11] lxsameer: has joined #RubyOnRails
[06:17:52] speaking2ode: has joined #RubyOnRails
[06:18:22] pawnbox: has joined #RubyOnRails
[06:19:39] chouhoulis: has joined #RubyOnRails
[06:24:55] shibabu: has joined #RubyOnRails
[06:28:41] JDeen: has joined #RubyOnRails
[06:30:33] AntiSpamMeta: has joined #RubyOnRails
[06:33:58] idefine: has joined #RubyOnRails
[06:35:57] AzaToth: has joined #RubyOnRails
[06:36:10] ornerymoose: has joined #RubyOnRails
[06:39:16] ja: ACTION is starting to worry about Radar
[06:39:21] ja: he hasn???t spoken in over 24 hours
[06:41:44] ynonp: has joined #RubyOnRails
[06:42:13] jottr: has joined #RubyOnRails
[06:51:29] blackmesa: has joined #RubyOnRails
[06:53:57] idefine: has joined #RubyOnRails
[06:54:23] ynonp: has joined #RubyOnRails
[06:55:48] AntiSpamMeta: has joined #RubyOnRails
[06:56:26] dionysus69: has joined #RubyOnRails
[06:56:29] ornerymoose: has joined #RubyOnRails
[06:58:09] pawnbox: has joined #RubyOnRails
[06:58:11] jstransky: has joined #RubyOnRails
[07:01:07] tuelz: has joined #RubyOnRails
[07:01:11] startupality: has joined #RubyOnRails
[07:03:27] ornerymoose: has joined #RubyOnRails
[07:08:41] PedramT: has joined #RubyOnRails
[07:08:47] nyanz: has joined #RubyOnRails
[07:10:06] idefine: has joined #RubyOnRails
[07:10:15] ornerymoose: has joined #RubyOnRails
[07:11:10] ibouvousaime: has joined #RubyOnRails
[07:13:26] Oliphaunte: has joined #RubyOnRails
[07:14:15] ynonp: has joined #RubyOnRails
[07:15:27] lessless: has joined #RubyOnRails
[07:17:06] ornerymoose: has joined #RubyOnRails
[07:20:26] chouhoulis: has joined #RubyOnRails
[07:20:36] djbkd_: has joined #RubyOnRails
[07:23:41] PedramT: has joined #RubyOnRails
[07:28:33] rgtk: has joined #RubyOnRails
[07:29:56] rails690: has joined #RubyOnRails
[07:30:32] idefine: has joined #RubyOnRails
[07:34:36] startupality: has joined #RubyOnRails
[07:37:41] pawnbox: has joined #RubyOnRails
[07:37:55] ur5us: has joined #RubyOnRails
[07:39:01] rails690: i need advice
[07:39:21] sevenseacat: has joined #RubyOnRails
[07:39:38] PedramT_: has joined #RubyOnRails
[07:39:42] rails690: i want to implement advanced search (elasticsearch), but with a table/pagination/sorting that is fast and advanced
[07:39:46] moeabdol: has joined #RubyOnRails
[07:40:23] rails690: so i thought to integrate elasticsearch + ag-grid (http://www.ag-grid.com/best-javascript-grid/index.php)
[07:40:38] rails690: does anyone have a better idea?
[07:49:17] stannard: has joined #RubyOnRails
[07:49:37] yfeldblum: has joined #RubyOnRails
[07:52:31] dionysus69: has joined #RubyOnRails
[07:54:29] blackmesa: has joined #RubyOnRails
[07:54:30] alex88: has joined #RubyOnRails
[07:57:58] ewnd9_: has joined #RubyOnRails
[08:01:59] tuelz: has joined #RubyOnRails
[08:05:13] ornerymoose: has joined #RubyOnRails
[08:08:11] Oliphaunte: has joined #RubyOnRails
[08:11:39] defsdoor: has joined #RubyOnRails
[08:11:45] arup_r: has joined #RubyOnRails
[08:13:24] darutoko: has joined #RubyOnRails
[08:13:33] ur5us: has joined #RubyOnRails
[08:13:49] quazimodo: has joined #RubyOnRails
[08:16:34] rails690: im trying to use a third-party JS file but the console doesn't recognize any of the functions
[08:16:54] rails690: i added the JS file to vendor/assets/javascripts/
[08:17:12] sevenseacat: did you load it in your app?
[08:17:17] rails690: then i added //=require 'the3rdpartyfile' below jquery
[08:17:23] helpa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
[08:17:38] rails690: i added //=require 'ag-grid'
[08:17:53] rails690: to application.js
[08:18:02] sevenseacat: and now what?
[08:18:21] rails690: and i tried using the functions inside of another js file called 'mygrid.js'
[08:18:27] sevenseacat: that wont work
[08:18:35] rails690: how do i use the functions then
[08:18:44] sevenseacat: because you havent loaded ag-grid into your mygrid file
[08:18:51] sevenseacat: you loaded it into application.js
[08:19:17] sevenseacat: but anyway, let's see some code or errors or something
[08:19:35] rails690: SyntaxError: missing } after function body ag-grid...?body=1 (line 8601) ReferenceError: agGridGlobalFunc is not defined mygrid....?body=1 (line 164, col 4)
[08:19:44] sevenseacat: !gist the full error
[08:19:44] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[08:19:56] rails690: thats the full error
[08:20:06] sevenseacat: then your third-party file has a syntax error in it.
[08:20:50] rails690: ok so question
[08:21:02] rails690: how come im able to use 3rd party libraries inside of my coffee script files
[08:21:07] rails690: but not inside of mygrid.js
[08:21:09] chouhoulis: has joined #RubyOnRails
[08:21:13] helpa: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[08:21:45] sevenseacat: 'how can I do X but not Y' without demonstration anything about X or Y is pretty useless.
[08:22:25] rails690: i have a jquery.print 3rd party library inside of my vendor assets javascripts folder... and then i required it inside of application.js and im able to use the .print function inside of my people.coffee with no problem
[08:22:36] helpa: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[08:26:35] mcr-credil: has joined #RubyOnRails
[08:27:12] rails690: turns out the 3rd party library js file was corrupteda
[08:27:14] rails690: it works now
[08:28:44] sevenseacat: I did mention that it had a syntax error, yes.
[08:29:16] shibabu: has joined #RubyOnRails
[08:29:48] idefine: has joined #RubyOnRails
[08:32:24] erich__: has joined #RubyOnRails
[08:33:41] blackmesa: has joined #RubyOnRails
[08:34:31] Bloomer: has joined #RubyOnRails
[08:38:50] Node_832: has joined #RubyOnRails
[08:38:54] rubyonrailed: has joined #RubyOnRails
[08:38:57] srinidhi: has joined #RubyOnRails
[08:39:04] Node_832: undefined method `[]' for nil:NilClass
[08:39:11] Node_832: in devise token auth
[08:42:57] jottr: has joined #RubyOnRails
[08:45:11] startupality: has joined #RubyOnRails
[08:46:17] idefine: has joined #RubyOnRails
[08:46:23] PedramT: has joined #RubyOnRails
[08:52:09] sevenseacat: Node_832: stop calling [] on nil?
[08:54:00] suffice: has joined #RubyOnRails
[08:56:24] wethu: has joined #RubyOnRails
[09:02:04] Oliphaunte: has joined #RubyOnRails
[09:02:21] tuelz: has joined #RubyOnRails
[09:03:04] Pazician: has joined #RubyOnRails
[09:03:28] Pazician: has joined #RubyOnRails
[09:04:51] williamcage: has joined #RubyOnRails
[09:06:28] idefine: has joined #RubyOnRails
[09:08:16] PedramT: has joined #RubyOnRails
[09:10:20] Pazician: has joined #RubyOnRails
[09:13:10] startupality: has joined #RubyOnRails
[09:14:18] Cervajz: has joined #RubyOnRails
[09:15:01] Cervajz_: has joined #RubyOnRails
[09:21:01] dici: has joined #RubyOnRails
[09:21:52] chouhoulis: has joined #RubyOnRails
[09:22:27] njero: has joined #RubyOnRails
[09:23:16] rgtk: has joined #RubyOnRails
[09:24:01] djbkd: has joined #RubyOnRails
[09:26:17] idefine: has joined #RubyOnRails
[09:30:07] shibabu: has joined #RubyOnRails
[09:36:27] startupality: has joined #RubyOnRails
[09:37:46] Radar: ja: It's called a "weekend". You might want to look into it.
[09:40:01] PedramT: has joined #RubyOnRails
[09:41:33] djbkd: has joined #RubyOnRails
[09:44:38] roshanavand: has joined #RubyOnRails
[09:45:11] yardenbar: has joined #RubyOnRails
[09:46:09] blackmesa: has joined #RubyOnRails
[09:50:27] RegulationD: has joined #RubyOnRails
[09:52:02] StevenXL: has joined #RubyOnRails
[09:52:02] StevenXL: has joined #RubyOnRails
[09:53:44] jmrepetti: has joined #RubyOnRails
[09:55:55] idefine: has joined #RubyOnRails
[09:55:59] Oliphaunte: has joined #RubyOnRails
[09:57:04] snowy: has joined #RubyOnRails
[10:02:05] Pazician: has joined #RubyOnRails
[10:03:00] rodfersou: has joined #RubyOnRails
[10:03:27] tuelz: has joined #RubyOnRails
[10:03:42] alphaatom: has joined #RubyOnRails
[10:03:44] Cervajz: has joined #RubyOnRails
[10:07:24] Cervajz_: has joined #RubyOnRails
[10:09:18] yardenbar: has joined #RubyOnRails
[10:14:37] jmrepetti: has joined #RubyOnRails
[10:17:09] mikecmpbll: has joined #RubyOnRails
[10:19:01] Pazician: has joined #RubyOnRails
[10:21:27] moei: has joined #RubyOnRails
[10:22:38] chouhoulis: has joined #RubyOnRails
[10:23:46] gizmore: has joined #RubyOnRails
[10:24:09] gizmore: Is it still possible to RCE rails applications when secret token is known?
[10:27:53] rubyonrailed: has joined #RubyOnRails
[10:28:52] jottr: has joined #RubyOnRails
[10:32:43] quazimod1: has joined #RubyOnRails
[10:35:02] rails690: on the chewy gem documentation here: https://github.com/toptal/chewy
[10:35:55] rails690: it has the following code: https://gist.github.com/anonymous/b3fe1a3f046741bf75dc
[10:36:04] rails690: what is User.active??? what is the .active part?
[10:36:24] rails690: is that part of the rails api or is that their own attribute?
[10:39:38] qejk: has joined #RubyOnRails
[10:41:38] gizmore: rails690: it??s a method
[10:42:11] gizmore: probably devise gem adding the method via activerecord to the user class
[10:42:45] elaptics: rails690: it's just a scope
[10:43:07] elaptics: like the comment says
[10:43:14] tasaif: has joined #RubyOnRails
[10:43:24] gizmore: oops... missed the gist
[10:43:33] tasaif: hey, how do I generate a new config/secrets.yml
[10:43:41] tasaif: please to help
[10:43:43] tasaif: english no good
[10:44:19] elaptics: tasaif: I think there's a rake task to do it. run 'rake -T' and it should list them all
[10:44:32] u_name: has joined #RubyOnRails
[10:45:00] moeabdol: has joined #RubyOnRails
[10:45:51] tasaif: many blessings you elaptics
[10:45:54] tasaif: you are gift from god
[10:46:24] havenwood: tasaif: How bout?: touch config/secrets.yml
[10:47:01] PedramT: has joined #RubyOnRails
[10:47:21] tasaif: I will try rake secret and touch
[10:47:28] tasaif: I hope for you many maidens
[10:47:48] tasaif: rake secret generate hash
[10:48:13] elaptics: tasaif: rake secret is probably what you want. touch will just create an empty file assuming one doesn't already exist
[10:48:55] tasaif: error is here http://107.170.199.129:3000/
[10:50:34] guacamole: has joined #RubyOnRails
[10:52:31] gizmore: tasaif: there should be hundreds of secret.yml on github, with production keys :P
[10:52:48] tasaif: there must be gizmore
[10:53:24] PedramT: has joined #RubyOnRails
[10:53:31] srinidhi: has joined #RubyOnRails
[10:53:32] gizmore: tasaif: https://github.com/gizmore/railsbin/blob/master/config/secrets.yml
[10:54:14] tasaif: thank you gizmore I use https://richonrails.com/articles/the-rails-4-1-secrets-yml-file already
[10:54:22] tasaif: thank you and many blessings for your goat
[10:54:51] gizmore: then just add secret_token: abcdefg
[10:55:01] tasaif: it work already
[10:56:01] teclator: has joined #RubyOnRails
[10:57:12] moeabdol: has joined #RubyOnRails
[10:57:42] moeabdol: has joined #RubyOnRails
[10:58:04] Mia: has joined #RubyOnRails
[10:58:05] Mia: has joined #RubyOnRails
[10:58:20] tasaif: thank you much all
[10:58:33] tasaif: I sleep now now with you all in my dreamhearts
[10:58:35] tasaif: has left #RubyOnRails: ()
[11:03:35] shibabu: has joined #RubyOnRails
[11:04:10] tuelz: has joined #RubyOnRails
[11:05:41] The_Phoenix: has joined #RubyOnRails
[11:06:05] eyck: has joined #RubyOnRails
[11:06:17] quazimod1: has joined #RubyOnRails
[11:06:27] dionysus69: has joined #RubyOnRails
[11:10:22] nya: has joined #RubyOnRails
[11:13:04] sandstrom: has joined #RubyOnRails
[11:13:25] ibouvousaime: has joined #RubyOnRails
[11:14:36] djbkd: has joined #RubyOnRails
[11:16:59] FernandoBasso: has joined #RubyOnRails
[11:19:33] Cervajz: has joined #RubyOnRails
[11:20:10] stamina: has joined #RubyOnRails
[11:23:24] chouhoulis: has joined #RubyOnRails
[11:24:20] lapide_viridi: has joined #RubyOnRails
[11:24:58] pawnbox: has joined #RubyOnRails
[11:27:20] Pazician: has joined #RubyOnRails
[11:27:54] Pazician: has joined #RubyOnRails
[11:31:17] ewnd9_: has joined #RubyOnRails
[11:32:54] pawnbox: has joined #RubyOnRails
[11:39:17] gavit: https://github.com/rgeo/rgeo <- this states By default, the gem installation looks for the Proj4 library. how do I know if I found the proj directory?
[11:39:20] gavit: require 'RGeo' fails on my production server :(
[11:39:34] ja: Radar: Oh. Right. Thanks for the recommendation.
[11:39:49] dideler: has joined #RubyOnRails
[11:40:10] doodlehaus: has joined #RubyOnRails
[11:43:17] tuelz: has joined #RubyOnRails
[11:44:10] Oliphaunte: has joined #RubyOnRails
[11:48:21] manne: has joined #RubyOnRails
[11:53:37] moeabdol: has joined #RubyOnRails
[11:54:23] alphaatom: has joined #RubyOnRails
[11:54:55] ElFerna: has joined #RubyOnRails
[11:54:56] Zackio: has joined #RubyOnRails
[11:56:22] chrislotix: has joined #RubyOnRails
[11:58:21] manne_: has joined #RubyOnRails
[11:59:21] Cervajz: has joined #RubyOnRails
[11:59:36] akshat: has joined #RubyOnRails
[11:59:53] blackmesa: has joined #RubyOnRails
[12:00:43] n008f4g_: has joined #RubyOnRails
[12:04:58] eyck: has joined #RubyOnRails
[12:05:02] williamcage: has joined #RubyOnRails
[12:05:38] nya: has joined #RubyOnRails
[12:06:00] manne__: has joined #RubyOnRails
[12:06:36] tiagomoraismorga: has joined #RubyOnRails
[12:06:40] edwinvdgraaf: has joined #RubyOnRails
[12:09:05] eyck: has joined #RubyOnRails
[12:09:58] PedramT: has joined #RubyOnRails
[12:10:02] FooMunki: has joined #RubyOnRails
[12:11:26] taxen: has joined #RubyOnRails
[12:12:05] tiagomoraismorga: has left #RubyOnRails: ()
[12:12:22] edwinvdgraaf: has joined #RubyOnRails
[12:12:28] ewnd9_: has joined #RubyOnRails
[12:13:01] tm_X: has joined #RubyOnRails
[12:13:01] robbyoconnor: has joined #RubyOnRails
[12:13:07] sarink: has joined #RubyOnRails
[12:14:48] tknz: has joined #RubyOnRails
[12:15:45] sandstrom: has joined #RubyOnRails
[12:16:54] rubyonrailed: has joined #RubyOnRails
[12:18:24] lessless: has joined #RubyOnRails
[12:18:37] edwinvdgraaf: has joined #RubyOnRails
[12:21:56] whossain: has joined #RubyOnRails
[12:22:16] joshkovach: has joined #RubyOnRails
[12:24:06] chouhoulis: has joined #RubyOnRails
[12:29:38] jottr: has joined #RubyOnRails
[12:32:32] idakyne: has joined #RubyOnRails
[12:33:49] netzfisch: has joined #RubyOnRails
[12:38:15] Oliphaunte: has joined #RubyOnRails
[12:38:26] jottr: has joined #RubyOnRails
[12:38:57] build22: has joined #RubyOnRails
[12:40:49] johnflux: has joined #RubyOnRails
[12:42:04] ewnd9_: has joined #RubyOnRails
[12:43:07] FernandoBasso: has joined #RubyOnRails
[12:47:53] zanzarel: has joined #RubyOnRails
[12:54:25] jottr: has joined #RubyOnRails
[12:55:32] Detch: has joined #RubyOnRails
[12:57:36] c355E3B: has joined #RubyOnRails
[12:58:43] Cervajz: has joined #RubyOnRails
[13:01:24] yfeldblum: has joined #RubyOnRails
[13:02:20] djbkd: has joined #RubyOnRails
[13:04:53] jsrn_: has joined #RubyOnRails
[13:06:47] srinidhi: has joined #RubyOnRails
[13:07:09] edwinvdgraaf: has joined #RubyOnRails
[13:09:54] jottr: has joined #RubyOnRails
[13:11:08] DenysLins: has joined #RubyOnRails
[13:12:19] shibabu: has joined #RubyOnRails
[13:12:41] nocd: has joined #RubyOnRails
[13:13:48] carlosd: has joined #RubyOnRails
[13:15:44] ElFerna: has joined #RubyOnRails
[13:17:43] sarink: has joined #RubyOnRails
[13:17:56] zanzarel: hello! I'm pretty new to Ruby on Rails. I was wondering if it's possible to generate a scaffold on the command line for a model that has two different foreign keys to the same table
[13:18:18] ruid: has joined #RubyOnRails
[13:18:18] ruid: has joined #RubyOnRails
[13:19:32] sarink: has joined #RubyOnRails
[13:20:07] zanzarel: e.g. I have a table "people" and would like to generate the scaffold for "friendships" that has two columns "who_id" and "friend_id" that are actually FK to people
[13:20:47] sevenseacat: I'd recommend not relying on generating scaffolds to get things done
[13:21:24] sar1nk: has joined #RubyOnRails
[13:23:19] edwinvdgraaf: has joined #RubyOnRails
[13:24:05] carlosd: I want to use respond_with in a controller to respond_to :html, :js
[13:24:12] sevenseacat: carlosd: we're not all guys here.
[13:24:17] carlosd: For the JS case Rails will return the content of create.coffee for success and error cases
[13:24:18] ElFerna: has joined #RubyOnRails
[13:24:27] mrtomme: has joined #RubyOnRails
[13:24:35] carlosd: There is a blog post that implements the differents flows in the create.coffee: http://www.alfajango.com/blog/rails-3-remote-links-and-forms-data-type-with-jquery/
[13:24:51] chouhoulis: has joined #RubyOnRails
[13:24:56] carlosd: I would like to know if there is someone that uses another approach and if there is some gem that modifies respond_with behavior to be more like the html behaviour (render 'new' or redirect_to resource)
[13:25:00] sevenseacat: nvm theyre not listening
[13:25:16] carlosd: I also would like to know if someone find this last approach dumb? :)
[13:25:20] sevenseacat: you cant redirect in a JS response
[13:25:27] zanzarel: sevenseacat: thank you for you reply. So your advice is to create model and migration by hand in this case?
[13:25:30] d0nn1e: has joined #RubyOnRails
[13:25:41] quazimodo: has joined #RubyOnRails
[13:25:56] sevenseacat: zanzarel: I would always advocate creating models and interfaces by hand, instead of by using scaffolds
[13:26:25] wildlander: has joined #RubyOnRails
[13:26:30] carlosd: sevenseacat, sorry, s/guys/folks
[13:27:01] zanzarel: sevenseacat: I don't like scaffolds as well, but I'm _really_ a newbie in both Ruby and Ruby on Rails, so they're handy because the scaffold gives me something easy to read
[13:27:29] sevenseacat: zanzarel: in that case you definitely shouldnt be using them, because you lack the knowledge and experience to modify them/know what theyre doing
[13:27:55] carlosd: sevenseacat, I use redirect in a JS response and it's works
[13:28:26] zanzarel: okay I'll try to create everything by hand
[13:28:42] sevenseacat: carlosd: not only does it not work, it defeats the purpose of submitting the form via js
[13:29:25] sevenseacat: typically the point of submitting a form via js would be a for a nice user interface that avoids a full page refresh
[13:29:42] carlosd: if I return a redirect from create to the resource, submitted by a remote form, the browser makes another request to the show action
[13:31:36] carlosd: don't think that I need to show it, since I already know your opinion ;)
[13:32:12] sevenseacat: well okay, I'd like to see how it works, hence I asked to see your code
[13:32:31] sevenseacat: but if thats too hard, thats fine too
[13:32:36] Oliphaunte: has joined #RubyOnRails
[13:33:56] carlosd: the code is dead simple: def create; redirect_to @resource if @resource.save; end
[13:34:22] sevenseacat: thats not responding to js
[13:34:24] carlosd: but it will not make you see it and I don't want to put something online
[13:35:26] carlosd: but if the request is ajax, the header returned will contain a redirect and the browser will make a new ajax request to the show action
[13:42:04] qejk: has joined #RubyOnRails
[13:42:28] Palsson: has joined #RubyOnRails
[13:44:31] carlosd: sevenseacat, I created a gist with the headers of the POST request, the location in it's reply and the headers of the GET request made by the browser after this header reply: https://gist.github.com/2dff4c89b1709ef0ca08
[13:46:02] alphaatom: has joined #RubyOnRails
[13:46:46] wethu: has joined #RubyOnRails
[13:46:52] wethu: has joined #RubyOnRails
[13:46:57] jmrepetti: has joined #RubyOnRails
[13:47:18] alphaatom: has joined #RubyOnRails
[13:48:15] tuelz: has joined #RubyOnRails
[13:51:32] hardtail: has joined #RubyOnRails
[13:51:56] RegulationD: has joined #RubyOnRails
[13:53:08] idefine_: has joined #RubyOnRails
[13:57:24] Or1on: has joined #RubyOnRails
[13:57:25] Or1on: has joined #RubyOnRails
[13:59:35] agit0: has joined #RubyOnRails
[14:01:04] ynonp: has joined #RubyOnRails
[14:01:18] doodlehaus: has joined #RubyOnRails
[14:02:07] mary5030: has joined #RubyOnRails
[14:02:41] The_Phoenix: has joined #RubyOnRails
[14:03:43] Ducky-: has joined #RubyOnRails
[14:05:10] williamcage: has joined #RubyOnRails
[14:05:24] rubyonrailed: has joined #RubyOnRails
[14:06:12] Flipez: has joined #RubyOnRails
[14:08:05] edwinvdgraaf: has joined #RubyOnRails
[14:10:42] jottr: has joined #RubyOnRails
[14:10:47] Flipez: Hi, can someone tell what whats the best way to split up an existing app into core(models) and frontend ? this might work with two different apps but I am not sure about how to do this in detail. any suggestions?
[14:11:19] dionysus69: has joined #RubyOnRails
[14:14:24] chipotle: has joined #RubyOnRails
[14:14:26] idefine: has joined #RubyOnRails
[14:16:51] lxsameer: has joined #RubyOnRails
[14:16:51] lxsameer: has joined #RubyOnRails
[14:16:53] uberjar: has joined #RubyOnRails
[14:22:08] sarink: has joined #RubyOnRails
[14:24:14] Axilla: does anyone have any idea what the hell could be going on with this record?
[14:24:18] Axilla: https://gist.github.com/travisdmathis/10d6431a6085d72ff565
[14:24:27] Axilla: when i find the record all goes well.. when i try to get data from it, its returning something completely different...
[14:24:31] Axilla: its like its not creating a Object.
[14:24:59] Axilla: Flipez: what do you mean?
[14:25:26] Axilla: logic in models, frontend in views?
[14:25:39] chouhoulis: has joined #RubyOnRails
[14:25:41] Axilla: how much more seperate do you need?
[14:26:07] Axilla: or do you mean you're trying to convert a app built in something other than ruby/rails into a rails app?
[14:26:29] pureofpure: has joined #RubyOnRails
[14:26:30] Flipez: axilla, in my mind I would like to do something like app1 (holds all models), app2 holds controllers and views, app3 holds controller and views for backend. Both app2 and 3 should somehow require app1
[14:26:57] Axilla: why the hell would you do that?
[14:27:21] Axilla: you're giving up everything that is rails by doing that.. you won't have active relations between the apps
[14:27:38] Axilla: your app is your app it holds your models, views, and controllers
[14:28:18] Axilla: your logic and heavy code should be in your models(this includes backend code) controllers handle collecting the data and passing it to the view using the logic code/methods you've built out in your models.
[14:28:33] pureofpure: i want upload a excel file to s3 amazon from my Rails application, can i do this directly? or i should to save somewhere the excel file in the server temporary and then upload it?
[14:29:08] chrislotix: has joined #RubyOnRails
[14:29:08] Axilla: you can use rails as just an API if you wanted to make a single page app on top of node, but i don't recommend that type of stuff.
[14:29:28] Axilla: or something else too obv.
[14:29:49] sevenseacat: +1 to not doing that
[14:30:01] Axilla: pureofpure for simplicity sake check out the paperclip gem
[14:30:04] stannard: has joined #RubyOnRails
[14:30:04] elaptics: pureofpure: yes, there's plenty of gems like carrierwave that make it pretty easy
[14:30:11] Axilla: or carrierwave
[14:30:47] elaptics: axilla: you've not got a record you've got a relation
[14:30:57] Axilla: elaptics: yea i see that, why?
[14:31:03] Axilla: i'm a bit confused never run into this before.
[14:31:14] pureofpure: thanks axilla and elaptics , i will check it out now
[14:31:15] elaptics: axilla: because you only called #where
[14:31:34] fexilal: has joined #RubyOnRails
[14:31:35] Axilla: duh >< its early
[14:31:35] elaptics: axilla: it can get a bit confusing in the console
[14:31:42] Axilla: and i stayed up late playing EVE :P
[14:31:55] elaptics: axilla: hehe
[14:33:31] Axilla: thanks elaptics >< a little .first love goes a long way :)
[14:34:14] yashinbasement: has joined #RubyOnRails
[14:36:06] shibabu: has joined #RubyOnRails
[14:36:14] yashinbasement: Hey guys , I am gonna downloads few files on daily basis from a websites if it's been updated, so my question should I keep them in rails app,or should I keep them in a local directory , I also need to save that file in the app backend.
[14:37:41] iateadonut: has joined #RubyOnRails
[14:38:02] chipotle: has joined #RubyOnRails
[14:38:40] uberjar: yashinbasement: an approach might be to install something like aws-cli (sudo apt-get install aws-cli) then download the files locally, next issue the command: aws cp myfiles* s3:/bucketname/ && rm myfiles*
[14:39:48] uberjar: once your files end up in an amazon s3 all that remains is to teach your rails app how to be aware of that bucket's contents
[14:40:19] bronson: has joined #RubyOnRails
[14:41:32] LightStalker: has joined #RubyOnRails
[14:41:54] yashinbasement: that's cool , thanks uberjar
[14:41:55] speaking1ode: has joined #RubyOnRails
[14:43:36] idefine: has joined #RubyOnRails
[14:43:56] yashinbasement: Unable to locate package aws-cli
[14:45:03] ynonp: has joined #RubyOnRails
[14:45:31] uberjar: yashinbasement: oops.. I thought I remembered it being that simple on ubuntu, but I guess you need to download amazon's zip file instead: here's the guide http://docs.aws.amazon.com/cli/latest/userguide/installing.html
[14:46:35] elaptics: yashinbasement: I'd just use something like carrierwave or paperclip then you have the option of where to store it including AWS
[14:47:27] tomoyuki28jp: has joined #RubyOnRails
[14:49:00] tuelz: has joined #RubyOnRails
[14:54:13] djbkd: has joined #RubyOnRails
[14:54:40] yashinbasement: sweet, thanks elaptics
[14:55:08] King_Rex: has joined #RubyOnRails
[15:00:32] chouhoulis: has joined #RubyOnRails
[15:01:41] speaking1ode: has joined #RubyOnRails
[15:01:55] PedramT: has joined #RubyOnRails
[15:05:32] quazimod1: has joined #RubyOnRails
[15:07:51] sankaber: has joined #RubyOnRails
[15:08:07] edwinvdgraaf: has joined #RubyOnRails
[15:09:12] PedramT_: has joined #RubyOnRails
[15:10:05] chridal: How can I start using Rails 5?
[15:10:21] chridal: `gem update rails` didn't go further than 4.2
[15:10:51] FernandoBasso: has joined #RubyOnRails
[15:11:04] speaking1ode: has joined #RubyOnRails
[15:11:31] shamanime: has joined #RubyOnRails
[15:12:11] Hates_: chridal: it's not out yet
[15:12:47] chridal: http://weblog.rubyonrails.org/2015/12/18/Rails-5-0-beta1/
[15:12:53] chridal: Hates_: Isn't it? ^
[15:13:00] edwinvdgraaf: has joined #RubyOnRails
[15:13:36] eduardodeoh: has joined #RubyOnRails
[15:13:38] chridal: I'm starting a new project which will be an API, and I think it would be better to just start of on Rails 5
[15:13:50] Hates_: chridal: it's still in beta
[15:14:06] n008f4g_: has joined #RubyOnRails
[15:14:13] Hates_: chridal: you can install that with --pre if you're happy to be on the bleeding edge :)
[15:14:19] eduardodeoh: has joined #RubyOnRails
[15:14:33] sevenseacat: what can possibly go wrong
[15:14:49] shamanime: has joined #RubyOnRails
[15:15:43] chridal: Hehe. According to the post Basecamp runs it in prod
[15:16:14] sevenseacat: and they know it intimately and can fix any fuckups in its internals
[15:16:15] Hates_: chridal: yeah, but I'm sure they don't mind spending the time working around any bugs etc :)
[15:16:33] sevenseacat: if you don't even know how to install it, i dont think you're in the same boat
[15:17:47] chridal: Haha. ^ this is true.
[15:18:34] chridal: Alright. So I guess I'll just start off on 4.2 then.
[15:19:08] chridal: Yea, I guess I'll get some pretty obscure bugs and never figure out of them because they might be internal bugs.
[15:19:19] hardtail: has joined #RubyOnRails
[15:19:44] idefine: has joined #RubyOnRails
[15:20:08] willywos: has joined #RubyOnRails
[15:20:34] Oliphaunte: has joined #RubyOnRails
[15:21:58] _Tariq: has joined #RubyOnRails
[15:22:34] fexilal: just wondering, rails is here to stay isn't it? It's mature and nicely progressing, just not the hippest framework there is .. right?
[15:23:05] sevenseacat: its not going anywhere. its been here for over ten years now.
[15:24:13] guacamole: has joined #RubyOnRails
[15:25:40] sarink: has joined #RubyOnRails
[15:26:06] yardenbar: has joined #RubyOnRails
[15:28:17] Hates_: fexilal: yup, definitely here to stay
[15:28:35] Hates_: Phoenix is probably the hippest at the moment
[15:29:37] mrtomme: has joined #RubyOnRails
[15:29:51] shapeshifter: Hi. I upgraded ruby from 2.2.3 to 2.2.4 and rails from 4.2.4 to 4.2.5 (using bundle update rails). On the deployment server, I use rvm (so there I also ran rvm install 2.2.4; rvm use 2.2.4 --default) and I use capistrano to deploy (so I edited config/deploy.rb to say set :rvm_ruby_version, "2.2.4"). My problem is, that when I try to deploy the new version, I receive an error "bundle stderr: /usr/
[15:29:57] shapeshifter: local/rvm/scripts/set: line 19: exec: bundle: not found".
[15:30:26] sevenseacat: you didnt install bundler for your new ruby, seemingly
[15:30:39] sevenseacat: and your app is probably trying to bundle on deploy
[15:31:05] shapeshifter: sevenseacat: This is my first time upgrading. Do I need to "re-"install all gems when upgrading to another version using rvm?
[15:31:23] sevenseacat: no, just bundler, it will take care of the rest.
[15:31:42] sevenseacat: you also didnt upgrade your ruby using rvm, you installed an entirely new one
[15:32:31] shapeshifter: sevenseacat: You mean there is a way of "upgrading" ruby using rvm?
[15:32:44] sevenseacat: yes. i dont know the specifics, but I'm quite sure there is.
[15:33:05] shapeshifter: sevenseacat: thanks, I'll look into it.
[15:34:13] Dry_Lips: has joined #RubyOnRails
[15:34:33] shapeshifter: sevenseacat: I think rvm's upgrade mechanism is only for patch levels
[15:34:58] sevenseacat: that seems unlikely
[15:36:11] willywos: has joined #RubyOnRails
[15:37:20] srinidhi: has joined #RubyOnRails
[15:39:58] idefine: has joined #RubyOnRails
[15:43:02] chrislotix: Is model generated by devise an actual model or do i have to create another user model? I read on some blog that it's not the best idea to use devise's model.
[15:43:23] sevenseacat: always a good idea to trust some random blog
[15:43:47] sevenseacat: devise generates you a model just like any other
[15:44:51] chrislotix: i can always trust #ror right? Thanks, i can't quite pinpoint where i read that but it also seemed odd to me
[15:45:11] jottr: has joined #RubyOnRails
[15:45:23] sevenseacat: you can't always trust us, but trusting the devise authors seems like a good idea given you're entrusting them with keeping your user's information safe
[15:45:36] roshanavand: has joined #RubyOnRails
[15:45:52] sevenseacat: a lot of what we say is opinion-based, but born out of much experience
[15:46:14] atomical: has joined #RubyOnRails
[15:49:27] sandstrom: has joined #RubyOnRails
[15:50:02] williamcage: has joined #RubyOnRails
[15:51:08] bratsche: has joined #RubyOnRails
[15:51:35] IrishGringo: has joined #RubyOnRails
[15:54:35] Hates_: Trust no one
[15:55:06] dionysus69: has joined #RubyOnRails
[15:56:19] mary5030: has joined #RubyOnRails
[15:57:02] arup_r: has joined #RubyOnRails
[15:57:04] pawnbox: has joined #RubyOnRails
[15:58:00] pawnbox: has joined #RubyOnRails
[15:58:27] arup_r: What extra configuration I need to use factories in rails test console.. currently it is failing when I am trying to use them https://gist.github.com/aruprakshit/fa4041f8d423a7e3a8b2
[15:58:46] yardenbar: has joined #RubyOnRails
[15:58:52] upsell5: has joined #RubyOnRails
[15:59:00] alphaatom: has joined #RubyOnRails
[15:59:31] arup_r: I am using factory_girl_rails gem..
[15:59:34] pureofpure: has joined #RubyOnRails
[16:00:21] pureofpure: hey i asked before how can i upload directrly to s3 amazon a file from my rails file and someone suggest me CarrierWave and paperclip gems
[16:00:27] pureofpure: but my problem is this :
[16:00:41] pureofpure: i am generate new excel file with some values from user model
[16:00:44] pureofpure: and then export it
[16:00:55] Oliphaunte: has joined #RubyOnRails
[16:01:01] pureofpure: the exported file is downloaded on the users computer
[16:01:13] pureofpure: how instead of export this file for download
[16:01:20] pureofpure: to pass it on s3 ?
[16:01:54] pureofpure: i mean, when the user press export file , and the xls file is generated, instead of download it on user pc, to upload it on s3?
[16:03:12] Hates_: arup_r: and your phone table exists?
[16:03:48] Hates_: pureofpure: if you're using paperclip you would just add the file to your model and then pass on the url to the user instead of the file
[16:03:48] arup_r: yes.. it is happening with all factories.. so I think I don't have must needed configuration..
[16:04:22] Hates_: arup_r: but why are you using the console in the test environment anyways?
[16:04:47] Hates_: arup_r: and you say the table exists, but the error suggests otherwise
[16:04:53] arup_r: to test some cases .. but I couldn't reach till there as my factory is not loaded :p
[16:04:54] diegoviola: has joined #RubyOnRails
[16:05:27] Hates_: arup_r: what's wrong with the dev console?
[16:05:34] arup_r: humm.. your point is.. +1 .. I never ran rake db:migrate for test env
[16:05:47] arup_r: that is why it happened
[16:06:03] arup_r: I'll test now rails c --sandbox now
[16:06:30] pureofpure: Hates_: how can i do this? i just exporting the xls file
[16:07:09] Hates_: pureofpure: you probably need to write the file somewhere temporarily and then assign it
[16:07:27] cassioscabral: has joined #RubyOnRails
[16:09:21] pureofpure: Hates_: so i should keep it temporary on the server , then uploaded it, but is this save? there is no more directly way to do this?
[16:10:04] Hates_: pureofpure: you may be able to pass the file handle directly to paperclip without actually saving it, but you'd have to try it yourself
[16:11:05] NBarnes: has joined #RubyOnRails
[16:17:52] ynonp: has joined #RubyOnRails
[16:19:52] atomical_: has joined #RubyOnRails
[16:21:20] stannard: has joined #RubyOnRails
[16:25:29] startupality: has joined #RubyOnRails
[16:26:24] sarink: has joined #RubyOnRails
[16:31:38] startupality: has joined #RubyOnRails
[16:33:19] idefine: has joined #RubyOnRails
[16:34:04] yardenbar: has joined #RubyOnRails
[16:34:15] rubyonrailed: has joined #RubyOnRails
[16:36:22] doodleha_: has joined #RubyOnRails
[16:37:32] rgtk: has joined #RubyOnRails
[16:37:56] chipotle: has joined #RubyOnRails
[16:38:34] RegulationD: has joined #RubyOnRails
[16:38:38] shibabu: has joined #RubyOnRails
[16:39:28] EXCHGR: has joined #RubyOnRails
[16:39:36] idefine: has joined #RubyOnRails
[16:41:34] arBmind: has joined #RubyOnRails
[16:41:45] startupality: has joined #RubyOnRails
[16:43:13] atomical: has joined #RubyOnRails
[16:44:24] djbkd: has joined #RubyOnRails
[16:45:32] dionysus69: has joined #RubyOnRails
[16:45:47] idefine: has joined #RubyOnRails
[16:46:01] arup_r: Hates_: for sometime I forgot rake db migrate happens automatically when we run tests.. that is why in rails test console no table.. but now all is ok. To answer you why I am playing console :) .. I was reading doc and bulding factories, and I never knew I have a recursive call. :) Which I got to know after my tinkering with in console https://gist.github.com/aruprakshit/a273e4e63b3e300efb3c
[16:47:14] arup_r: now I'll re define them.. re thinking about them.. :)
[16:47:52] sandstrom: has joined #RubyOnRails
[16:49:09] Scient: https://blog.shodan.io/its-still-the-data-stupid/ see, proves that only clueless peeps use mongodb anyway </sarcasm>
[16:50:19] startupality: has joined #RubyOnRails
[16:50:24] syzygy_: has joined #RubyOnRails
[16:52:22] idefine: has joined #RubyOnRails
[16:53:13] rubyonrailed: has joined #RubyOnRails
[16:54:10] IrishGringo: has joined #RubyOnRails
[16:55:14] Hates_: How are they even exposed in the first place. Surprised at the lack of firewalls
[16:56:58] owenjones: has joined #RubyOnRails
[16:59:52] alex88: has joined #RubyOnRails
[17:02:00] ruurd: Surprised at the ubiquity of stupidity you mean
[17:02:04] djbkd: has joined #RubyOnRails
[17:02:35] idefine_: has joined #RubyOnRails
[17:05:03] _Tariq: has joined #RubyOnRails
[17:05:16] solars: has joined #RubyOnRails
[17:06:59] Oliphaunte: has joined #RubyOnRails
[17:12:40] idefine: has joined #RubyOnRails
[17:13:09] hardtail: has joined #RubyOnRails
[17:14:05] ElFerna: has joined #RubyOnRails
[17:15:11] manne: has joined #RubyOnRails
[17:26:50] uberjar: maybe the stupidity is generosity in disguise. There are starving children in the world who can't afford to spin up their own mongo instance, so I'm glad they have this open infrastructure available to run thier loads
[17:29:12] idefine: has joined #RubyOnRails
[17:32:32] codelahoma_: has joined #RubyOnRails
[17:32:32] build22_: has joined #RubyOnRails
[17:32:32] Jet4Fire_: has joined #RubyOnRails
[17:32:32] netzfisch: has joined #RubyOnRails
[17:32:32] syzygy_: has joined #RubyOnRails
[17:32:32] fumduq: has joined #RubyOnRails
[17:32:32] pipework: uberjar: It's nice to hear that even starving children have the same priorities as I do.
[17:32:32] Fridtjof_: has joined #RubyOnRails
[17:32:32] The_Phoenix1: has joined #RubyOnRails
[17:32:32] gaustin_: has joined #RubyOnRails
[17:32:35] sankaber: has joined #RubyOnRails
[17:33:23] atumzin: has joined #RubyOnRails
[17:33:23] atumzin: has joined #RubyOnRails
[17:33:39] Shapeshi1ter: has joined #RubyOnRails
[17:35:11] vagrant_: has joined #RubyOnRails
[17:35:16] ebertx: has joined #RubyOnRails
[17:35:33] williamcage: has joined #RubyOnRails
[17:36:45] Cervajz__: has joined #RubyOnRails
[17:37:11] akshat: has joined #RubyOnRails
[17:38:22] Ducky-: has joined #RubyOnRails
[17:38:24] Siyo: has joined #RubyOnRails
[17:38:25] Siyo: has joined #RubyOnRails
[17:39:15] gambl0re: has joined #RubyOnRails
[17:40:42] shibabu: has joined #RubyOnRails
[17:41:11] upsell5: has joined #RubyOnRails
[17:44:13] uberjar: pipework: well that might have been a bit of an exaggeration, but there are underage programmers out there who's parents can't afford it.. and also the "unbanked"
[17:45:03] LambdaSource: has joined #RubyOnRails
[17:45:23] doodlehaus: has joined #RubyOnRails
[17:45:43] Palsson: has joined #RubyOnRails
[17:47:47] StevenXL: has joined #RubyOnRails
[17:47:47] StevenXL: has joined #RubyOnRails
[17:49:30] idefine: has joined #RubyOnRails
[17:49:42] PedramT: has joined #RubyOnRails
[17:50:13] agit0: has joined #RubyOnRails
[17:53:49] rubyonrailed: has joined #RubyOnRails
[17:54:52] IrishGringo: has joined #RubyOnRails
[17:56:27] lacuna: has joined #RubyOnRails
[17:56:28] lacuna: has joined #RubyOnRails
[18:00:46] FaresKAlaboud: has joined #RubyOnRails
[18:01:46] StevenXL: has joined #RubyOnRails
[18:01:56] StevenXL: has joined #RubyOnRails
[18:01:57] sheepman: has joined #RubyOnRails
[18:02:06] Ducky-: has joined #RubyOnRails
[18:04:51] idefine: has joined #RubyOnRails
[18:12:43] startupality: has joined #RubyOnRails
[18:13:34] Javier1: has joined #RubyOnRails
[18:13:47] xcesariox: has joined #RubyOnRails
[18:14:33] sarink: has joined #RubyOnRails
[18:18:13] lacuna: has joined #RubyOnRails
[18:18:13] lacuna: has joined #RubyOnRails
[18:24:22] idefine: has joined #RubyOnRails
[18:24:27] startupality: has joined #RubyOnRails
[18:25:26] williamcage: has joined #RubyOnRails
[18:27:22] owenjones: has joined #RubyOnRails
[18:28:24] Or1on: has joined #RubyOnRails
[18:28:24] Or1on: has joined #RubyOnRails
[18:31:32] bronson: has joined #RubyOnRails
[18:32:26] stamina: has joined #RubyOnRails
[18:35:05] sandstrom: has joined #RubyOnRails
[18:39:00] djbkd: has joined #RubyOnRails
[18:40:08] alex88: has joined #RubyOnRails
[18:43:28] rubyonrailed: has joined #RubyOnRails
[18:44:51] blackmesa: has joined #RubyOnRails
[18:46:22] blackmes1: has joined #RubyOnRails
[18:47:50] jottr: has joined #RubyOnRails
[18:48:08] IrishGringo: has joined #RubyOnRails
[18:49:10] djbkd: has joined #RubyOnRails
[18:51:39] Megamos: has joined #RubyOnRails
[18:52:19] bronson: has joined #RubyOnRails
[18:54:11] idefine: has joined #RubyOnRails
[18:54:31] Jet4Fire_: has left #RubyOnRails: ()
[18:55:24] rubyonra_: has joined #RubyOnRails
[18:55:44] Jet4Fire: has joined #RubyOnRails
[18:56:06] blackmes1: has joined #RubyOnRails
[18:56:42] agit0: has joined #RubyOnRails
[19:00:39] doodlehaus: has joined #RubyOnRails
[19:00:43] teclator: has joined #RubyOnRails
[19:03:43] sankaber: has joined #RubyOnRails
[19:06:54] ElFerna: has joined #RubyOnRails
[19:07:06] idefine: has joined #RubyOnRails
[19:09:44] sarink: has joined #RubyOnRails
[19:09:50] StevenXL: has joined #RubyOnRails
[19:09:51] StevenXL: has joined #RubyOnRails
[19:11:48] Guest78886: has joined #RubyOnRails
[19:12:33] harai: has joined #RubyOnRails
[19:14:38] stamina: has joined #RubyOnRails
[19:14:39] nya: has joined #RubyOnRails
[19:18:10] ewnd9_: has joined #RubyOnRails
[19:20:45] alex88: hi there, why with a request header of "Accept:application/json, text/plain, */*" rails tries to render the html template?
[19:20:48] NBarnes: has joined #RubyOnRails
[19:20:57] alex88: my render statement the controller is just "render 'images/show', status: :created, location: @image"
[19:21:07] alex88: but I thought it would automatically fetch the json version
[19:22:44] stannard: has joined #RubyOnRails
[19:23:40] rubyonrailed: has joined #RubyOnRails
[19:24:12] bratsche: has joined #RubyOnRails
[19:24:42] Oliphaunte: has joined #RubyOnRails
[19:30:22] eyck: has joined #RubyOnRails
[19:32:17] owenjones: has joined #RubyOnRails
[19:33:07] Darkman738: has joined #RubyOnRails
[19:33:07] kadoppe: has joined #RubyOnRails
[19:35:36] yardenbar: has joined #RubyOnRails
[19:39:46] sankaber: has joined #RubyOnRails
[19:43:02] joshkovach: has joined #RubyOnRails
[19:44:15] shibabu: has joined #RubyOnRails
[19:47:50] blackmes1: has joined #RubyOnRails
[19:48:15] jbermudes: has joined #RubyOnRails
[19:48:16] jbermudes: has joined #RubyOnRails
[19:52:48] stannard: has joined #RubyOnRails
[19:53:13] Pazician: has joined #RubyOnRails
[19:55:00] harai54: has joined #RubyOnRails
[19:57:03] idefine: has joined #RubyOnRails
[19:59:14] joshkovach: has joined #RubyOnRails
[20:02:03] doodlehaus: has joined #RubyOnRails
[20:02:42] owenjones: has joined #RubyOnRails
[20:05:14] ibouvousaime: has joined #RubyOnRails
[20:06:08] ElFerna: has joined #RubyOnRails
[20:06:58] nerium: has joined #RubyOnRails
[20:07:52] nerium: Is there any gem (or similuar) that makes it possible to run partials async? So if you for example have a slow partial, you run it in the background and the push it to the font end
[20:11:36] DLSteve: has joined #RubyOnRails
[20:13:03] diegoviola: that's a bad idea
[20:13:19] diegoviola: just make your partial fast
[20:15:34] lacuna: has joined #RubyOnRails
[20:15:35] lacuna: has joined #RubyOnRails
[20:21:03] ruid: has joined #RubyOnRails
[20:21:03] ruid: has joined #RubyOnRails
[20:23:51] FailBit: partials can't be run async because they depend on the controller
[20:23:55] FailBit: no, really
[20:24:11] lacuna: has joined #RubyOnRails
[20:24:15] FailBit: if you try you will run into insane ordering issues
[20:24:24] FailBit: I can try to help you make your partial fast
[20:25:02] smathy: has joined #RubyOnRails
[20:29:35] griffindy: has joined #RubyOnRails
[20:29:47] rakm: has joined #RubyOnRails
[20:31:51] nerium: FailBit: The problem is the SQL, it can be faster
[20:32:58] nerium: FailBit: It wouldn???t be that difficult to just check all the local variables, push them and the async block to redis and run it in the background
[20:33:20] idefine: has joined #RubyOnRails
[20:33:23] nerium: All local variables in the partial I mean
[20:34:36] eyck: has joined #RubyOnRails
[20:34:57] nerium: diegoviola: What if that???s not possible?
[20:35:58] dandaman: has joined #RubyOnRails
[20:36:26] FailBit: a.) what do you mean it can't be faster
[20:36:51] FailBit: b.) "I reject your reality and substitute my own" redis is still a datastore that incurs a cost for accessing
[20:36:52] nerium: FailBit: The query can???t be faster
[20:37:05] FailBit: why can't it be faster
[20:37:08] FailBit: is it not indexed properly?
[20:37:09] nerium: FailBit: I think you misunderstood my problem
[20:37:14] nerium: *solution
[20:37:42] nerium: One solution would be to push the code to something like sidekiq and run it async, then push it to the client
[20:37:46] trautwein: has joined #RubyOnRails
[20:38:32] nerium: FailBit: It generates stats based on 1.5B records. Everything above 150ms would be considered slow
[20:38:32] FailBit: why is the SQL slow?
[20:38:50] FailBit: I would consider using elasticsearch for such
[20:38:56] FailBit: depends on the stats, but eh
[20:39:16] nerium: FailBit: Already using that for another problem. Way to error prone
[20:39:48] nerium: Not ES itself, but keeping two databases in sync a simular problems
[20:40:07] RegulationD: has joined #RubyOnRails
[20:40:08] FailBit: we made it work, but I won't go there
[20:40:20] FailBit: so I think you want a warmer?
[20:40:31] FailBit: how often do the results of the query change
[20:40:32] nerium: FailBit: Me to, but it took 2 years
[20:40:46] FailBit: hah, for us it took about 6 days
[20:40:46] nerium: Every week
[20:41:11] FailBit: nerium: so there is your answer
[20:41:15] nerium: This is not my job, it just a project for fun that happens to have 110k dayly users
[20:41:28] FailBit: spin up a cronjob every week to recalculate the query in the background
[20:41:28] netzfisch: has joined #RubyOnRails
[20:41:38] FailBit: then push that to redis and tada
[20:41:47] nerium: FailBit: No, not for every user. That would take half a year
[20:42:02] nfk|laptop: has joined #RubyOnRails
[20:42:10] FailBit: you forgot to give me your box of context
[20:42:23] FailBit: ACTION shakes it, hears a rattling noise
[20:43:03] FailBit: can I ask what your query is?
[20:44:30] cornerma1: has joined #RubyOnRails
[20:45:02] nerium: FailBit: Just to set the level of knowledge from my part. I???ve been using rails for 9 years and SQL for 15. I???ve tried everything obvious like caching, optimizing, fulltext engine, predefined background jobs that populates and temp table and so on. I???m currently looking for something that would run a query async, on-demand.
[20:45:37] nerium: FailBit: It compares the users stat against all other users.
[20:46:39] rails242: has joined #RubyOnRails
[20:46:41] nerium: Pushing a block of code to a background job woudn???t be that difficult, which why I asked if it already existed
[20:47:01] FailBit: if you need half a partial just stick an iframe in the middle and load er up
[20:47:33] FailBit: I have a feeling that comparing the user's statistics against 1.5 billion others might be a touch out there, by the laws of physics
[20:48:17] nerium: FailBit: I dont have 1.5B users, just 1.5B records to walk trough
[20:48:32] nerium: FailBit: That would block the webserver
[20:48:44] nerium: And this is also something I wouldnt run on my production server
[20:49:16] idefine: has joined #RubyOnRails
[20:49:51] jottr: has joined #RubyOnRails
[20:50:01] FailBit: if the data are normal I could suggest a weekly cronjob that builds distribution statistics about the records, then a simpler calculation when the users requests the information
[20:50:06] FailBit: but I don't know
[20:50:11] FailBit: you seem to be in a bind
[20:50:19] blackmes1: has joined #RubyOnRails
[20:51:13] nerium: FailBit: Tried something simular a couple of weeks ago. Still way to slow
[20:51:34] nerium: FailBit: Even if the query only would take 1sec it would still be to slow.
[20:52:49] FailBit: I don't think there is anything I can honestly do to help the situation, as it is, but if I knew very specifically what the query does I could try to find a way to make it work
[20:52:59] FailBit: if you don't want to share I'll go back to my perf benchmarks
[20:53:37] nerium: FailBit: Share what?
[20:54:28] FailBit: raw SQL or just an idea of what the database is doing to perform the aggregation
[20:54:39] Pazician: has joined #RubyOnRails
[20:55:20] nerium: FailBit: Something like this would be nice https://gist.github.com/oleander/02b472c4b8b3d3916099
[20:57:33] idefine: has joined #RubyOnRails
[20:58:57] FailBit: nerium: that's where you get into the dependency ordering thing
[20:59:02] FailBit: ERB is designed to be streamed
[20:59:21] nerium: FailBit: You just return a string and set up a socket to a websocket server
[20:59:53] FailBit: isn't that basically the iframe solution?
[20:59:54] nerium: when the data is calcaulted you just push it to the client and replace ???loading ..??? with what ever was calculated
[21:00:12] nerium: FailBit: No, that would block the webserver
[21:00:20] FailBit: so would a websocket
[21:00:32] rails242: I have problems with respond_with in a view create. After completing a html form who head to create method in the controller, next step should be the rendering of show.html.erb. But it not happens
[21:00:39] nerium: FailBit: No, why would that be?
[21:01:00] rails242: could you give me some hints?
[21:01:09] FailBit: nerium: er, because the app has to write to it?
[21:01:32] nerium: FailBit: The websocket connection is something different from rails, like faye.js
[21:02:49] FailBit: then, add in a JS frame to load the result from the websocket
[21:03:09] FailBit: presumably the JS appserver would keep the results warmed
[21:03:43] nerium: FailBit: Inserting the data seams like the least of my problems :)
[21:04:01] nerium: FailBit: Are you sure it???s possible to connect an iframe to a socket connection?
[21:04:22] FailBit: JS makes the wss:// connection
[21:04:25] FailBit: was what I meant
[21:04:51] FailBit: I do not into javascript
[21:05:01] FailBit: I just tell other people to write it so I don't horribly mess it up
[21:05:43] nerium: FailBit: Haha, like a boss
[21:06:47] FailBit: I usually do more backend optimization work and less frontend work
[21:07:41] kegan_: has joined #RubyOnRails
[21:08:21] nerium: FailBit: I???ve to do everything. Darn
[21:08:24] FailBit: elasticsearch is our worst performer but it's better than having postgresql do it :P
[21:09:00] pawnbox: has joined #RubyOnRails
[21:09:02] FailBit: https://i.imgur.com/JNg5al2.png
[21:09:03] nerium: FailBit: True, the problem with ES the redundent data. My DB is almost 4TB
[21:09:18] FailBit: turn _source and _all off, index only what you need
[21:09:28] idefine: has joined #RubyOnRails
[21:09:45] FailBit: use doc_values, forget fielddata
[21:10:37] sankaber: has joined #RubyOnRails
[21:10:43] FailBit: our database is 44GB (elastic indexing 18GB from 111mil database rows)
[21:10:44] doodlehaus: has joined #RubyOnRails
[21:10:47] nerium: FailBit: What makes ES (or any other full text engine) is that you flatten our the relation, which makes a lot of data redundent
[21:10:59] nerium: *What makes ES so big
[21:11:35] FailBit: yes, lucene uses an inverted index
[21:12:27] nerium: FailBit: That???s a small db. I think our pg set up is about 400gb
[21:12:30] upsell5: has joined #RubyOnRails
[21:12:38] nerium: s/out/mine
[21:12:52] nerium: f*ck, shouldn???t press enter so fast
[21:13:04] nerium: *s/our/mine
[21:13:56] FailBit: I run the biggest rails imageboard in the world and the project only has about 130mil database rows total
[21:15:06] atomical_: has joined #RubyOnRails
[21:15:13] nerium: FailBit: I guess that depends on how much you log
[21:15:27] nerium: My major is in statistics so I log everything
[21:15:32] FailBit: we log everything
[21:15:36] FailBit: just not to a datastore
[21:16:41] FailBit: ACTION puts on todo list: index spare logs someday
[21:17:01] fox_mulder_cp: FailBit: what store are you use?
[21:17:09] williamcage: has joined #RubyOnRails
[21:17:10] FailBit: fox_mulder_cp: ?
[21:17:27] rails242: Why from a create (view) to show (view) the show.html.erb is not rendered? I use respond_with. Could You help me?
[21:17:34] FailBit: fox_mulder_cp: by the loose definition of "datastore", multiple
[21:17:45] FailBit: postgresql, elasticsearch, memcached, redis
[21:18:03] FailBit: rails242: create should redirect to show
[21:18:07] FailBit: not render
[21:18:51] rails242: If I would render the show.html.erb How can I do Failbit? Could you explain to me please?
[21:19:06] fox_mulder_cp: create - POST method, with redirect to show object or index list
[21:19:24] FailBit: it is done implicitly for you
[21:19:33] FailBit: if you are using MimeResponds it is format.html{}
[21:19:53] jmrepetti: has joined #RubyOnRails
[21:19:59] FailBit: nerium: we actually used to use mongodb
[21:20:02] FailBit: that was fun(tm)
[21:20:20] FailBit: (it was a living hell, there was a mongo-related downtime every other week)
[21:20:24] fox_mulder_cp: FailBit: do u use some log analytic, such as sentry, as example?
[21:20:25] nerium: FailBit: *runs away*
[21:20:33] ynonp: has joined #RubyOnRails
[21:20:49] nerium: FailBit: I???m still using mongo for errbut
[21:20:54] nerium: It???s a hell
[21:21:16] FailBit: fox_mulder_cp: the logs that come from the application itself are rotated onto the backup server
[21:21:22] NBarnes: has joined #RubyOnRails
[21:21:32] FailBit: we also have a logger bot that writes to IRC and that's where public logs go
[21:21:52] fox_mulder_cp: FailBit: and what about logs analytic?
[21:22:02] FailBit: lol analytics
[21:22:12] FailBit: https://derpibooru.org/stats
[21:22:17] FailBit: this is the most we got for analytics
[21:22:29] bronson: has joined #RubyOnRails
[21:22:51] owenjones: has joined #RubyOnRails
[21:22:52] blackmesa: has joined #RubyOnRails
[21:24:24] sucks: has joined #RubyOnRails
[21:24:24] fox_mulder_cp: FailBit: what is pick in jul 2012?
[21:25:31] FailBit: what do you mean by "what is pick" ?
[21:25:48] fox_mulder_cp: extra big values
[21:26:02] FailBit: oh the peak
[21:26:09] jmrepetti: has joined #RubyOnRails
[21:26:22] FailBit: that was when our predecessor gave up the ghost
[21:26:37] FailBit: there is a line on the chart annotating that
[21:28:53] fox_mulder_cp: FailBit: this diagrams - have a gem for rails?
[21:29:05] FailBit: it's just amcharts
[21:29:24] pawnbox: has joined #RubyOnRails
[21:29:25] ferr: has joined #RubyOnRails
[21:29:32] idefine: has joined #RubyOnRails
[21:29:59] fox_mulder_cp: i use this js lib on my job project, but it use php..
[21:32:13] s2013: has joined #RubyOnRails
[21:32:49] FailBit: fox_mulder_cp: https://gist.github.com/liamwhite/ae4435649c625a69d429
[21:34:40] erich: has joined #RubyOnRails
[21:36:59] nfk|laptop: has joined #RubyOnRails
[21:38:02] chouhoulis: has joined #RubyOnRails
[21:38:09] itsmeduncan: has joined #RubyOnRails
[21:38:23] dandaman: has joined #RubyOnRails
[21:39:05] itsmeduncan: Can someone help me understand why I am getting a uninitialized constant Coffee::Rails::Application on a brand new Rails 5 beta app? https://gist.github.com/itsmeduncan/2f5e50b8108455fab4b1
[21:39:54] FailBit: try removing spring
[21:40:33] Shoutsid: has joined #RubyOnRails
[21:41:44] chipotle: has joined #RubyOnRails
[21:41:59] itsmeduncan: @FailBit After removing it from the Gemfile, and stopping the processes I still get the same error.
[21:42:36] akaiiro: has joined #RubyOnRails
[21:42:37] FailBit: I looked at the error
[21:42:43] samgranieri: has joined #RubyOnRails
[21:42:47] FailBit: it's a scope problem
[21:43:13] FailBit: since your app is called Coffe, what it really means is 'uninitialized constant Rails::Application'
[21:43:32] FailBit: I think there might be some module collision occurring
[21:44:12] ss_much: has joined #RubyOnRails
[21:44:26] itsmeduncan: Seems you can't name a Rails app Coffee.
[21:45:29] itsmeduncan: It is because of CoffeeScript.
[21:45:57] shoutsid06: has joined #RubyOnRails
[21:46:52] _Tariq: has joined #RubyOnRails
[21:46:54] diegoviola: has joined #RubyOnRails
[21:47:00] shibabu: has joined #RubyOnRails
[21:48:05] quazimodo: has joined #RubyOnRails
[21:49:19] nerium: has joined #RubyOnRails
[21:49:40] idefine: has joined #RubyOnRails
[21:51:03] pawnbox: has joined #RubyOnRails
[21:54:30] joshkovach: has joined #RubyOnRails
[21:59:28] _Tariq: has joined #RubyOnRails
[22:00:03] nerium: has joined #RubyOnRails
[22:00:16] marr: has joined #RubyOnRails
[22:01:30] fox_mulder_cp: itsmeduncan: so how your experience of r5beta? positive or have a problems?
[22:02:04] itsmeduncan: @fox_mulder_cp I haven't really done much with it. Just fired up a new side-project and was giving it a whirl. Looks like almost no gems support it yet so it'll be slow going.
[22:02:07] ornerymoose: has joined #RubyOnRails
[22:02:12] itsmeduncan: Just don't name your app Coffee. :-)
[22:03:27] fox_mulder_cp: itsmeduncan: this naming problem not rails, in other stacks i have this naming bug too
[22:05:28] PedramT: has joined #RubyOnRails
[22:05:35] jottr: has joined #RubyOnRails
[22:06:12] itsmeduncan: This is true. Just a funny coincidence.
[22:08:21] rakm: has joined #RubyOnRails
[22:09:40] nerium: Anyone knows a solution for keeping track and updating oauth2 keys?
[22:10:20] rhizome: nerium: do we already know what you mean by that?
[22:11:06] nerium: rhizome: I guess anyone using oauth2 knows what I???m talking about
[22:13:32] tuelz: has joined #RubyOnRails
[22:13:53] williamcage: has joined #RubyOnRails
[22:15:47] atomical: has joined #RubyOnRails
[22:16:53] rgtk: has joined #RubyOnRails
[22:16:53] erich: has joined #RubyOnRails
[22:17:36] jobewan: has joined #RubyOnRails
[22:18:08] s2013: has joined #RubyOnRails
[22:18:24] atomical: has joined #RubyOnRails
[22:20:46] syzygy_: has joined #RubyOnRails
[22:22:01] jobewan: has joined #RubyOnRails
[22:24:34] doodlehaus: has joined #RubyOnRails
[22:28:42] rubyonrailed: has joined #RubyOnRails
[22:29:44] StevenXL: has joined #RubyOnRails
[22:29:44] StevenXL: has joined #RubyOnRails
[22:31:01] pawnbox: has joined #RubyOnRails
[22:31:04] Oliphaunte: has joined #RubyOnRails
[22:32:02] owenjones: has joined #RubyOnRails
[22:33:58] gaustin: has joined #RubyOnRails
[22:34:26] YankNYC: has joined #RubyOnRails
[22:36:37] stannard: has joined #RubyOnRails
[22:39:12] chouhoulis: has joined #RubyOnRails
[22:39:46] williamcage: has joined #RubyOnRails
[22:40:39] _Tariq: has joined #RubyOnRails
[22:42:16] roshanavand: has joined #RubyOnRails
[22:43:28] Cervajz: has joined #RubyOnRails
[22:44:44] Cervajz_: has joined #RubyOnRails
[22:45:44] _djbkd: has joined #RubyOnRails
[22:49:21] hardtail: has joined #RubyOnRails
[22:50:12] shibabu: has joined #RubyOnRails
[22:51:18] S1kx: has joined #RubyOnRails
[22:54:37] mary5030: has joined #RubyOnRails
[22:54:39] Cervajz: has joined #RubyOnRails
[22:55:37] Pazician: has joined #RubyOnRails
[23:10:55] pawnbox: has joined #RubyOnRails
[23:12:07] Jasaka: has joined #RubyOnRails
[23:14:27] tuelz: has joined #RubyOnRails
[23:16:58] johnflux: has joined #RubyOnRails
[23:23:58] doodlehaus: has joined #RubyOnRails
[23:25:47] owenjones: has joined #RubyOnRails
[23:25:59] Oliphaunte: has joined #RubyOnRails
[23:26:29] rgtk: has joined #RubyOnRails
[23:27:36] dogic: has joined #RubyOnRails
[23:27:47] thecyclone: has joined #RubyOnRails
[23:28:31] idefine: has joined #RubyOnRails
[23:29:06] dogic: i have the following line of code: Models::Group.includes(:users).where("groups.id = ? AND users.is_deleted = ?", @group_id, false)
[23:29:26] dogic: however this only returns groups that have at least one non deleted user
[23:29:37] dogic: i want to return ALL groups
[23:30:26] dogic: sorry i mean it returns the one group if it has > 0 non deleted users
[23:30:28] akaiiro: has joined #RubyOnRails
[23:30:46] dogic: i want to return the group regardless of number of deleted users
[23:31:05] sandstrom: has joined #RubyOnRails
[23:31:07] thecyclone: hello guys, I am new.. I have created a model (User) with user.rb file ( http://pastie.org/10642362 ). But I am getting this error( http://pastie.org/10642365 ). Please Help!
[23:31:54] thecyclone: I want to make sure email is unique but not case-sensitive
[23:32:23] FailBit: ruby syntax is hard
[23:33:16] FailBit: validates :email, presence: true, length: {maximum: 255}, format: {with: VALID_EMAIL_REGEX}, uniqueness: true, case_sensitive: false
[23:33:28] FailBit: you should split that up over a couple of lines as well
[23:33:29] johnflux: has joined #RubyOnRails
[23:33:30] johnflux: has joined #RubyOnRails
[23:34:19] thecyclone: didn't pay attention while pasting.. sorry!
[23:34:57] FailBit: dogic: you need a join and not includes
[23:36:00] FailBit: nerium: what is your site?
[23:36:02] FailBit: I'm curious now
[23:36:24] samgranieri: has joined #RubyOnRails
[23:36:28] thecyclone: FailBit: oops, I missed the true part. works now but test fails .. thanks for your time
[23:36:33] dogic: FailBit: i thought :includes does a left outer join
[23:36:39] dogic: and .joins does an inner join?
[23:36:47] FailBit: ACTION shakes head
[23:36:56] jottr: has joined #RubyOnRails
[23:36:56] FailBit: includes does not normally do a join
[23:37:09] FailBit: it normally does a second query unless it can detect you are referencing another table
[23:37:36] FailBit: http://blog.arkency.com/2013/12/rails4-preloading/
[23:38:02] dogic: i was going off this: http://guides.rubyonrails.org/active_record_querying.html#specifying-conditions-on-eager-loaded-associations
[23:38:05] doodlehaus: has joined #RubyOnRails
[23:38:10] dogic: "This would generate a query which contains a LEFT OUTER JOIN whereas the joins method would generate one using the INNER JOIN function instead."
[23:38:29] FailBit: that may be correct
[23:38:35] netzfisch: has joined #RubyOnRails
[23:38:41] _Tariq: has joined #RubyOnRails
[23:38:43] FailBit: but you should use joins or a :references hash
[23:38:54] jottr_: has joined #RubyOnRails
[23:38:57] FailBit: (see my link)
[23:39:56] chouhoulis: has joined #RubyOnRails
[23:39:56] ariedler: has joined #RubyOnRails
[23:44:01] swav: has joined #RubyOnRails
[23:45:09] rattatmatt: has joined #RubyOnRails
[23:47:37] stannard: has joined #RubyOnRails
[23:48:13] idefine: has joined #RubyOnRails
[23:48:20] dandaman: has joined #RubyOnRails
[23:48:25] dogic: Fallbit: ok now im doing Models::Group.includes(:users).where("groups.id = ? AND users.is_deleted = ?", @group_id, false).references(:users).first
[23:48:46] dogic: but this still doesnt return the group if the group has 0 nondeleted users
[23:53:56] roshanavand: has joined #RubyOnRails
[23:55:26] ewnd9: has joined #RubyOnRails
[23:59:20] syzygy_: has joined #RubyOnRails