« Back to channel list

#RubyOnRails - 30 June 2019

« Back 1 day Forward 1 day »
[00:05:02] orbyt_: has joined #RubyOnRails
[00:14:00] ariedler: has joined #RubyOnRails
[00:48:54] bambanx: has joined #RubyOnRails
[00:58:44] bambanxx: has joined #RubyOnRails
[00:59:08] s00pcan_: has joined #RubyOnRails
[01:04:33] orbyt_: has joined #RubyOnRails
[01:07:53] dviola: has joined #RubyOnRails
[01:11:51] StarLord__: has joined #RubyOnRails
[01:24:57] duderonomy: has joined #RubyOnRails
[03:10:36] braincrash: has joined #RubyOnRails
[03:13:04] lankanmon: has joined #RubyOnRails
[03:42:42] Technodrome: has joined #RubyOnRails
[03:43:07] Saukk: has joined #RubyOnRails
[03:45:49] ^amra: has joined #RubyOnRails
[06:11:56] L-o-r-d: has joined #RubyOnRails
[06:18:32] m_antis: has joined #RubyOnRails
[06:26:16] tdy1: has joined #RubyOnRails
[07:01:47] Ropeney: has joined #RubyOnRails
[07:02:05] deathwishdave: has joined #RubyOnRails
[07:09:24] sandstrom: has joined #RubyOnRails
[07:48:24] L-o-r-d: has joined #RubyOnRails
[07:54:09] conta: has joined #RubyOnRails
[08:07:21] deathwishdave: has joined #RubyOnRails
[08:47:25] uksio: has joined #RubyOnRails
[09:05:59] schne1der: has joined #RubyOnRails
[09:17:43] sandstrom: has joined #RubyOnRails
[09:33:47] sandstrom: has joined #RubyOnRails
[09:39:31] xco: has joined #RubyOnRails
[09:51:58] sandstrom: has joined #RubyOnRails
[09:52:20] DTZUZO: has joined #RubyOnRails
[10:20:27] xco: has joined #RubyOnRails
[10:29:11] sandstrom: has joined #RubyOnRails
[10:48:09] deathwishdave: has joined #RubyOnRails
[11:00:29] lankanmon: has joined #RubyOnRails
[11:11:12] conta: has joined #RubyOnRails
[11:15:01] sandstrom: has joined #RubyOnRails
[11:15:08] bga57: has joined #RubyOnRails
[11:17:32] mikecmpbll: has joined #RubyOnRails
[11:18:37] Fernando-Basso: has joined #RubyOnRails
[11:26:23] MrCrackPot: anyone have any recomendations for me. I have a column in a table called expires which is datetime. if the expires column value is less than todays date then run a method and update the column.
[11:27:25] MrCrackPot: or should i make a method to do say on before_action :check_expired, only: :index
[11:27:43] MrCrackPot: if expired then run my method and update the db.
[11:28:16] MrCrackPot: my thought with a cronjob is once i have a lot of users searching through that db will take a lot of resources.
[11:28:38] MrCrackPot: but checking before every request is also a little draining
[11:29:21] MrCrackPot: i wonder if i could do something like if the user logged in today check once
[11:30:49] MrCrackPot: yer i think ill do it on log in
[11:45:14] jane_booty_doe: has joined #RubyOnRails
[11:45:40] Saukk: has joined #RubyOnRails
[12:06:52] alxgsv: has joined #RubyOnRails
[12:21:25] IGnorAND: MrCrackPot: and what happens if the user logs in twice a day? :)
[12:21:53] IGnorAND: MrCrackPot: I find that optimizing for speed like this just complicates stuff
[12:22:06] IGnorAND: also the db is faster at finding than a cronjob is
[12:23:07] IGnorAND: Easist thing to do is create a view where expires <= today and run the cron on the view
[12:23:50] IGnorAND: also expires is datetime, you are comparing it with date which means today and HH=00, MM=00, SS=00
[12:33:02] schne1der: has joined #RubyOnRails
[12:39:58] haxx0r: has joined #RubyOnRails
[12:40:38] xco: has joined #RubyOnRails
[12:48:13] sandstrom: has joined #RubyOnRails
[13:04:13] DTZUZO: has joined #RubyOnRails
[13:17:20] L-o-r-d: has joined #RubyOnRails
[13:33:35] mikecmpb_: has joined #RubyOnRails
[13:39:09] sandstrom: has joined #RubyOnRails
[13:41:16] deepreds1: has joined #RubyOnRails
[13:44:24] defsdoor: has joined #RubyOnRails
[13:53:23] sandstrom: has joined #RubyOnRails
[14:00:12] MrCrackPot: IGnorAND, when ever a user logs in i record: // ip // long // lat // logged_in_time // and a few others.
[14:00:27] MrCrackPot: i figured id use that first if that is older than 7 days then im good to go
[14:00:38] MrCrackPot: that way im not running it every log in
[14:00:58] MrCrackPot: only if the expires is less than the logged_in_time
[14:02:54] MrCrackPot: IGnorAND, its better to have a good outline of your complete project before you even begin a single line of code. then you create a rough idea breaking each section into elements. I need to think about performance at every step otherwise when it gets towards the end of the project trying to improve the entire project could end up in a re-write.
[14:27:25] deathwishdave: has joined #RubyOnRails
[14:41:26] sandstrom: has joined #RubyOnRails
[14:50:42] xco: has joined #RubyOnRails
[14:53:09] gambl0re: has joined #RubyOnRails
[15:07:21] ZAJDAN: <%= button_tag can not use option 'remote' ...?
[15:27:23] erts: has joined #RubyOnRails
[16:18:47] sandstrom: has joined #RubyOnRails
[16:35:01] conta: has joined #RubyOnRails
[16:35:32] orbyt_: has joined #RubyOnRails
[16:43:50] GodFather: has joined #RubyOnRails
[17:18:22] ariedler: has joined #RubyOnRails
[17:27:35] gambl0re: has joined #RubyOnRails
[17:29:18] uks: has joined #RubyOnRails
[17:50:52] deathwishdave: has joined #RubyOnRails
[18:24:09] orbyt_: has joined #RubyOnRails
[18:38:12] Exuma: has joined #RubyOnRails
[18:49:05] defsdoor: has joined #RubyOnRails
[19:02:45] deathwishdave: has joined #RubyOnRails
[19:20:09] paulcarroty: has joined #RubyOnRails
[19:20:19] paulcarroty: has left #RubyOnRails: ("Leaving")
[19:23:35] deathwishdave: has joined #RubyOnRails
[19:27:48] Tempesta: has joined #RubyOnRails
[19:39:23] L-o-r-d: has joined #RubyOnRails
[19:40:09] deepreds1: has joined #RubyOnRails
[19:49:55] armyriad: has joined #RubyOnRails
[20:17:42] crankharder: has joined #RubyOnRails
[20:22:54] crankharder: has joined #RubyOnRails
[20:31:44] crankhar1er: has joined #RubyOnRails
[20:34:17] Exuma: has joined #RubyOnRails
[20:43:20] hemmi: has joined #RubyOnRails
[20:44:59] hemmi: Hi there. I have a Versions model that has a major, minor and patch attribute. I'd like to be able to both sort them in a collection and also display a string combining the versions. Where is the most appropriate place for each of those functionalities to go? Perhaps the sort is a model method and the display string is a helper method?
[20:49:11] matthewd: has joined #RubyOnRails
[20:52:38] crankharder: has joined #RubyOnRails
[20:53:21] xco: has joined #RubyOnRails
[20:55:17] Technodrome: has joined #RubyOnRails
[20:56:42] ur5us: has joined #RubyOnRails
[21:00:19] ariedler: has joined #RubyOnRails
[21:00:32] crankhar1er: has joined #RubyOnRails
[21:00:37] armyriad: has joined #RubyOnRails
[21:16:30] atrius: has joined #RubyOnRails
[21:18:59] andywww: has joined #RubyOnRails
[21:19:01] jarr0dsz: has joined #RubyOnRails
[21:19:14] jarr0dsz: hello everyone, i require my production database to have certain tables to be Not present.
[21:19:22] jarr0dsz: is that possible?
[21:20:03] jarr0dsz: for example I have admin environment that only runs locally and i do not requre 'admins' table in production database, also other tables should not be in production database, is there a way to have schema.rb for production with these tables excluded? could not find anything so far
[21:21:12] IGnorAND: jarr0dsz: would your application break if it was availble?
[21:21:31] jarr0dsz: it will not break but the admin controllers/views/routes are excluded for production.
[21:21:50] jarr0dsz: so its more to keep things 'dry' in the production environment and perhaps security wise it would be better
[21:22:19] jarr0dsz: another thing i stumbled on is that i found no way in rails to disable/ protect the console in production. I hope someone knows a solution for that too.
[21:22:48] jarr0dsz: Since i have encrypted data, personal data that cannot be leaked the whole db is encrypted ( certain columns ) now when console is available this is a security issue perhaps.
[21:32:39] IGnorAND: you mean 'rails console'?
[21:34:49] jarr0dsz: the rails c command
[21:34:54] jarr0dsz: in terminal/bash
[21:40:42] bambanx: has joined #RubyOnRails
[22:12:54] phon: has joined #RubyOnRails
[22:27:28] Technodrome: has joined #RubyOnRails
[22:41:43] bambanxx: has joined #RubyOnRails
[22:59:50] NeXTSUN: has joined #RubyOnRails
[23:15:51] orbyt_: has joined #RubyOnRails
[23:17:59] quazimodo: has joined #RubyOnRails
[23:37:27] StarLord__: has joined #RubyOnRails
[23:47:31] bambanxx: has joined #RubyOnRails
[23:58:19] ebsen: has joined #RubyOnRails