« Back to channel list

#RubyOnRails - 18 May 2018

« Back 1 day Forward 1 day »
[00:11:38] Technodrome: has joined #RubyOnRails
[00:18:29] Cache_Money: has joined #RubyOnRails
[00:22:39] Cache_Money: I'm creating a view that when requested hits the Weather Underground API and then displays the data in a table. I've figured out successfully hit the API endpoint but I'm not sure how I should store the API Key.. I'd like to keep it out of source control but I'm not sure how to go about it
[00:32:33] tdy: has joined #RubyOnRails
[00:40:02] cagomez: has joined #RubyOnRails
[00:44:25] Jameser: has joined #RubyOnRails
[00:44:55] Ericx2x: has joined #RubyOnRails
[00:45:15] Ericx2x: has joined #RubyOnRails
[00:46:28] cagomez: has joined #RubyOnRails
[00:52:26] Radar: tfitts: I am not sure myself. It sounds like something you might want to create events in a table for, and then another process to read these events to pipe them to the right places.
[00:59:04] sevenseacat: has joined #RubyOnRails
[01:12:47] dviola: has joined #RubyOnRails
[01:20:11] alfiemax: has joined #RubyOnRails
[01:23:51] orbyt_: has joined #RubyOnRails
[01:31:33] GodFather: has joined #RubyOnRails
[02:05:36] kapil___: How to disable rails development. Log completely?
[02:12:47] orbyt_: has joined #RubyOnRails
[02:25:41] quazimodo: has joined #RubyOnRails
[02:46:49] alfiemax: has joined #RubyOnRails
[02:56:46] duderonomy: has joined #RubyOnRails
[03:04:57] darkhanb: has joined #RubyOnRails
[03:05:56] mtkd: has joined #RubyOnRails
[04:02:54] lord4163: has joined #RubyOnRails
[04:07:59] Technodrome: has joined #RubyOnRails
[04:54:17] sidx64: has joined #RubyOnRails
[05:01:13] sidx64: has joined #RubyOnRails
[05:06:35] eckhardt: has joined #RubyOnRails
[05:11:03] sidx64: has joined #RubyOnRails
[05:14:06] sidx64: has joined #RubyOnRails
[05:16:44] dustinm`: has joined #RubyOnRails
[05:18:41] duderonomy: has joined #RubyOnRails
[05:21:44] apeiros: has joined #RubyOnRails
[05:30:40] nickenchuggets: has joined #RubyOnRails
[05:30:40] gousuto: has joined #RubyOnRails
[05:31:15] nickenchuggets: has joined #RubyOnRails
[05:36:11] mtkd: has joined #RubyOnRails
[05:43:01] sidx64: has joined #RubyOnRails
[05:53:56] sidx64: has joined #RubyOnRails
[05:56:32] reber: has joined #RubyOnRails
[06:02:58] apeiros: has joined #RubyOnRails
[06:07:32] quazimodo: has joined #RubyOnRails
[06:22:00] quazimodo: has joined #RubyOnRails
[06:24:06] conta: has joined #RubyOnRails
[06:25:58] schneider: has joined #RubyOnRails
[06:26:44] mauro1254: has joined #RubyOnRails
[06:28:31] mauro1254: Is there a way to create associations between ActiveRecord models and ActiveResource ones?
[06:33:55] dionysus69: has joined #RubyOnRails
[06:39:28] sidx64: has joined #RubyOnRails
[06:41:57] sidx64_: has joined #RubyOnRails
[06:43:44] DoubleMalt: has joined #RubyOnRails
[06:45:09] Ropeney: has joined #RubyOnRails
[06:45:27] duderono_: has joined #RubyOnRails
[06:46:43] sidx64: has joined #RubyOnRails
[06:47:00] psychoslave: has joined #RubyOnRails
[06:59:57] schneider: has joined #RubyOnRails
[07:00:31] KeyJoo: has joined #RubyOnRails
[07:05:24] Technodrome: has joined #RubyOnRails
[07:05:42] conta: has joined #RubyOnRails
[07:11:37] sidx64: has joined #RubyOnRails
[07:16:33] sidx64_: has joined #RubyOnRails
[07:17:10] za1b1tsu: has joined #RubyOnRails
[07:23:43] DrYockel: has joined #RubyOnRails
[07:24:54] sidx64: has joined #RubyOnRails
[07:27:53] sidx64: has joined #RubyOnRails
[07:31:15] tbuehlmann: mauro1254: not built-in, but you can build something on your own
[07:33:56] mauro1254: tbuehlmann : I have a few apps that need to share data and my idea is to create an API only app + full engine based on activeresources. Doing this way I can use & manage date inside each app. The problem is the associations with app specific models. What do you think? Is there a better approach to achieve what I want?
[07:34:42] mauro1254: Of course the engine si a dependency of each app that need the shared data.
[07:47:16] alfiemax_: has joined #RubyOnRails
[07:49:25] marr: has joined #RubyOnRails
[07:50:25] sidx64: has joined #RubyOnRails
[07:54:26] mikecmpbll: has joined #RubyOnRails
[07:59:36] arup_r: has joined #RubyOnRails
[08:01:34] Exagone313: has joined #RubyOnRails
[08:06:56] mikecmpbll: has joined #RubyOnRails
[08:12:13] srinidhi: has joined #RubyOnRails
[08:15:01] sandstrom: has joined #RubyOnRails
[08:16:14] nemesit: has joined #RubyOnRails
[08:38:03] EnderMB: has joined #RubyOnRails
[08:53:36] sidx64: has joined #RubyOnRails
[08:53:55] lord4163: has joined #RubyOnRails
[08:54:59] nemesit: has joined #RubyOnRails
[08:55:29] nemesit: how come my gemfile.lock contains some gem but bundle install does not install it?
[08:57:50] nickjj_: has joined #RubyOnRails
[09:00:23] alfiemax: has joined #RubyOnRails
[09:06:53] sidx64: has joined #RubyOnRails
[09:22:13] mikecmpb_: has joined #RubyOnRails
[09:31:13] KeyJoo: has joined #RubyOnRails
[09:32:04] xhoy: has joined #RubyOnRails
[09:39:17] sidx64: has joined #RubyOnRails
[09:42:08] nemesit: anyone using passenger with capistrano and bundler?
[09:43:17] nemesit: seems like my passenger picks up gems from the same location as rvm would whereas capistrano/bundler installs to somewhere else
[09:49:12] sidx64: has joined #RubyOnRails
[10:02:25] NL3limin4t0r: has joined #RubyOnRails
[10:07:25] sidx64: has joined #RubyOnRails
[10:08:11] conta: has joined #RubyOnRails
[10:08:44] alfiemax: has joined #RubyOnRails
[10:19:24] Ergo: has joined #RubyOnRails
[10:26:26] psychoslave: has joined #RubyOnRails
[10:30:46] mikecmpbll: has joined #RubyOnRails
[10:30:56] psychoslave: has joined #RubyOnRails
[10:33:50] marr: has joined #RubyOnRails
[10:46:58] conta: has joined #RubyOnRails
[10:48:56] sidx64: has joined #RubyOnRails
[10:51:00] jlebrech: has joined #RubyOnRails
[10:51:03] jane_booty_doe: has joined #RubyOnRails
[10:52:13] jlebrech: I have i have angular code which I'd like to symbolically link into the public folder. but I want the rest to the api be under /api route
[10:52:46] jlebrech: do I just have to ln the public folder and change routes.rb?
[10:56:15] conta: has joined #RubyOnRails
[10:58:19] za1b1tsu: Hello, regarding i18n, if I have a view in views/devise/registrations/new.html.erb, I should be able to use t('.create_an_account') if in my en.yml I have create_an_account under devise, registrations,new right? Because I have to write the full path t('devise..etc'), it doesnt work with .create_an_account?
[10:58:27] za1b1tsu: is there something I have to do?
[11:01:48] mikecmpb_: has joined #RubyOnRails
[11:08:51] Fernando-Basso: has joined #RubyOnRails
[11:12:48] mtkd: has joined #RubyOnRails
[11:15:18] qnaal: has joined #RubyOnRails
[11:37:47] kakekongen: has joined #RubyOnRails
[11:40:14] za1b1tsu: has joined #RubyOnRails
[11:40:31] ldnunes: has joined #RubyOnRails
[11:42:06] Cavallari: has joined #RubyOnRails
[11:51:00] foli: has joined #RubyOnRails
[11:53:07] foli: how to use the checkbox lable in rails with another attribute on the same line
[12:02:03] foli: any tutorial out there with the differences between form_with model and form_with scope
[12:03:49] andywww: has joined #RubyOnRails
[12:09:22] andywww: Wondered if i could get a bit of steer please guys, I have a model that has_many URLs and has_many domains. I want to maintain a set of rules which will be parsed for ach entry in an ad hoc arrangement and flag if the associated record matches the rule. For those familiar it is a disavow file for google webmaster tools.
[12:09:28] andywww: https://gist.github.com/wanabewired/d1d99c3c4e2cc03443e6c619515d9ddf
[12:10:03] andywww: I was wondering if there was a pattern/gem that would be well suited to this?
[12:11:21] andywww: happy to RTFM i just need a bit steer to get me going if anyone can think of anyhting
[12:11:48] nemesit: anyone know how to make rails gdpr compliant?
[12:16:11] chocoelho: has joined #RubyOnRails
[12:20:00] sandstrom: has joined #RubyOnRails
[12:22:06] RougeR: has joined #RubyOnRails
[12:22:15] RougeR: anyone got a good guide for testing with rspec
[12:22:21] RougeR: thats actually up to date
[12:22:34] RougeR: for a beginner. i did testing a few months back and forgotten it all
[12:27:55] roamingdog: has joined #RubyOnRails
[12:31:11] sidx64: has joined #RubyOnRails
[12:32:05] andywww: https://leanpub.com/everydayrailsrspec this is decent
[12:36:16] alfiemax: has joined #RubyOnRails
[12:38:47] RougeR: does it start from the absolute beginning?
[12:39:50] RougeR: and thanks
[12:41:37] cagomez: has joined #RubyOnRails
[12:43:43] Cavallari1: has joined #RubyOnRails
[12:46:19] andywww: yeah pretty much, introduces the basic tdd concepts, factories, stubbing etc
[12:46:40] andywww: you should be able to get the contents page on the site i think
[13:10:55] RougeR: ill have s shifty thanks Andr3as
[13:11:02] RougeR: oops wrong nick sorry
[13:17:29] reber__: has joined #RubyOnRails
[13:17:51] mtkd: has joined #RubyOnRails
[13:19:19] GodFather: has joined #RubyOnRails
[13:19:27] conta: has joined #RubyOnRails
[13:22:09] mtkd: has joined #RubyOnRails
[13:33:57] quazimodo: has joined #RubyOnRails
[13:37:59] MrCrackPotBuilde: has joined #RubyOnRails
[14:00:55] mtkd: has joined #RubyOnRails
[14:03:24] marr: has joined #RubyOnRails
[14:18:33] Technodrome: has joined #RubyOnRails
[14:29:19] fragamus: has joined #RubyOnRails
[14:30:34] dblessing: has joined #RubyOnRails
[14:33:47] quazimodo: has joined #RubyOnRails
[14:42:39] chouhoulis: has joined #RubyOnRails
[14:54:08] openCircuit__: has joined #RubyOnRails
[14:55:10] openCircuit__: in sidekiq is there a way to increase the count of number of dead jobs thats saved to redis. it says 10k or6 months. I assume whichever is smaller.
[14:57:20] openCircuit__: oh i found it in codebase
[15:02:18] psychoslave: has joined #RubyOnRails
[15:05:31] openCircuit__: also https://github.com/mperham/sidekiq/blob/bca93969d387222a55aad0921d647c7178a0c26f/lib/sidekiq.rb#L52 lol
[15:06:08] cschneid_: has joined #RubyOnRails
[15:08:47] argoneus: has joined #RubyOnRails
[15:09:10] chouhoulis: has joined #RubyOnRails
[15:10:05] tbuehlmann: openCircuit__: you might also like https://github.com/mperham/sidekiq/blob/bca93969d387222a55aad0921d647c7178a0c26f/lib/sidekiq/launcher.rb#L71
[15:12:08] regedit: has joined #RubyOnRails
[15:14:46] Fernando-Basso: has joined #RubyOnRails
[15:18:25] orbyt_: has joined #RubyOnRails
[15:19:35] MrCrackPotBuilde: is there a way to have a video_tag play a video at half speed. I have a html5 .mov as a background and it works great but id like to just be able to slow it down. i tried this <%= video_tag(["hd0933.mov"], :controls =>false, :poster => "w1.png", :autoplay => true, :loop => true, :transformation=>[ {:overlay => "video:hd0933.mov", :flags => "splice", :effect => "accelerate:-50"}]) %> it plays the background fine but it doesnt half the
[15:20:49] cagomez: has joined #RubyOnRails
[15:21:20] GodFather: has joined #RubyOnRails
[15:24:07] kapil___: has joined #RubyOnRails
[15:24:43] kevinburke: has joined #RubyOnRails
[15:31:40] apeiros: has joined #RubyOnRails
[15:33:28] andywww: has joined #RubyOnRails
[15:35:00] kapil___: has joined #RubyOnRails
[15:38:32] cagomez: has joined #RubyOnRails
[15:41:50] sandstrom: has joined #RubyOnRails
[15:48:39] jcarl43: has joined #RubyOnRails
[15:52:12] duderonomy: has joined #RubyOnRails
[15:52:30] blackcross: MrCrackPotBuilde: maybe try accelerate:50%
[15:53:41] blackcross: MrCrackPotBuilde: https://www.w3schools.com/tags/av_prop_playbackrate.asp
[15:54:10] blackcross: :playbackspeed => 0.5
[15:54:27] platoon23: has joined #RubyOnRails
[16:00:07] dblessing: has joined #RubyOnRails
[16:03:23] MrCrackPotBuilde: hey blackcross i tried both of those examples but neither worked
[16:03:46] MrCrackPotBuilde: i cant seem to find a coffeescript getElementByTagName
[16:04:23] MrCrackPotBuilde: this one seems to work on the site but not in my development
[16:04:24] MrCrackPotBuilde: https://cloudinary.com/documentation/rails_video_manipulation
[16:05:38] mtkd: has joined #RubyOnRails
[16:12:12] MrCrackPotBuilde: i managed to get it working i just needed to add an id for some reason i couldnt select it by tagname
[16:12:47] Technodrome: has joined #RubyOnRails
[16:14:22] darkhanb: has joined #RubyOnRails
[16:26:18] dionysus69: has joined #RubyOnRails
[16:27:30] orbyt_: has joined #RubyOnRails
[16:46:41] arup_r: has joined #RubyOnRails
[16:52:17] conta: has joined #RubyOnRails
[17:03:20] Technodrome: has joined #RubyOnRails
[17:11:15] mtkd: has joined #RubyOnRails
[17:19:30] apeiros: has joined #RubyOnRails
[17:42:06] mtkd: has joined #RubyOnRails
[17:45:03] Technodrome: has joined #RubyOnRails
[17:46:07] nickjj: has joined #RubyOnRails
[17:47:05] uks: has joined #RubyOnRails
[17:50:12] weird_error: has joined #RubyOnRails
[17:59:48] apeiros: has joined #RubyOnRails
[18:01:57] reber__: has joined #RubyOnRails
[18:10:13] roshanavand: has joined #RubyOnRails
[18:17:34] Dbugger: has joined #RubyOnRails
[18:19:49] Dbugger: Question: Doesnt "bundle install" create a folder called "vendor" with all the dependencies needed?
[18:25:39] fryguy: Dbugger: not by default, no
[18:26:00] fryguy: if you do `bundle install --deployment` it will do that, and there are other similar option sets that will do it as well.
[18:26:10] fryguy: --deployment does several other things as well
[18:31:53] alfiemax: has joined #RubyOnRails
[18:34:00] jane_booty_doe: has joined #RubyOnRails
[18:37:25] Dbugger: so in development, where are my dependencies installed?
[18:47:14] fryguy: wherever your other gems are installed
[18:57:34] samosaphile: has joined #RubyOnRails
[19:00:52] alfiemax: has joined #RubyOnRails
[19:01:39] psychoslave: has joined #RubyOnRails
[19:07:21] mcr1: Dbugger, so if you are using rvm, then you have an rvm-specific place for gems.
[19:07:34] mcr1: ditto for ruby-env, or jruby, etc.
[19:07:46] mcr1: bundle show foo
[19:07:49] mcr1: will tell you.
[19:10:51] conta: has joined #RubyOnRails
[19:15:37] za1b1tsu: has joined #RubyOnRails
[19:21:48] conta: has joined #RubyOnRails
[19:25:14] sameerynho: has joined #RubyOnRails
[19:27:41] armyriad: has joined #RubyOnRails
[19:31:44] alfiemax: has joined #RubyOnRails
[19:37:22] _aeris_: has joined #RubyOnRails
[19:39:20] za1b1tsu: has joined #RubyOnRails
[19:51:05] duderonomy: has joined #RubyOnRails
[19:53:49] Technodrome: has joined #RubyOnRails
[20:05:00] sandstrom: has joined #RubyOnRails
[20:10:53] sidx64: has joined #RubyOnRails
[20:14:15] rikkipitt: has joined #RubyOnRails
[20:16:21] gambl0re: has joined #RubyOnRails
[20:19:41] duderonomy: has joined #RubyOnRails
[20:21:48] mlt-: has joined #RubyOnRails
[20:22:21] mlt-: Can I eager load a chain of associations? I have like 5 tables I want to (left) join.
[20:23:09] duderonomy: has joined #RubyOnRails
[20:23:25] Ropeney: Model.include(model: { model: { model: { model: model } } })
[20:23:57] duderonomy: has joined #RubyOnRails
[20:24:15] mlt-: ropeney: ah... I suspected something alike...is it documented anywhere? All examples I see use just a simple symbol
[20:24:41] duderonomy: has joined #RubyOnRails
[20:25:23] duderonomy: has joined #RubyOnRails
[20:25:43] Ropeney: mlt-, http://guides.rubyonrails.org/active_record_querying.html#joining-multiple-associations 12.1.3.2
[20:26:01] alfiemax: has joined #RubyOnRails
[20:26:09] mlt-: ACTION feels dumb
[20:26:11] duderonomy: has joined #RubyOnRails
[20:26:26] mlt-: ropeney: Thanks! I was looking at https://apidock.com/rails/ActiveRecord/QueryMethods/eager_load
[20:26:53] Ropeney: Don't use apidock, never seems to load for me
[20:26:57] duderonomy: has joined #RubyOnRails
[20:27:18] Ropeney: Think not even supported anymore? doesn't have 5+ on there
[20:27:46] mlt-: ropeney: just to check... for left outer join, I use arel expressions and Mymodel.join(my_arel.join_sources)
[20:27:49] mlt-: Is it the way to go?
[20:27:59] duderonomy: has joined #RubyOnRails
[20:28:20] mlt-: ropeney: nevermind...
[20:28:30] mlt-: I think with eager loading I would not need all that anymore
[20:28:32] duderonomy: has joined #RubyOnRails
[20:29:29] duderonomy: has joined #RubyOnRails
[20:30:08] duderonomy: has joined #RubyOnRails
[20:30:58] sandstrom: has joined #RubyOnRails
[20:31:17] Dbugger: Has Devise any token authentication system? It seems that it is no longer compatible with "simple_token_authentication"...
[20:38:44] mlt-: ropeney: Is there a handy function or alike to turn an array of chained table names into a hash suitable for eager loading? I feel like I'm about to re-invent a wheel on that.
[20:41:01] mlt-: ACTION found https://stackoverflow.com/q/5095077/673826
[20:55:11] mtkd: has joined #RubyOnRails
[20:57:24] alfiemax: has joined #RubyOnRails
[21:08:33] za1b1tsu: has joined #RubyOnRails
[21:20:41] lxsameer: has joined #RubyOnRails
[21:26:18] za1b1tsu: has joined #RubyOnRails
[21:30:22] apeiros: has joined #RubyOnRails
[21:36:41] uksio: has joined #RubyOnRails
[21:42:27] anoob: has joined #RubyOnRails
[21:43:06] wethu: has joined #RubyOnRails
[21:43:36] anoob: Is it possible to get all environments in a rails application?
[21:44:18] anoob: this is my approach but i don't like it: http://www.pqn.pw/16
[21:46:28] mikecmpbll: has joined #RubyOnRails
[21:47:39] za1b1tsu_: has joined #RubyOnRails
[21:50:17] Technodrome: has joined #RubyOnRails
[21:52:09] mlt-: anoob: you might try to cheat... using databases setup for configuration
[21:53:01] mlt-: anoob: Rails.configuration.database_configuration
[21:53:08] mlt-: anoob: look for keys
[21:55:40] anoob: great! mlt- ! "Rails.configuration.database_configuration.keys - ['default']"
[22:02:57] chouhoulis: has joined #RubyOnRails
[22:09:35] eckhardt: has joined #RubyOnRails
[22:21:59] apeiros: has joined #RubyOnRails
[22:27:46] alfiemax: has joined #RubyOnRails
[22:37:12] Cache_Money: has joined #RubyOnRails
[22:37:29] fragamus: has joined #RubyOnRails
[23:07:34] alfiemax: has joined #RubyOnRails
[23:16:43] Technodrome: has joined #RubyOnRails
[23:26:17] mlt-: Can I walk association reflections? I want to reflect on association of association. Is it doable?
[23:32:40] mlt-: ACTION is looking at #klass
[23:35:53] za1b1tsu_: has joined #RubyOnRails
[23:41:59] duderonomy: has joined #RubyOnRails
[23:42:39] foli: has joined #RubyOnRails
[23:43:13] alfiemax: has joined #RubyOnRails
[23:44:01] foli: any one available ? help need newbie
[23:44:17] mlt-: foli: don't ask to ask, just ask
[23:48:11] mikecmpbll: has joined #RubyOnRails
[23:54:43] foli: i have two model project and employee models. i want create an association whereby , employees can be added to projects. For example an employee can be part of many projects and also project has many employee. what is the best way to design the database associations?