« Back to channel list

#RubyOnRails - 18 January 2018

« Back 1 day Forward 1 day »
[00:01:11] ivanskie: has joined #RubyOnRails
[00:04:41] marr: has joined #RubyOnRails
[00:09:55] truenito: has joined #RubyOnRails
[00:10:46] ur5us: has joined #RubyOnRails
[00:10:53] _aeris_: has joined #RubyOnRails
[00:17:12] _aeris_: has joined #RubyOnRails
[00:17:43] ali_g: has joined #RubyOnRails
[00:19:56] meesles: has joined #RubyOnRails
[00:21:25] wethu: has joined #RubyOnRails
[00:27:39] _aeris_: has joined #RubyOnRails
[00:29:46] guacamole: has joined #RubyOnRails
[00:35:22] bronson: has joined #RubyOnRails
[00:57:23] ali_g1: has joined #RubyOnRails
[01:12:51] ivanskie: has joined #RubyOnRails
[01:13:18] workmad3: has joined #RubyOnRails
[01:19:32] LateralOctober: has joined #RubyOnRails
[01:26:42] jaysern: has joined #RubyOnRails
[01:27:32] jaysern: I don’t think this is a new issue, I must be missing something obvious. How does one save a deserialized ActiveRecord object to a database?
[01:35:10] dogweather: jaysern: This article is really helpful. http://dev.edenspiekermann.com/2016/09/09/rails-multitenant-site/
[01:35:47] dogweather: Sorry, that was for fugee and mice
[01:36:10] bronson: has joined #RubyOnRails
[01:36:32] dogweather: I'm dealing with the multitenancy issue currently: making web apps for each U.S. state laws
[01:37:21] kapil___: has joined #RubyOnRails
[01:37:37] dogweather: I'm thinking about the user experience, e.g., does the user even _care_ that there are other state instances?
[01:39:31] vichib: has joined #RubyOnRails
[01:40:35] vichib: has joined #RubyOnRails
[01:41:42] vichib: has joined #RubyOnRails
[01:42:43] vichib: has joined #RubyOnRails
[01:43:47] vichib: has joined #RubyOnRails
[01:45:34] jaysern: I’m stumped on trying to figure out how to save an object :( https://stackoverflow.com/questions/48312459/deserialized-rails-activerecord-object-wont-save-to-sql-database
[01:55:26] veloutin: has joined #RubyOnRails
[01:55:28] kanzure: has joined #RubyOnRails
[01:55:39] amperry: has joined #RubyOnRails
[01:55:47] jtperreault: has joined #RubyOnRails
[01:56:15] ewilliam: has joined #RubyOnRails
[01:56:19] dustinm`: has joined #RubyOnRails
[01:56:28] Takumo: has joined #RubyOnRails
[01:56:29] nOgAnOo: has joined #RubyOnRails
[01:56:32] Travis-42: has joined #RubyOnRails
[01:56:53] alfie: has joined #RubyOnRails
[01:57:06] SuperTux88: has joined #RubyOnRails
[02:00:27] ltd: has joined #RubyOnRails
[02:02:25] listenmore: has joined #RubyOnRails
[02:06:04] one_zero: has joined #RubyOnRails
[02:11:37] _aeris_: has joined #RubyOnRails
[02:11:54] jnollette: has joined #RubyOnRails
[02:24:46] zigzig: has joined #RubyOnRails
[02:28:17] meesles: Can you give a bit of context for the problem you're solving?
[02:28:36] meesles: Seems a bit weird, but depending on what you're doing with the records there's concerns about the IDs
[02:29:39] mtkd: has joined #RubyOnRails
[02:31:04] meesles: And are you using PSQL?
[02:31:48] _aeris_: has joined #RubyOnRails
[02:32:13] Kugz: has joined #RubyOnRails
[02:36:06] drewintx: has joined #RubyOnRails
[02:37:14] bronson: has joined #RubyOnRails
[02:38:07] JusticeFries: has joined #RubyOnRails
[02:42:43] Vircung: has joined #RubyOnRails
[02:43:45] LightStalker: has joined #RubyOnRails
[02:45:08] _aeris_: has joined #RubyOnRails
[02:47:00] _aeris_: has joined #RubyOnRails
[02:51:25] jnollette: has joined #RubyOnRails
[02:54:41] ivanskie: has joined #RubyOnRails
[02:58:45] nso95: has joined #RubyOnRails
[03:02:15] _aeris_: has joined #RubyOnRails
[03:09:01] zigzig: has joined #RubyOnRails
[03:09:17] ivanskie: has joined #RubyOnRails
[03:09:52] justicef_: has joined #RubyOnRails
[03:14:08] workmad3: has joined #RubyOnRails
[03:20:10] orbyt_: has joined #RubyOnRails
[03:26:39] darkhanb: has joined #RubyOnRails
[03:30:29] blitz: has joined #RubyOnRails
[03:30:34] sunrunner20: has joined #RubyOnRails
[03:30:35] planigan: has joined #RubyOnRails
[03:31:07] jhass: has joined #RubyOnRails
[03:31:30] newton: has joined #RubyOnRails
[03:31:31] mattwc: has joined #RubyOnRails
[03:31:51] leeky: has joined #RubyOnRails
[03:31:52] Kamuela: has joined #RubyOnRails
[03:31:52] r3my: has joined #RubyOnRails
[03:32:10] jxf: has joined #RubyOnRails
[03:32:58] JoshL: has joined #RubyOnRails
[03:38:09] thejamespinto: has joined #RubyOnRails
[03:38:14] bronson: has joined #RubyOnRails
[03:38:32] guacamole: has joined #RubyOnRails
[03:53:36] hahuang65: has joined #RubyOnRails
[04:05:09] Dykam: has joined #RubyOnRails
[04:06:39] zone2020: has joined #RubyOnRails
[04:09:00] hahuang61: has joined #RubyOnRails
[04:10:29] zone2020: Good evening from Toronto. I've come to ask for help with a question I've already posted on SO: https://stackoverflow.com/questions/48296800/how-do-i-make-available-mem-and-data-files-that-sit-alongside-javascript
[04:13:54] ur5us: has joined #RubyOnRails
[04:22:34] Saukk: has joined #RubyOnRails
[04:27:16] egray: has joined #RubyOnRails
[04:33:06] LateralO1: has joined #RubyOnRails
[04:38:30] pinkfloyd1911: has joined #RubyOnRails
[04:38:48] bronson: has joined #RubyOnRails
[04:44:16] vichib: has joined #RubyOnRails
[05:05:32] alfiemax: has joined #RubyOnRails
[05:15:04] workmad3: has joined #RubyOnRails
[05:16:04] thejamespinto: has joined #RubyOnRails
[05:17:23] kies: has joined #RubyOnRails
[05:18:23] iamarun: has joined #RubyOnRails
[05:20:13] Kugz: has joined #RubyOnRails
[05:23:20] alfiemax: has joined #RubyOnRails
[05:37:48] DTZUZO: has joined #RubyOnRails
[05:39:44] bronson: has joined #RubyOnRails
[05:53:23] nso95: has left #RubyOnRails: ()
[06:01:05] thejamespinto: has joined #RubyOnRails
[06:09:57] MrCrackPotBuilde: has joined #RubyOnRails
[06:14:17] baweaver: has joined #RubyOnRails
[06:24:45] iamarun: has joined #RubyOnRails
[06:33:45] LateralOctober: has joined #RubyOnRails
[06:40:32] bronson: has joined #RubyOnRails
[06:47:10] darkhanb: has joined #RubyOnRails
[06:50:33] KeyJoo: has joined #RubyOnRails
[06:52:25] conta: has joined #RubyOnRails
[06:53:44] thejamespinto: has joined #RubyOnRails
[06:56:46] DrYockel1: has joined #RubyOnRails
[06:56:56] conta1: has joined #RubyOnRails
[07:01:11] za1b1tsu: has joined #RubyOnRails
[07:01:19] alfiemax: has joined #RubyOnRails
[07:01:35] alfiemax: has joined #RubyOnRails
[07:07:53] timdotrb: has joined #RubyOnRails
[07:10:03] kapil___: has joined #RubyOnRails
[07:10:47] Dykam: has joined #RubyOnRails
[07:11:19] darkhanb: has joined #RubyOnRails
[07:14:44] bronson: has joined #RubyOnRails
[07:15:44] workmad3: has joined #RubyOnRails
[07:16:09] ur5us: has joined #RubyOnRails
[07:42:30] AzaToth: has joined #RubyOnRails
[07:44:32] conta1: has joined #RubyOnRails
[07:49:46] roshanavand: has joined #RubyOnRails
[07:50:23] dionysus69: has joined #RubyOnRails
[07:50:28] Terens: has joined #RubyOnRails
[07:59:35] conta1: has joined #RubyOnRails
[08:03:19] mtkd: has joined #RubyOnRails
[08:04:23] thejamespinto: has joined #RubyOnRails
[08:11:54] Dimik: has joined #RubyOnRails
[08:18:46] apeiros: has joined #RubyOnRails
[08:19:30] bronson: has joined #RubyOnRails
[08:22:38] arBmind: has joined #RubyOnRails
[08:25:39] zigzig: has joined #RubyOnRails
[08:29:03] za1b1tsu: So I'm trying to be cool and do pluck(%i(id name description))
[08:29:29] za1b1tsu: and I'm getting this Arel::Visitors::UnsupportedVisitError:
[08:29:29] za1b1tsu: Unsupported argument type: Symbol. Construct an Arel node instead.
[08:33:10] za1b1tsu: or be super cool and do pluck *%i(id name description)
[08:33:13] za1b1tsu: still does not work
[08:33:17] za1b1tsu: should work no?
[08:34:18] LateralO1: has joined #RubyOnRails
[08:40:24] havenwood: za1b1tsu: pluck(*%i(id name description))
[08:40:34] havenwood: za1b1tsu: It takes multiple args, not an Array.
[08:41:32] havenwood: za1b1tsu: pluck(:id, :name, :description)
[08:41:45] za1b1tsu: the only way it works is
[08:41:53] za1b1tsu: x = %i(....)
[08:42:54] havenwood: za1b1tsu: Or don't use an Array in the first place, unless that's something you need to do for some reason. Just: pluck ....
[08:43:26] apeiros: za1b1tsu: pluck(*%i[foo bar]) works just fine
[08:43:36] apeiros: if it fails for you, then you're doing something else wrong
[08:43:54] havenwood: as does: pluck(:foo, :bar)
[08:45:08] apeiros: one potential reason: too old AR
[08:45:30] za1b1tsu: apeiros %i() or %i[]
[08:45:37] apeiros: both are the same
[08:45:44] apeiros: I prefer [] to indicate arrays
[08:45:49] havenwood: za1b1tsu: %{} or %||, etc
[08:46:34] havenwood: za1b1tsu: The %[] look like an Array, so that's the most commonly used for Arrays unless you have a reason to use something else.
[08:47:00] havenwood: %i[], %w[], etc
[08:47:02] za1b1tsu: it works with %i[] but not with %i()
[08:47:42] apeiros: that really sounds like "doing something else wrong"
[08:48:24] havenwood: za1b1tsu: that doesn't sound right - check for typos
[08:48:33] havenwood: za1b1tsu: confirm changing just that detail
[08:48:46] za1b1tsu: now it works
[08:48:51] apeiros: ACTION puts money on ")"
[08:48:54] za1b1tsu: werid, what the hell was aI doing wrong
[08:49:00] za1b1tsu: nooo. dont take my money
[08:49:02] havenwood: ¯\_(ツ)_/¯
[08:49:18] za1b1tsu: anyways salute 07 thank you
[08:49:22] za1b1tsu: damn ruby is sexy as hell
[08:49:33] apeiros: hell is sexy?
[08:52:24] za1b1tsu: depends on what your into
[08:52:28] za1b1tsu: you ever played Nox?
[09:14:25] srinidhi: has joined #RubyOnRails
[09:14:27] marr: has joined #RubyOnRails
[09:16:37] workmad3: has joined #RubyOnRails
[09:17:11] apeiros: za1b1tsu: nope
[09:18:20] trautwein: has joined #RubyOnRails
[09:22:10] za1b1tsu: aperios: eh, then the story ends here
[09:35:01] apeiros: za1b1tsu: pro tip: use tab completion for nicks. avoids embarrassing typos like what you just did :-p
[09:43:11] dminuoso: If you ever write your own kernel, that's the project name.
[09:43:23] dminuoso: Just like mine was named dminuOS :D
[09:49:25] Aherin: has joined #RubyOnRails
[09:58:46] za1b1tsu: so sorry :))
[09:59:21] za1b1tsu: aperiOS, hmmmm, decent
[10:01:09] dminuoso: of course it might very well be apeirOS.
[10:01:43] Puffball: has joined #RubyOnRails
[10:02:20] apeiros: Ape's Intergalactic Republic OS. It's used in the planet of the apes intergalactic republic.
[10:07:52] Cavallari: has joined #RubyOnRails
[10:12:49] dminuoso: apeiros: Interesting, you made me realize a flaw in star wars.
[10:13:09] apeiros: (only one?)
[10:13:20] dminuoso: apeiros: Well star wars refers to a single particular galaxy
[10:13:30] dminuoso: And yet the emperor declared the first _inter_galactic empire.
[10:13:57] dionysus69: is there a way I can get output of I18n.l(timestamp) with strftime or other method? so the format matches? I am fine with I18n.l format but I need only english
[10:14:21] apeiros: dionysus69: for a limited subset
[10:14:28] dminuoso: Either he suffered from serious megalomania and expected his empire to reach across the galactic rim, or there's a consistency error, much like the kessel run one.
[10:15:16] arBmind: has joined #RubyOnRails
[10:15:53] zwliew: has joined #RubyOnRails
[10:18:11] ur5us: has joined #RubyOnRails
[10:19:13] morfin60: ah i forgot
[10:19:21] morfin60: ruby[bot] can't handle PM
[10:19:58] morfin60: oops wrong chat =)
[10:20:41] bronson: has joined #RubyOnRails
[10:22:51] KeyJoo: has joined #RubyOnRails
[10:24:20] srinidhi: has joined #RubyOnRails
[10:25:38] jnollette: has joined #RubyOnRails
[10:26:00] workmad3: has joined #RubyOnRails
[10:28:14] DylanJ: has joined #RubyOnRails
[10:34:54] LateralOctober: has joined #RubyOnRails
[10:38:48] bronson: has joined #RubyOnRails
[10:40:30] jnollette: has joined #RubyOnRails
[10:54:04] fragamus: has joined #RubyOnRails
[10:55:20] fschuindt: has joined #RubyOnRails
[11:14:20] camilasan: has joined #RubyOnRails
[11:14:22] camilasan: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[11:24:11] hfp_work: has joined #RubyOnRails
[11:32:52] dviola: has joined #RubyOnRails
[11:40:41] apparition: has joined #RubyOnRails
[11:45:04] conta: has joined #RubyOnRails
[11:50:42] cschneid: has joined #RubyOnRails
[11:55:41] crova: has joined #RubyOnRails
[11:56:19] crova: Greetings everyone, how is it going? I'm trying to implement full text search with Pg_Search and Filterrific but I'm running into an "undefined column" error, if someone has any hint: https://gist.github.com/crova/0e4cbe40f91961c94b2401f2e3fb3794
[11:56:19] crova: I'm positive that those column names exists, I put an example on the file with a search_query using them that works (but it only works with 1 word and at the beginning of the text)
[12:35:31] LateralO1: has joined #RubyOnRails
[12:39:13] alfiemax: has joined #RubyOnRails
[12:39:35] bronson: has joined #RubyOnRails
[12:40:57] mtkd: has joined #RubyOnRails
[12:55:29] jnollette: has joined #RubyOnRails
[13:04:25] danguita: has joined #RubyOnRails
[13:05:47] za1b1tsu: has joined #RubyOnRails
[13:06:08] za1b1tsu: do I need to add unique or null false for foreign keys?
[13:07:08] danguita: has joined #RubyOnRails
[13:07:58] jnollette: has joined #RubyOnRails
[13:20:31] Ergo: has joined #RubyOnRails
[13:23:06] wethu: has joined #RubyOnRails
[13:37:25] fschuindt: za1b1tsu: no
[13:39:32] za1b1tsu: fscuindt unique is implied?
[13:39:41] za1b1tsu: fschuindt unique is implied?
[13:40:32] fschuindt: za1b1tsu: as long as you don't manually set id's and keep working through ActiveRecord, yep
[13:40:41] DrYockel1: has joined #RubyOnRails
[13:42:10] TvL2386: hey guys, I'm having connection issues with my mssql database. How can I print the contents of the development database from the rails console?
[13:42:12] za1b1tsu: fschuindt: roger
[13:43:57] fmcgeough: has joined #RubyOnRails
[13:52:56] kapil___: has joined #RubyOnRails
[14:00:45] FrostCandy: has joined #RubyOnRails
[14:01:18] alfiemax: has joined #RubyOnRails
[14:09:37] zigzig: has joined #RubyOnRails
[14:19:18] dviola: has joined #RubyOnRails
[14:20:14] Terens: has joined #RubyOnRails
[14:21:54] _aeris_: has joined #RubyOnRails
[14:22:18] jtperreault: has joined #RubyOnRails
[14:36:18] fmcgeough: has joined #RubyOnRails
[14:37:34] theunraveler: has joined #RubyOnRails
[14:38:24] Torrone: has joined #RubyOnRails
[14:40:30] bronson: has joined #RubyOnRails
[14:41:38] arBmind: has joined #RubyOnRails
[14:46:04] mtkd: has joined #RubyOnRails
[14:54:31] Saukk: has joined #RubyOnRails
[15:14:38] orbyt_: has joined #RubyOnRails
[15:18:41] matuku: has joined #RubyOnRails
[15:19:54] istrasci: has left #RubyOnRails: ("PING 1516288794")
[15:23:03] za1b1tsu: has joined #RubyOnRails
[15:26:21] listenmore: has left #RubyOnRails: ("Konversation terminated!")
[15:34:32] matuku: has left #RubyOnRails: ("WeeChat 2.0.1")
[15:41:01] fschuindt: has joined #RubyOnRails
[15:47:06] matuku: has joined #RubyOnRails
[15:53:26] cschneid: has joined #RubyOnRails
[15:59:32] Psy-Q: has joined #RubyOnRails
[16:02:55] TvL2386: how would you use a redis session store?
[16:03:06] TvL2386: using the gem redis-rails?
[16:03:56] jnollette: has joined #RubyOnRails
[16:06:28] fryguy: TvL2386: what problems are you having with the default session store that you are trying to solve?
[16:11:03] TobiFrano: has joined #RubyOnRails
[16:19:31] KeyJoo: has joined #RubyOnRails
[16:24:57] fschuindt: has joined #RubyOnRails
[16:27:21] dionysus69: has joined #RubyOnRails
[16:30:12] apeiros: has joined #RubyOnRails
[16:32:35] timdotrb: has joined #RubyOnRails
[16:41:13] chocoelho: has joined #RubyOnRails
[16:41:42] moei: has joined #RubyOnRails
[16:42:08] bronson: has joined #RubyOnRails
[16:46:23] kus_ubuntui686: has joined #RubyOnRails
[16:52:52] [Butch]: has joined #RubyOnRails
[16:54:07] jnollette: has joined #RubyOnRails
[17:01:31] crova: anyone have any suggestion on getting bootstrap dropdown menus working with turbolinks/jquery on heroku (it works fine locally)? I tried everything I found on the web, moving the "requires" back and forth on the application.js, adding $('.dropdown-toggle').dropdown(); to it, removing turbolinks, assets:clean assets:precompile
[17:01:36] crova: I can't get this to work
[17:04:28] fschuindt: has joined #RubyOnRails
[17:06:03] troys: has joined #RubyOnRails
[17:06:49] orbyt_: has joined #RubyOnRails
[17:09:36] one_zero: has joined #RubyOnRails
[17:11:47] TobiFrano: has joined #RubyOnRails
[17:13:02] dviola: has joined #RubyOnRails
[17:22:48] orbyt_: has joined #RubyOnRails
[17:25:29] blackcross: crova, use the CDNs
[17:25:32] blackcross: instead of the gems
[17:26:16] crova: blackcross, for everything? bootstrap as well?
[17:27:08] choke: has joined #RubyOnRails
[17:27:12] choke: https://gist.github.com/jblac/f8c3ce3499d04eb4bad39a5753ee2ca4 having a small issue. Working on an API for a legacy database, so I can't modify the schema too much. Is there a way I can do a has_many relation on the company, to read from the tertiary table?
[17:27:22] crova: blackcross, let me give it a shot, cheers
[17:30:50] nickjj: crova, are you using bootstrap-sass? i never had any probs with it and turbolinks
[17:31:15] crova: nickjj, I am
[17:31:21] darkhanb: has joined #RubyOnRails
[17:31:48] crova: weird thing is that it works perfectly locally. It is when I push it to heroku that the menus don't work
[17:32:08] crova: I saw ppl saying that it was a problem with the assets pipeline, but all the suggestions to fix it ddin't work
[17:33:19] nickjj: crova, what does your application.js look like?
[17:33:35] crova: blackcross, tried with the CDNs, I have the same thing, nothing happens
[17:34:21] crova: nickjj, https://gist.github.com/crova/8ee193174f196e206bc8d1b9b6099e5c like this
[17:34:40] crova: last line I added as a suggestion to see if it solved my issue, but it does not either
[17:35:09] nickjj: i never used jquery.turbolinks, what if you just use turbolinks?
[17:35:42] crova: I tried pretty much every let me try it out
[17:35:47] nickjj: and then have that dropdown() function get called in a turbolinks:load event
[17:35:59] nickjj: sort of like document ready, but turbolinks:load instead
[17:38:54] crova: nickjj, still nothing mate
[17:39:12] crova: at this point i'm aout to let it go and just change the navigation style lol
[17:39:13] nickjj: are you doing this: $(document).on('turbolinks:load', function() { $('.dropdown-toggle').dropdown(); }
[17:40:04] nickjj: also paste the heroku url
[17:40:47] crova: nickjj, yes, I added that on th application.js
[17:40:59] crova: it is a private app, you would need to create an user
[17:41:15] ksi: has joined #RubyOnRails
[17:41:38] nickjj: set up a demo user
[17:41:55] crova: gimme a sec please
[17:51:18] mtkd: has joined #RubyOnRails
[17:55:03] orbyt_: has joined #RubyOnRails
[18:02:25] hahuang61: has joined #RubyOnRails
[18:04:56] nso95: has joined #RubyOnRails
[18:07:49] pinkfloyd1911: has joined #RubyOnRails
[18:11:58] kies: has joined #RubyOnRails
[18:21:47] tcopeland1: has joined #RubyOnRails
[18:24:34] KeyJoo: has joined #RubyOnRails
[18:32:58] alfiemax: has joined #RubyOnRails
[18:37:37] ivanskie: has joined #RubyOnRails
[18:42:58] bronson: has joined #RubyOnRails
[18:52:13] sameerynho: has joined #RubyOnRails
[18:52:22] mustmodify: has joined #RubyOnRails
[18:52:36] mustmodify: Someone arbitrarily tell me what EC2 instance type I want?
[18:52:47] mustmodify: I know how much memory and drive I need... but ... T2, M5...
[19:04:21] arBmind: has joined #RubyOnRails
[19:07:14] alfiemax: has joined #RubyOnRails
[19:07:23] ivanskie: Is there a for-dummies example of how I can put a button/link on a view. that without redirecting or refreshing the page would just run a method inside a controller? (I'm trying to start a delayed job from the ui. but i dont need a delayed job web gem or anything like that. just have a view of some data, and a button that will queue up a job)
[19:13:10] Dimik: has joined #RubyOnRails
[19:15:20] ivanskie: this is what I have right now: https://gist.github.com/i5okie/2853a74e689218a4308e484b235bacca
[19:15:28] choke: mustmodify depends on what it's for and the capabilities really... https://aws.amazon.com/ec2/pricing/on-demand/. The bulk of my servers are within the "compute" class, or "memory" class with a smattering of some in the storage class ( for my file servers )
[19:16:24] mustmodify: So I have a monolith. Gets 100 to 400 RPM during the day.
[19:16:47] mustmodify: heavy DB usage, Resque,
[19:17:07] mustmodify: big DB if it matters, though I'm thinking about moving that to a separate device.
[19:18:26] fryguy: it 100% should be on a separate machine
[19:18:43] mustmodify: I'm currently running 8GB. At this time I'm using 4.7, 3.1 free (doesn't add up but that's computers... 4.7 + 3.1 == 8! Hooray!)
[19:19:03] fryguy: mustmodify: gigabytes versus gibibytes
[19:19:05] choke: Should definitely do that -- I personally separate everything... I have a small cluster of nginx servers to load balance between all of my rails servers which are all on compute... which reads my redis server and my db server ( which is really an RDS instance ) with failover, backups and redundancy in place. Try to eliminate a single point of failure
[19:19:14] ivanskie: oh nvm. it works.
[19:19:25] ivanskie: its just redirecting me to the index now
[19:20:06] ivanskie: okay it doesnt really work
[19:21:40] choke: ivanskie - unless you intercept the click via javascript, your page is going to reload. that's just how http works
[19:21:48] mustmodify: Hm... You know, I think I need more CPU. I hadn't thunk that before but I often spike to load averages of like 4+
[19:21:59] fryguy: mustmodify: that's not necessarily a problem
[19:22:03] mustmodify: Guess I gotta figure out my current vcpus.
[19:22:43] choke: hopefully you've got some monitoring in place, like nagios or datadog? Really helps to understand your traffic patterns and server usage
[19:22:53] mustmodify: so that's about right
[19:23:35] mustmodify: Currently I'm on RackSpace. 4vCPUs. 8GB. 320GB drive. 600Mbps throughput.
[19:23:47] mustmodify: I'm not using all my ram, so I guess 8 will work.
[19:23:56] mustmodify: But of course, Rails is slow
[19:24:37] mustmodify: I don't even know what question to ask.
[19:24:50] mustmodify: I want better performance. OK, what is causing performance issues?
[19:25:04] mustmodify: good question, self. Is it lack of memory? Probably not.
[19:25:19] mustmodify: is it CPU? How would I know?
[19:25:28] mustmodify: ask newrelic maybe?
[19:26:41] ivanskie: choke yah i don't know how to do that. I don't really mind refreshing the page tbh at this point. but I guess i should change the route to send it back to the page rather then index of devices
[19:27:52] choke: ivanskie - add a unique id to the button the same way you added the success class to it... then use jquery .on and .ajax methods to perform the request.
[19:29:15] choke: mustmodify you'll get better performance by having your DB and everything separated... it could just be as simple as your read/write io being maxed out
[19:29:55] mustmodify: That's a real possibility. How would I know?
[19:35:35] choke: mustmodify Easiest way is to create a "test environment" and build it out.... But you should really have some monitoring in place -- it's pretty much mandatory in my opinion. On my servers, I use datadog which allows me to setup all sorts of awesome monitoring tracks and be notified before anything goes down.
[19:36:36] vichib: has joined #RubyOnRails
[19:37:16] tcopeland: has joined #RubyOnRails
[19:42:29] roshanavand: has joined #RubyOnRails
[19:44:28] ivanskie: choke, I've added 'remote: true' on the link helper. and its doing the ajax thing now. but I think my route is wrong (https://gist.github.com/i5okie/2853a74e689218a4308e484b235bacca)
[19:45:29] hahuang65: has joined #RubyOnRails
[19:46:07] ivanskie: when i click the link the log shows "Started GET "/devices". and it rendered devices/index.html.erb (log, no refresh in browser).
[19:50:05] Axsuul: has joined #RubyOnRails
[19:56:03] mtkd: has joined #RubyOnRails
[19:59:33] ivanskie: i think i fixed the routing. but im not getting the action executed now
[20:04:39] tcopeland: has joined #RubyOnRails
[20:04:51] tfitts: has joined #RubyOnRails
[20:09:51] ivanskie: i'm reading stuff like this: https://launchschool.com/blog/the-detailed-guide-on-how-ajax-works-with-ruby-on-rails. and its great. but it doesn't help me.. because its just doing the standard crud stuff.
[20:10:12] ivanskie: i've updated the gist again, to what i have now with ajax: https://gist.github.com/i5okie/2853a74e689218a4308e484b235bacca
[20:10:58] ivanskie: even though I specify that action is "get_sensors" the webserver log shows its invoking devices#show path instead.
[20:11:09] ivanskie: Processing by DevicesController#show as JS
[20:12:07] Barrt: has joined #RubyOnRails
[20:17:45] ivanskie: amazing. #soproud lol
[20:17:49] ivanskie: thanks choke
[20:20:23] atrius: has joined #RubyOnRails
[20:28:50] atrius: has joined #RubyOnRails
[20:39:18] jgomo3: has joined #RubyOnRails
[20:39:32] jgomo3: I'm writing privileges in the migrations. But the schema.rb doesn't have them. How do you keep track of privileges for database connections in a Rails project?
[20:42:41] fmcgeough: has joined #RubyOnRails
[20:44:26] bronson: has joined #RubyOnRails
[21:13:20] desperek: has joined #RubyOnRails
[21:14:11] wethu: has joined #RubyOnRails
[21:18:38] TobiFrano: has joined #RubyOnRails
[21:19:07] atrius: has joined #RubyOnRails
[21:24:56] nso95: has joined #RubyOnRails
[21:30:13] workmad3: has joined #RubyOnRails
[21:33:05] Axsuul: has joined #RubyOnRails
[21:44:21] mustmodify: Like, "grant all to user xyz on table Y"?
[21:45:04] bronson: has joined #RubyOnRails
[22:01:01] mtkd: has joined #RubyOnRails
[22:04:49] wethu: has joined #RubyOnRails
[22:21:04] TobiFrano: has joined #RubyOnRails
[22:22:27] wethu: has joined #RubyOnRails
[22:27:46] guacamole: has joined #RubyOnRails
[22:56:24] workmad3: has joined #RubyOnRails
[22:58:49] uksio: has joined #RubyOnRails
[23:26:39] jnollette: has joined #RubyOnRails
[23:31:30] workmad3: has joined #RubyOnRails
[23:35:49] nertzy: has joined #RubyOnRails
[23:44:49] gambl0re: has joined #RubyOnRails
[23:45:56] bronson: has joined #RubyOnRails
[23:46:27] nso95-: has joined #RubyOnRails