« Back to channel list

#RubyOnRails - 07 August 2017

« Back 1 day Forward 1 day »
[00:05:06] ascarter: has joined #RubyOnRails
[00:05:16] elcontrastador: has joined #RubyOnRails
[00:06:42] jhfisc: has joined #RubyOnRails
[00:09:38] mjolnird: has joined #RubyOnRails
[00:13:18] jhfisc: has joined #RubyOnRails
[00:15:39] aperkins81: has joined #RubyOnRails
[00:26:59] uksio: has joined #RubyOnRails
[00:36:00] Trynemjoel: has joined #RubyOnRails
[00:42:19] sevenseacat: has joined #RubyOnRails
[00:46:14] knight33: has joined #RubyOnRails
[00:57:00] beilabs: has joined #RubyOnRails
[01:03:10] RahulT: has joined #RubyOnRails
[01:12:07] ascarter: has joined #RubyOnRails
[01:24:55] ekinmur: has joined #RubyOnRails
[01:29:06] raul782: has joined #RubyOnRails
[01:32:46] RahulT: has joined #RubyOnRails
[01:35:27] mjolnird: has joined #RubyOnRails
[01:35:31] audiodude: has joined #RubyOnRails
[01:36:15] beilabs: has joined #RubyOnRails
[01:38:25] audiodude: Can someone help me with my nested hashes here? I'm getting syntax errors: https://gist.github.com/audiodude/6c45b794a98fcab287b4dcc21d060312
[01:43:41] audiodude: Okay I fixed it just by getting rid of all the braces and using commas
[01:43:42] audiodude: https://gist.github.com/audiodude/6c45b794a98fcab287b4dcc21d060312#file-fixed-rb
[01:45:34] Radar: audiodude: with the way you had it originally it is likely interpreting it as a block, rather than a hash.
[01:45:48] logicscience: has joined #RubyOnRails
[01:47:59] raul782: hi guys, do you know how can I make some attributes accessible in a dynamic way from another table
[01:50:44] raul782: https://gist.github.com/raul782/fdc563c79819439951e2cc8e450224dd
[01:51:15] raul782: That is the gist, currently when using AR that doesn't work but it works with a constant
[01:54:56] RahulT: has joined #RubyOnRails
[01:56:27] beilabs: has joined #RubyOnRails
[02:01:16] raul782: has joined #RubyOnRails
[02:05:23] irishfromua: has joined #RubyOnRails
[02:19:45] ascarter: has joined #RubyOnRails
[02:31:43] weiyang: has joined #RubyOnRails
[02:32:21] weiyang: I am user bootstrap and has a navbar at the top, which works fine on notebook.
[02:32:39] weiyang: While I want the page looks suitable on mobile device.
[02:32:58] weiyang: And after adding <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
[02:33:10] weiyang: It looks better on mobile device
[02:33:27] weiyang: While, the pull-right login/register disappear
[02:33:45] weiyang: hmm... would someone show a hint?
[02:48:29] emers2n: has joined #RubyOnRails
[02:49:21] emers2n: So my devise gem sends mail but my own attempts at sending mail locally have failed.
[02:54:36] emers2n: Any debug tips?
[02:54:55] sevenseacat: start with the error
[02:58:18] emers2n: Can't find one unfortunately
[02:58:30] emers2n: I've checked the console log and the debug log
[02:58:44] emers2n: The mail is sent within a job which might have something to do with it
[02:59:12] emers2n: I followed this guide (Except for the last step to use sendgrid): https://sendgrid.com/docs/Integrate/Frameworks/rubyonrails.html
[03:00:04] sevenseacat: so what are you using to send mail then?
[03:03:16] quazimodo: has joined #RubyOnRails
[03:05:16] Senjai: has joined #RubyOnRails
[03:05:35] emers2n: For now I want to just send it via localhost like the Devise Mailer is able to do somehow?
[03:06:25] emers2n: It sound silly you'd be able to send mail without entering SMTP info for sending but Devise does it
[03:07:13] sevenseacat: you must have configured some email sending method then
[03:08:07] emers2n: Nope - the devise gem can send mail on development out of the box
[03:08:33] emers2n: Let's bet $5
[03:08:51] RahulT: has joined #RubyOnRails
[03:11:55] weiyang: You get mail?
[03:11:59] sevenseacat: https://github.com/plataformatec/devise/blob/master/lib/devise/mailers/helpers.rb#L17
[03:12:10] weiyang: Usually on localhost, the mail is not sent
[03:12:39] jhfisc: has joined #RubyOnRails
[03:12:41] sevenseacat: it uses the same mail method as any other mailer
[03:14:42] emers2n: Yep, I receive mail from please-change-me-at-config-initializers-devise@example.com (default) at my gmail account for password reset and other devise functions
[03:16:44] emers2n: What's interesting is if you change the sending address it breaks though
[03:17:26] emers2n: True story
[03:17:53] sevenseacat: define 'it breaks'
[03:18:24] emers2n: It only works if it's set to please-change-me-at-config-initializers-devise@example.com
[03:18:31] weiyang: Breaks means you don't see the mail?
[03:18:49] sevenseacat: that doesnt answer the question
[03:19:00] emers2n: Yes breaks meaning I don't see the mail anymore
[03:19:12] weiyang: But no error message
[03:19:15] sevenseacat: and what error do you get?
[03:19:44] weiyang: Just because you change the mail address?
[03:20:25] emers2n: What y'all are saying is if you do the following steps (1) Create New Rails App (2) Install Devise Gem & Follow Devise Setup Instructions, mail won't actually be delivered?
[03:21:35] sevenseacat: not unless you configure some mail method.
[03:22:10] emers2n: Is this configuring a mail method? Adding: config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } to config/environments/development.rb
[03:22:46] emers2n: Or by configuring some mail method do you mean the SMTP outgoing settings?
[03:23:08] sevenseacat: the outgoing mail settings
[03:23:34] ascarter: has joined #RubyOnRails
[03:24:51] ascarter_: has joined #RubyOnRails
[03:25:39] emers2n: No it works but it appears only if you use an "@example.com" email
[03:26:03] emers2n: So to use any other email address you do need the outgoing settings but for some reason xyz@example.com emails are delivered
[03:26:27] jhfisc: has joined #RubyOnRails
[03:26:30] matthewd: Are you claiming it's sent from some domain you don't control, like gmail.com?
[03:26:37] emers2n: Lol yes, it is
[03:26:42] emers2n: Only example.com though
[03:26:46] emers2n: Obviously I can't use gmail.com
[03:27:24] weiyang: I don't think so
[03:27:39] emers2n: Lol I promise
[03:27:44] sevenseacat: can you check what `config.action_mailer.delivery_method`is configured as?
[03:27:53] emers2n: Give me one of your emails and I'll send you a password reset email from test@example.com
[03:28:14] matthewd: emers2n: What sender address are you trying to change it to?
[03:28:15] weiyang: Have you configure "config.action_mailer.delivery_method" in your project?
[03:29:04] Ryzokuken: has joined #RubyOnRails
[03:29:10] emers2n: in development it is set to :smtp
[03:30:00] emers2n: Is it possible example.com has set up their smtp settings to be allowed mail testing?
[03:30:07] sevenseacat: there you go, you configured it.
[03:30:24] emers2n: Well no, that is default
[03:30:44] weiyang: The default is "# config.action_mailer.raise_delivery_errors = false"
[03:30:59] weiyang: The default is none.
[03:31:23] weiyang: The original configuration file doesn't have that line
[03:31:45] sevenseacat: irb(main):002:0> Rails.application.config.action_mailer.delivery_method => nil
[03:31:53] sevenseacat: the default is nil.
[03:32:34] emers2n: Sorry, yes you both are correct
[03:33:13] emers2n: So example.com is basically set up as a utility to allow for email testing? Still confused why emails are delivered
[03:33:32] sevenseacat: no. you configured SMTP.
[03:34:00] emers2n: Doesn't SMTP need like a username, password, outgoing server, port #, etc?
[03:34:45] jhfisc: has joined #RubyOnRails
[03:35:24] emers2n: Like are you saying the emails from test@example.com aren't being delivered?
[03:35:47] arBmind: has joined #RubyOnRails
[03:36:15] matthewd: SMTP to localhost is the default
[03:36:27] matthewd: emers2n: What sender address are you trying to change it to?
[03:38:08] jhfisc: has joined #RubyOnRails
[03:38:17] emers2n: matthewd: I am simply trying to deliver my own email in the development similiar to how devise is able to
[03:39:36] matthewd: I'm not going to ask the same question a fourth time, so, good luck.
[03:40:49] srinidhi: has joined #RubyOnRails
[03:42:28] emers2n: I don't want to change the sender address. I want to send mail from test@example.com so I can test out the mailer in the development environment similiar to how devise does it. No worries though, I'm going to look more into the mailer functions so I have a better grasp of what's going on
[03:44:22] jhfisc: has joined #RubyOnRails
[03:44:51] weiyang: matthewd, sevenseacat do you have some minutes to take a look at my navbar problem on mobile device? It doesn't show the registration/login icon on mobile device.
[03:45:22] weiyang: emers2n, I don't get your point actually
[03:46:03] matthewd: weiyang: That's a browser/layout issue, not Rails.. not something I can help with, sorry
[03:46:08] sevenseacat: weiyang: seems unrelated to rails - your HTML is likely incorrecd
[03:46:41] weiyang: Thanks to both of you.
[03:46:50] emers2n: weiyang: I'm pretty good with frontend if you have a live example I can take a look
[03:47:20] weiyang: hmm... I am not sure what is the html problem. sevenseacat
[03:47:31] weiyang: Woud you mind giving me a hint?
[03:47:40] sevenseacat: without seeing your code, neither am I.
[03:48:01] weiyang: sevenseacat, the code is https://github.com/RichardWeiYang/rails_skeleton/blob/master/app/views/common/_navbar.html.erb
[03:48:26] weiyang: Which I think the problem should be.
[03:49:00] weiyang: emers2n, as other two mentioned, if you could show your code, maybe we can take a look
[03:49:43] weiyang: Or, maybe you can search in my GitHub, which works fine on devise sending confirmation mail.
[03:50:06] sevenseacat: youve got half of the collapse plugin configured
[03:50:55] beilabs: has joined #RubyOnRails
[03:50:56] sevenseacat: youre missing the toggle navigation link
[03:51:00] sevenseacat: http://getbootstrap.com/components/#navbar-default
[03:51:03] weiyang: ok, maybe I copied half of other's code
[03:51:04] emers2n: I installed the app weiyang
[03:51:13] emers2n: It's because of the 'collapse' class
[03:51:35] weiyang: sevenseacat, let me take a look the link, thanks
[03:51:47] beilabs: has joined #RubyOnRails
[03:52:18] weiyang: emers2n, hmm... more specific?
[03:52:37] emers2n: weiyang: The 'collapse' class on the parent element has a default style of display none, and only show's display block when the screen width is greater than 768px
[03:52:59] emers2n: <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
[03:53:28] weiyang: Yes, I tried to remove "collapse navbar-collapse"
[03:53:41] weiyang: It display the button, but lost the effect
[03:53:45] beilabs_: has joined #RubyOnRails
[03:53:46] emers2n: #bs-example-navbar-collapse-1 { display: block !important; }
[03:53:52] emers2n: That's shitty but it should work
[03:54:10] emers2n: Well it does work I already tested it
[03:54:16] beilabs_: has joined #RubyOnRails
[03:55:28] emers2n: sevenseacat: Are you sighing at my dirty code?
[03:55:42] sevenseacat: and your bad advice
[03:56:41] jhfisc: has joined #RubyOnRails
[03:56:54] emers2n: I told him exactly what his problem is. How is the advice bad? Yes the code is poor practices but the only thing I can recommend without going in depth into his code
[03:57:58] sevenseacat: so dont make recommendations then
[03:58:39] emers2n: Cool. How is my advice bad?
[03:59:08] sevenseacat: you said yourself its shitty
[03:59:15] sevenseacat: and poor practices
[03:59:27] emers2n: There's a difference between my bad code and my bad advice apparently
[03:59:38] emers2n: > Are you sighing at my dirty code?
[03:59:42] emers2n: > and your bad advice
[03:59:46] sevenseacat: lets just end this here.
[04:02:10] quirkycoders: has joined #RubyOnRails
[04:05:28] segy_: has joined #RubyOnRails
[04:05:50] emers2n: Here's the official correct fix weiyang: https://pastebin.com/raw/Gw3Ttw6M
[04:12:10] quirkycoders: has joined #RubyOnRails
[04:16:02] jhfisc: has joined #RubyOnRails
[04:21:01] RahulT: has joined #RubyOnRails
[04:24:08] quazimodo: has joined #RubyOnRails
[04:25:02] jhfisc: has joined #RubyOnRails
[04:30:03] ascarter: has joined #RubyOnRails
[04:39:18] jhfisc: has joined #RubyOnRails
[04:45:14] jhfisc: has joined #RubyOnRails
[04:51:23] jhfisc: has joined #RubyOnRails
[04:56:45] pwnd_nsfw: I love when you transfer a layout you wrote in pure HTML into your rails app, and nothing is displaying correctly >:|
[04:57:14] jhfisc: has joined #RubyOnRails
[05:03:18] jhfisc: has joined #RubyOnRails
[05:06:58] srinidhi: has joined #RubyOnRails
[05:11:24] mercwithamouth: has joined #RubyOnRails
[05:12:32] jhfisc: has joined #RubyOnRails
[05:22:01] gusrub: has joined #RubyOnRails
[05:30:09] jhfisc: has joined #RubyOnRails
[05:36:14] ascarter: has joined #RubyOnRails
[05:58:01] jhfisc: has joined #RubyOnRails
[06:01:46] armando: has joined #RubyOnRails
[06:02:16] armando: has joined #RubyOnRails
[06:11:13] jhfisc: has joined #RubyOnRails
[06:12:03] gusrub: has joined #RubyOnRails
[06:16:27] jhfisc: has joined #RubyOnRails
[06:22:38] jhfisc: has joined #RubyOnRails
[06:30:11] Tempesta: has joined #RubyOnRails
[06:33:55] jhfisc: has joined #RubyOnRails
[06:40:55] vedu: has joined #RubyOnRails
[06:42:16] one_zero: has joined #RubyOnRails
[06:43:47] ascarter: has joined #RubyOnRails
[06:43:52] conta: has joined #RubyOnRails
[06:50:05] jhfisc: has joined #RubyOnRails
[06:51:26] high_fiver: has joined #RubyOnRails
[06:55:23] beilabs: has joined #RubyOnRails
[06:56:11] jhfisc: has joined #RubyOnRails
[06:58:50] jhfisc: has joined #RubyOnRails
[07:05:15] jhfisc: has joined #RubyOnRails
[07:13:37] cgfbee: has joined #RubyOnRails
[07:14:33] AzaToth: has joined #RubyOnRails
[07:15:14] jhfisc: has joined #RubyOnRails
[07:23:54] jhfisc: has joined #RubyOnRails
[07:24:32] one_zero: has joined #RubyOnRails
[07:28:12] Ergo: has joined #RubyOnRails
[07:33:30] jhfisc: has joined #RubyOnRails
[07:37:08] dionysus69: has joined #RubyOnRails
[07:43:01] jhfisc: has joined #RubyOnRails
[07:48:13] ascarter: has joined #RubyOnRails
[07:49:14] jhfisc: has joined #RubyOnRails
[07:59:27] odinsbane: has joined #RubyOnRails
[07:59:32] jhfisc: has joined #RubyOnRails
[08:04:14] odinsbane: I am trying to install passenger, but it dies when trying to compile WatchdogMain.cpp. I think it is because I don't have enough memory and I cannot enable swap. Is there anything else I can try?
[08:13:40] defsdoor: has joined #RubyOnRails
[08:36:10] arBmind: has joined #RubyOnRails
[08:48:42] jhfisc: has joined #RubyOnRails
[08:49:32] dminuoso: odinsbane: ?gist
[08:49:34] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[08:50:15] dminuoso: odinsbane: Though you could avoid passenger and just use puma.
[08:50:44] dminuoso: Which incidentally is where the community has been drifting towards for a while now anyway.
[08:52:36] workmad3: has joined #RubyOnRails
[08:53:18] odinsbane: Cool, Ill look into that.
[08:55:11] ascarter: has joined #RubyOnRails
[09:12:14] sevenseacat: has joined #RubyOnRails
[09:18:13] srinidhi: has joined #RubyOnRails
[09:18:56] marr: has joined #RubyOnRails
[09:18:59] odinsbane: puma doesn't look like a replacement for passenger in this instance.
[09:34:14] moei: has joined #RubyOnRails
[09:34:30] dminuoso: odinsbane: Why not?
[09:36:25] odinsbane: It seems to be a webserver and it would be more of a replacement for apache.
[09:37:30] agent_white: has joined #RubyOnRails
[09:37:37] agent_white: has left #RubyOnRails: ()
[09:38:03] dminuoso: odinsbane: Not exactly, it's kind of like Passenger.
[09:38:30] dminuoso: odinsbane: You can still use your Apache/nginx for load balancing/TLS termination.
[09:38:35] dminuoso: But puma scales well.
[09:39:37] jhfisc: has joined #RubyOnRails
[09:43:45] adgtl: has joined #RubyOnRails
[09:44:57] jhfisc: has joined #RubyOnRails
[09:45:36] odinsbane: okay, I was basing my conclussion on a stack overflow answer about using puma with apache as a reverse proxy.
[09:46:12] odinsbane: It said that running bother puma + apache on the same webserver takes a large memory footprint.
[09:47:56] jhfisc: has joined #RubyOnRails
[09:54:18] jhfisc: has joined #RubyOnRails
[09:59:55] beilabs: has joined #RubyOnRails
[10:01:03] ascarter: has joined #RubyOnRails
[10:05:34] ams__: has joined #RubyOnRails
[10:07:36] jhfisc: has joined #RubyOnRails
[10:12:11] one_zero: has joined #RubyOnRails
[10:13:15] jhfisc: has joined #RubyOnRails
[10:17:13] quazimodo: has joined #RubyOnRails
[10:20:09] kstratis: has joined #RubyOnRails
[10:37:51] kstratis: has left #RubyOnRails: ()
[10:42:56] jhfisc: has joined #RubyOnRails
[10:46:14] jhfisc: has joined #RubyOnRails
[11:08:15] ascarter: has joined #RubyOnRails
[11:17:14] jhfisc: has joined #RubyOnRails
[11:23:19] jhfisc: has joined #RubyOnRails
[11:37:16] jhfisc: has joined #RubyOnRails
[11:44:25] jonds: has joined #RubyOnRails
[11:46:49] jonds: puma is expected to play nicely with actioncable, right? I have 'threads 5' in my puma config, it appears that each websocket opened to the server permanently ties up a connection, so after 5 websocket connections my server is dead. I'm guessing something's wrong there?
[11:49:49] jhfisc: has joined #RubyOnRails
[11:50:08] tbuehlmann_: actioncable connections don't block a puma thread in order to work, so that shouldn't be it. but having database connections being checked out, that's quite possible
[11:50:52] tbuehlmann_: you are responsible for ensuring the connections are checked in again after every channel action, iirc
[11:51:05] tbuehlmann_: this might have changed, but that's what was happening some months ago
[11:51:51] elcontrastador: has joined #RubyOnRails
[11:53:06] jonds: tbuehlmann_: sounds plausible, will take a look
[11:55:14] jonds: although it seems like https://github.com/rails/rails/pull/24540 ought to have taken care of that
[11:55:18] gregf_: has joined #RubyOnRails
[11:57:47] beilabs: has joined #RubyOnRails
[11:59:07] matthewd: I don't know of anything you need to do explicitly, FWIW
[12:01:05] jhfisc: has joined #RubyOnRails
[12:02:37] tbuehlmann_: https://github.com/rails/rails/issues/23778
[12:02:55] tbuehlmann_: that's what I had in mind
[12:04:25] jhfisc: has joined #RubyOnRails
[12:09:45] jhfisc: has joined #RubyOnRails
[12:12:51] jonds: I'm using the redis adapter. When it's working as expected, am I right in thinking that each puma process will end up with 1 thread that's pubsubbed to redis, and that 1 thread manages multiple users' connections ?
[12:14:47] ascarter: has joined #RubyOnRails
[12:14:48] matthewd: None of the puma threads are involved.. but there will be one thread subscribed to redis, and a separate pool of threads that actually talk to the connections
[12:43:17] jhfisc: has joined #RubyOnRails
[12:49:15] jhfisc: has joined #RubyOnRails
[12:51:43] quazimodo: has joined #RubyOnRails
[12:59:43] ekinmur: has joined #RubyOnRails
[12:59:57] odinsbane: has left #RubyOnRails: ()
[13:14:57] DoubleMalt: has joined #RubyOnRails
[13:15:32] toretore: has joined #RubyOnRails
[13:16:05] toretore: where can i find out what happened to to_xml on my models in 5.1?
[13:16:48] jhfisc: has joined #RubyOnRails
[13:22:00] banisterfiend: has joined #RubyOnRails
[13:22:00] ascarter: has joined #RubyOnRails
[13:22:26] jonds: toretore: That's been gone for a while: https://github.com/rails/rails/commit/f7ebdb1ac51f26cff76e5642a75717df1b446746
[13:24:24] jhfisc: has joined #RubyOnRails
[13:26:51] beilabs: has joined #RubyOnRails
[13:28:29] beilabs: has joined #RubyOnRails
[13:30:18] apparition47: has joined #RubyOnRails
[13:58:15] banisterfiend: has joined #RubyOnRails
[14:03:19] jphase: has joined #RubyOnRails
[14:12:36] jhfisc: has joined #RubyOnRails
[14:13:58] ResidentBiscuit: has joined #RubyOnRails
[14:14:16] chouhoulis: has joined #RubyOnRails
[14:14:23] ResidentBiscuit: has joined #RubyOnRails
[14:14:48] ResidentBiscuit: has joined #RubyOnRails
[14:15:13] ResidentBiscuit: has joined #RubyOnRails
[14:15:33] kristofferR: has joined #RubyOnRails
[14:15:38] ResidentBiscuit: has joined #RubyOnRails
[14:16:06] ResidentBiscuit: has joined #RubyOnRails
[14:19:14] jhfisc: has joined #RubyOnRails
[14:22:29] logicscience: has joined #RubyOnRails
[14:26:06] logicscience: Hi, am going to be starting an MSc course with a big web development component to learn and practice. In your opinions, what are great web aps or websites out there built on Ruby on Rails. Either brilliant for their innovation, usability or beauty?
[14:27:28] jhfisc: has joined #RubyOnRails
[14:28:00] banisterfiend: has joined #RubyOnRails
[14:28:00] ascarter: has joined #RubyOnRails
[14:28:41] jphase: has joined #RubyOnRails
[14:29:12] quazimodo: has joined #RubyOnRails
[14:30:52] logicscience: and has anyone done Ruby on Rails as part of a university course? Do they usually provide a sandbox server configured for teaching or expect you to be self sufficient with required software correctly configured. I seem to have broke my server twice quite easily but that's just a problem between me, stack exchange and GIT at this moment in time.
[14:32:35] jhfisc: has joined #RubyOnRails
[14:37:26] rgr_: has joined #RubyOnRails
[14:45:06] jhfisc: has joined #RubyOnRails
[14:45:57] knight33: has joined #RubyOnRails
[14:50:08] pro777: logicscience: Basecamp is written in RoR.
[14:50:50] pro777: As for a sandbox environment, the heroku free tier is easy to setup. Or you could use AWS Elastic Beanstalk, which is similarly easy to setup.
[14:51:37] pro777: A lot of Shopify is also written in RoR.
[14:54:32] jhfisc: has joined #RubyOnRails
[14:55:30] sekmo: has joined #RubyOnRails
[14:56:24] dviola: has joined #RubyOnRails
[14:57:07] quirkycoders: has joined #RubyOnRails
[14:57:11] quirkycoders: I having an issue with what I thought should be a relatively easy task. I'm trying to override an existing method using alias_method but I'm getting an inifite loop: https://gist.github.com/jpstokes/e8a6e681d84daa92b7f3938c56942990
[15:06:32] jhfisc: has joined #RubyOnRails
[15:14:22] jphase_: has joined #RubyOnRails
[15:15:05] dangerousdave: has joined #RubyOnRails
[15:17:55] jhfisc: has joined #RubyOnRails
[15:19:51] deur-: has joined #RubyOnRails
[15:24:52] jhfisc: has joined #RubyOnRails
[15:25:06] [Butch]: has joined #RubyOnRails
[15:29:18] jphase: has joined #RubyOnRails
[15:30:30] jhfisc: has joined #RubyOnRails
[15:33:57] platoon23: has joined #RubyOnRails
[15:34:02] ascarter: has joined #RubyOnRails
[15:39:15] jhfisc: has joined #RubyOnRails
[15:41:43] quirkycoders: has joined #RubyOnRails
[15:41:57] quirkycoders: has joined #RubyOnRails
[15:42:28] dionysus69: has joined #RubyOnRails
[15:42:52] chouhoulis: has joined #RubyOnRails
[15:44:12] jhfisc: has joined #RubyOnRails
[15:45:04] gost: has joined #RubyOnRails
[15:45:51] jphase_: has joined #RubyOnRails
[15:46:36] gost: the information about rails in internet is very fragmented in different versions
[15:47:10] gost: if i'm using rails 5 should i stick for the information specific to this version or may i use info about other versions?
[15:53:15] jhfisc: has joined #RubyOnRails
[15:55:48] logicscience: has joined #RubyOnRails
[15:56:06] jhfisc: has joined #RubyOnRails
[15:59:40] mtkd: has joined #RubyOnRails
[16:01:31] logicscience: a lot of big sites.... basecamp looks incredibly diruptive!
[16:01:57] jhfisc: has joined #RubyOnRails
[16:02:02] logicscience: what does it mean strava has a rails frontend? what's the rest of the stack?
[16:04:38] gost: https://stackshare.io/strava/strava
[16:04:45] conta: has joined #RubyOnRails
[16:07:15] logicscience: aha, thank you gost, bookmarked stackshare
[16:11:22] cagomez: has joined #RubyOnRails
[16:13:50] jphase: has joined #RubyOnRails
[16:13:56] jhfisc: has joined #RubyOnRails
[16:15:11] gusrub: has joined #RubyOnRails
[16:24:02] jhfisc: has joined #RubyOnRails
[16:24:34] bitch: has joined #RubyOnRails
[16:26:41] jhfisc: has joined #RubyOnRails
[16:29:56] rakm: has joined #RubyOnRails
[16:31:44] beilabs: has joined #RubyOnRails
[16:33:07] jhfisc: has joined #RubyOnRails
[16:34:40] beilabs: has joined #RubyOnRails
[16:38:14] DTZUZO: has joined #RubyOnRails
[16:39:21] guacamole: has joined #RubyOnRails
[16:42:04] ascarter: has joined #RubyOnRails
[16:52:45] cagomez_: has joined #RubyOnRails
[16:52:48] chouhoulis: has joined #RubyOnRails
[16:53:23] chouhoulis: has joined #RubyOnRails
[17:00:35] ahrs: has joined #RubyOnRails
[17:05:15] jhfisc: has joined #RubyOnRails
[17:11:17] jhfisc: has joined #RubyOnRails
[17:15:02] jhfisc: has joined #RubyOnRails
[17:15:33] dblessing: has joined #RubyOnRails
[17:22:26] mercwithamouth: has joined #RubyOnRails
[17:35:09] gusrub: has joined #RubyOnRails
[17:38:34] high_fiver: has joined #RubyOnRails
[17:41:29] Chernobuk: has joined #RubyOnRails
[17:47:26] ascarter: has joined #RubyOnRails
[17:47:29] jhfisc: has joined #RubyOnRails
[17:50:05] duderonomy: has joined #RubyOnRails
[17:53:33] jhfisc: has joined #RubyOnRails
[17:54:04] dionysus69: has joined #RubyOnRails
[18:01:57] jhfisc: has joined #RubyOnRails
[18:03:53] normie1: has joined #RubyOnRails
[18:06:40] cjohnson: I want to show a delete button if no child records exist, right now I've got Child.where(parent_id: id).any? but I'm pretty sure this is selecting every child record from the db and counting the result
[18:06:54] cjohnson: is there a smarter way to just query the count and check that it's == 0?
[18:13:10] srinidhi: has joined #RubyOnRails
[18:14:00] jhfisc: has joined #RubyOnRails
[18:16:09] cjohnson: .count == 0
[18:19:13] tbuehlmann_: cjohnson: you could also use a counter cache column and check parent.children_count == 0, that way the database doesn't have to be queried a second time
[18:19:36] adgtl: has joined #RubyOnRails
[18:22:00] baweaver: cjohnson: exists
[18:22:21] baweaver: give me a sec to find it
[18:23:13] baweaver: https://apidock.com/rails/ActiveRecord/Base/exists%3F/class
[18:27:26] cjohnson: thanks baweaver that's what I wanted exactly
[18:29:06] cagomez: has joined #RubyOnRails
[18:30:24] cagomez_: has joined #RubyOnRails
[18:31:34] conta1: has joined #RubyOnRails
[18:34:59] gusrub: has joined #RubyOnRails
[18:42:36] npgm: has joined #RubyOnRails
[18:45:28] jhfisc: has joined #RubyOnRails
[18:50:58] quirkycoders: has joined #RubyOnRails
[18:54:27] ascarter: has joined #RubyOnRails
[18:54:41] Ryzokuken: has joined #RubyOnRails
[19:10:37] mwlang: has joined #RubyOnRails
[19:13:14] jhfisc: has joined #RubyOnRails
[19:14:49] mwlang: Just implemented this change to root route definition today. Haven’t deployed to production yet. Would love a sanity check on this idea: https://gist.github.com/mwlang/1ae93907b6ebcb156fdc0db6e0de3cfa
[19:15:19] mwlang: basically, we’re getting hammered with non-HTML requests on the home page route.
[19:15:50] gambl0re: has joined #RubyOnRails
[19:16:09] mwlang: Many of those are easily captured with nginx but a few are getting through still. so this is an attempt to gracefully “NO-OP” the few that do.
[19:18:31] conta1: has joined #RubyOnRails
[19:19:12] jhfisc: has joined #RubyOnRails
[19:25:17] jhfisc: has joined #RubyOnRails
[19:25:41] jphase: has joined #RubyOnRails
[19:29:59] jhfisc: has joined #RubyOnRails
[19:33:56] gost: has joined #RubyOnRails
[19:35:46] normie1: has joined #RubyOnRails
[19:44:05] jhfisc: has joined #RubyOnRails
[19:57:03] dionysus69: so I am moving this question from ruby channel to here: I have arrays named lets say, arr1 arr2 arr3
[19:57:03] dionysus69: how do I access these with each.with_index(1) loop?
[19:57:03] dionysus69: arr + index something like that
[19:57:03] dionysus69: but whats the proper way to concatenate variable names?
[19:57:49] dionysus69: so I want to access contents of each array like this, (arr + index)[n]
[19:59:37] jhfisc: has joined #RubyOnRails
[20:00:59] ascarter: has joined #RubyOnRails
[20:02:06] cagomez: has joined #RubyOnRails
[20:03:33] cagomez: has joined #RubyOnRails
[20:05:17] fmcgeough: has joined #RubyOnRails
[20:10:04] mercwithamouth: has joined #RubyOnRails
[20:12:42] baweaver: Answered in #ruby
[20:13:20] jhfisc: has joined #RubyOnRails
[20:14:57] brent__: has joined #RubyOnRails
[20:15:02] cagomez: has joined #RubyOnRails
[20:16:20] jhfisc: has joined #RubyOnRails
[20:16:30] K3rber0s: has joined #RubyOnRails
[20:21:24] K3rber0s: manicotti shells?
[20:21:46] cagomez: has joined #RubyOnRails
[20:27:38] rakm: has joined #RubyOnRails
[20:29:05] K3rber0s: has left #RubyOnRails: ()
[20:29:57] jhfisc: has joined #RubyOnRails
[20:35:15] jhfisc: has joined #RubyOnRails
[20:39:41] rakm: has joined #RubyOnRails
[20:40:49] jhfisc: has joined #RubyOnRails
[20:44:20] high_fiver: has joined #RubyOnRails
[20:45:17] jhfisc: has joined #RubyOnRails
[20:47:35] Ryzokuken: has joined #RubyOnRails
[20:49:08] DTZUZO: has joined #RubyOnRails
[20:59:46] workmad3: has joined #RubyOnRails
[21:05:50] cagomez: has joined #RubyOnRails
[21:08:12] ascarter: has joined #RubyOnRails
[21:15:01] cagomez: has joined #RubyOnRails
[21:17:15] cagomez: has joined #RubyOnRails
[21:18:46] laphoraig75: has joined #RubyOnRails
[21:19:08] Chernobuk1: has joined #RubyOnRails
[21:21:10] laphoraig75: is there a way to right align links in a top navbar tried pull-xs-right and links still appear on left of page
[21:21:27] ur5us: has joined #RubyOnRails
[21:22:07] ur5us: has joined #RubyOnRails
[21:23:30] blahwoop: has joined #RubyOnRails
[21:24:44] blahwoop: hi all. i have a question. i have this in my view <%= link_to 'Approve', admin_organization_path(org), method: 'post', class: 'primary-button' %> and I have a controller action that is Org.find_by(params[:id] but I keep getting nil.
[21:24:51] jphase: has joined #RubyOnRails
[21:25:20] blahwoop: it's hitting the controller action but i'm getting nil for params[:id]
[21:25:30] blahwoop: what am i doing wrong?
[21:26:09] blahwoop: the org variable i'm passing in as a param is a org object. it should go to the controller as the id
[21:27:29] guacamole: has joined #RubyOnRails
[21:30:20] Ergo: has joined #RubyOnRails
[21:37:26] jhfisc: has joined #RubyOnRails
[21:43:21] jhfisc: has joined #RubyOnRails
[21:45:23] danman: has joined #RubyOnRails
[22:04:42] yuung: has joined #RubyOnRails
[22:05:11] yuung: i have an app that displays user-saved javascript and html on a page. what security concerns should I consider?
[22:05:56] yuung: it's basically a codepen clone - a user writes html/js and there is an autorefreshing iframe that updates periodically
[22:06:22] yuung: there is also a /show path for the page that just uses an erb template to display the html/js in full
[22:11:42] jhfisc: has joined #RubyOnRails
[22:15:53] ascarter: has joined #RubyOnRails
[22:17:04] mr-spoon: has joined #RubyOnRails
[22:17:15] jhfisc: has joined #RubyOnRails
[22:22:46] brent__: has joined #RubyOnRails
[22:23:19] jhfisc: has joined #RubyOnRails
[22:28:51] jhfisc: has joined #RubyOnRails
[22:28:53] hahuang65: has joined #RubyOnRails
[22:36:52] Radar: GOOD MORNING
[22:36:54] gusrub: has joined #RubyOnRails
[22:38:09] jhfisc: has joined #RubyOnRails
[22:44:27] jhfisc: has joined #RubyOnRails
[22:47:45] brendan-: has joined #RubyOnRails
[22:48:18] jhfisc: has joined #RubyOnRails
[22:54:31] gusrub: has joined #RubyOnRails
[22:58:45] aperkins81: has joined #RubyOnRails
[23:00:21] jhfisc: has joined #RubyOnRails
[23:03:29] sunrunner20: has joined #RubyOnRails
[23:05:53] DoubleMalt: has joined #RubyOnRails
[23:13:06] jhfisc: has joined #RubyOnRails
[23:18:34] jhfisc: has joined #RubyOnRails
[23:20:46] ascarter: has joined #RubyOnRails
[23:31:05] jhfisc: has joined #RubyOnRails
[23:38:04] RahulT: has joined #RubyOnRails
[23:38:52] DTZUZO: has joined #RubyOnRails
[23:39:03] banisterfiend: has joined #RubyOnRails
[23:41:03] jphase: has joined #RubyOnRails
[23:41:15] jhfisc: has joined #RubyOnRails
[23:46:40] ascarter: has joined #RubyOnRails
[23:47:17] jhfisc: has joined #RubyOnRails
[23:51:05] jhfisc: has joined #RubyOnRails
[23:53:09] Trynemjoel: has joined #RubyOnRails
[23:57:15] jhfisc: has joined #RubyOnRails