« Back to channel list

#RubyOnRails - 23 July 2017

« Back 1 day Forward 1 day »
[00:00:50] SteenJobs_: has joined #RubyOnRails
[00:02:01] arquebus: has joined #RubyOnRails
[00:02:25] codelahoma: has joined #RubyOnRails
[00:11:36] jtdowney: has joined #RubyOnRails
[00:21:21] one_zero: has joined #RubyOnRails
[00:27:27] jhfisc: has joined #RubyOnRails
[00:32:04] bronson: has joined #RubyOnRails
[00:33:18] jhfisc: has joined #RubyOnRails
[00:35:22] ariedler: has joined #RubyOnRails
[00:39:17] jhfisc: has joined #RubyOnRails
[00:40:02] bronson: has joined #RubyOnRails
[00:42:11] jhfisc: has joined #RubyOnRails
[00:48:05] jhfisc: has joined #RubyOnRails
[01:00:32] jhfisc: has joined #RubyOnRails
[01:01:00] Jameser: has joined #RubyOnRails
[01:05:28] SteenJobs_: has joined #RubyOnRails
[01:05:50] jhfisc: has joined #RubyOnRails
[01:11:02] jhfisc: has joined #RubyOnRails
[01:13:53] jhfisc: has joined #RubyOnRails
[01:16:22] KeyJoo: has joined #RubyOnRails
[01:16:44] mr-spoon: has joined #RubyOnRails
[01:27:19] cagomez: has joined #RubyOnRails
[01:41:33] bronson: has joined #RubyOnRails
[01:45:02] jhfisc: has joined #RubyOnRails
[01:50:14] codelahoma: has joined #RubyOnRails
[01:55:34] jhfisc: has joined #RubyOnRails
[02:01:08] gusrub: has joined #RubyOnRails
[02:10:59] ur5us: has joined #RubyOnRails
[02:11:39] jhfisc: has joined #RubyOnRails
[02:24:13] RahulT: has joined #RubyOnRails
[02:26:47] jhfisc: has joined #RubyOnRails
[02:37:16] jhfisc: has joined #RubyOnRails
[02:39:54] sevenseacat: has joined #RubyOnRails
[02:42:29] bronson: has joined #RubyOnRails
[02:44:21] jhfisc: has joined #RubyOnRails
[02:53:56] dionysus69: has joined #RubyOnRails
[03:00:32] fcser_: has joined #RubyOnRails
[03:01:41] jhfisc: has joined #RubyOnRails
[03:08:05] jhfisc: has joined #RubyOnRails
[03:10:14] GodFather: has joined #RubyOnRails
[03:14:45] jhfisc: has joined #RubyOnRails
[03:18:10] RahulT: has joined #RubyOnRails
[03:27:14] jhfisc: has joined #RubyOnRails
[03:32:13] jhfisc: has joined #RubyOnRails
[03:34:01] KeyJoo: has joined #RubyOnRails
[03:38:11] jhfisc: has joined #RubyOnRails
[03:38:55] codelahoma: has joined #RubyOnRails
[03:41:38] bronson: has joined #RubyOnRails
[03:43:08] agent_white: has joined #RubyOnRails
[03:43:53] Jameser: has joined #RubyOnRails
[03:56:17] jhfisc: has joined #RubyOnRails
[03:59:28] jhfisc: has joined #RubyOnRails
[04:05:23] jhfisc: has joined #RubyOnRails
[04:11:10] jhfisc: has joined #RubyOnRails
[04:38:16] quazimodo: has joined #RubyOnRails
[04:42:32] bronson: has joined #RubyOnRails
[04:43:33] RahulT: has joined #RubyOnRails
[04:47:02] emers2n: has joined #RubyOnRails
[04:58:03] muzik: has joined #RubyOnRails
[05:02:10] guardianx: has joined #RubyOnRails
[05:26:55] codelahoma: has joined #RubyOnRails
[05:43:22] bronson: has joined #RubyOnRails
[05:46:22] nahtnam: has joined #RubyOnRails
[06:04:54] jhfisc: has joined #RubyOnRails
[06:23:09] jhfisc: has joined #RubyOnRails
[06:37:13] jhfisc: has joined #RubyOnRails
[06:41:17] ariedler: has joined #RubyOnRails
[06:43:26] jhfisc: has joined #RubyOnRails
[06:44:17] bronson: has joined #RubyOnRails
[06:47:12] jhfisc: has joined #RubyOnRails
[06:49:39] cam27: has joined #RubyOnRails
[06:59:12] jhfisc: has joined #RubyOnRails
[07:05:17] jhfisc: has joined #RubyOnRails
[07:09:30] jamal7: has joined #RubyOnRails
[07:12:15] jhfisc: has joined #RubyOnRails
[07:15:18] codelahoma: has joined #RubyOnRails
[07:18:35] jhfisc: has joined #RubyOnRails
[07:19:41] jamal7: has joined #RubyOnRails
[07:26:06] RahulT: has joined #RubyOnRails
[07:30:32] defsdoor: has joined #RubyOnRails
[07:34:11] jhfisc: has joined #RubyOnRails
[07:39:13] FastJack: has joined #RubyOnRails
[07:44:58] jhfisc: has joined #RubyOnRails
[07:45:16] bronson: has joined #RubyOnRails
[07:47:57] jhfisc: has joined #RubyOnRails
[07:48:40] jamal7: has joined #RubyOnRails
[07:54:17] jhfisc: has joined #RubyOnRails
[08:00:53] netzfisch: has joined #RubyOnRails
[08:02:13] jamal7_: has joined #RubyOnRails
[08:08:31] AzaToth: has joined #RubyOnRails
[08:10:25] jhfisc: has joined #RubyOnRails
[08:19:59] RahulT: has joined #RubyOnRails
[08:22:01] jhfisc: has joined #RubyOnRails
[08:33:06] Chernobuk: has joined #RubyOnRails
[08:37:14] jhfisc: has joined #RubyOnRails
[08:40:55] lxsameer: has joined #RubyOnRails
[08:42:57] ariedler: has joined #RubyOnRails
[08:46:07] bronson: has joined #RubyOnRails
[08:47:14] apparition47: has joined #RubyOnRails
[08:51:39] jhfisc: has joined #RubyOnRails
[09:03:50] quazimodo: has joined #RubyOnRails
[09:04:06] codelahoma: has joined #RubyOnRails
[09:07:31] jhfisc: has joined #RubyOnRails
[09:13:59] jhfisc: has joined #RubyOnRails
[09:18:48] jhfisc: has joined #RubyOnRails
[09:25:15] jhfisc: has joined #RubyOnRails
[09:28:37] jhfisc: has joined #RubyOnRails
[09:29:16] marr: has joined #RubyOnRails
[09:31:18] jhfisc: has joined #RubyOnRails
[09:35:53] one_zero: has joined #RubyOnRails
[09:36:12] TheBloke: has joined #RubyOnRails
[09:45:50] SteenJobs_: has joined #RubyOnRails
[09:47:17] bronson: has joined #RubyOnRails
[09:49:13] DrYockel: has joined #RubyOnRails
[10:01:50] high_fiver: has joined #RubyOnRails
[10:10:57] dionysus69: has joined #RubyOnRails
[10:18:02] srinidhi: has joined #RubyOnRails
[10:44:58] ariedler: has joined #RubyOnRails
[10:48:08] bronson: has joined #RubyOnRails
[10:51:52] rgr: has joined #RubyOnRails
[10:51:55] codelahoma: has joined #RubyOnRails
[10:59:29] NoGodDamnIdea: has joined #RubyOnRails
[11:02:28] RahulT: has joined #RubyOnRails
[11:48:58] bronson: has joined #RubyOnRails
[11:56:24] RahulT: has joined #RubyOnRails
[12:34:01] jhfisc: has joined #RubyOnRails
[12:36:42] jhfisc: has joined #RubyOnRails
[12:40:17] codelahoma: has joined #RubyOnRails
[12:41:54] jhfisc: has joined #RubyOnRails
[12:44:46] roshanavand: has joined #RubyOnRails
[12:46:46] ariedler: has joined #RubyOnRails
[12:49:32] Defenestrate: has joined #RubyOnRails
[12:49:47] bronson: has joined #RubyOnRails
[12:55:32] jhfisc: has joined #RubyOnRails
[12:59:36] roshanavand: has joined #RubyOnRails
[13:00:50] jhfisc: has joined #RubyOnRails
[13:02:34] agent_white: has joined #RubyOnRails
[13:05:48] norfumpit: has joined #RubyOnRails
[13:07:15] jhfisc: has joined #RubyOnRails
[13:09:36] norfumpit: localization question: I've got a Dog model which has many Activities, and I'm instantiating a new Dog with nested attributes passed in for his activities. if there's a nested error I get something like "Activity name can't be blank". how do I translate the "Activity" in there? I've already got a activerecord.models.activity customized, but it doesn't seem to be used here
[13:11:17] Defenestrate: anyone else here find RoR has too much magic?
[13:15:09] lupine: far too much
[13:16:14] raz: i found https://github.com/Codcore/amethyst very refreshing
[13:16:27] raz: that might become the new rails for me
[13:17:14] jhfisc: has joined #RubyOnRails
[13:23:15] jhfisc: has joined #RubyOnRails
[13:35:26] Jameser: has joined #RubyOnRails
[13:37:59] jhfisc: has joined #RubyOnRails
[13:42:39] jhfisc: has joined #RubyOnRails
[13:48:16] ariedler: has joined #RubyOnRails
[13:48:57] jhfisc: has joined #RubyOnRails
[13:50:42] bronson: has joined #RubyOnRails
[13:55:12] jhfisc: has joined #RubyOnRails
[14:00:29] jhfisc: has joined #RubyOnRails
[14:05:59] jhfisc: has joined #RubyOnRails
[14:06:12] srinidhi: has joined #RubyOnRails
[14:25:25] jhfisc: has joined #RubyOnRails
[14:28:48] codelahoma: has joined #RubyOnRails
[14:37:40] jhfisc: has joined #RubyOnRails
[14:43:42] cam27: has joined #RubyOnRails
[14:51:28] bronson: has joined #RubyOnRails
[14:52:30] rapha: i have a piece of code (a validation) that works, but is neither DRY nor pretty ... is there anything obvious about https://gist.github.com/sixtyfive/82681b0b6a6a9ed589b45e52b2d80a00 that you would change and how?
[14:57:00] LiamW: has joined #RubyOnRails
[14:57:20] LiamW: quick question
[14:57:35] LiamW: why aren't the *.rubyonrails.org domains served via tls?
[15:01:33] jhfisc: has joined #RubyOnRails
[15:14:00] jhfisc: has joined #RubyOnRails
[15:32:38] RahulT: has joined #RubyOnRails
[15:36:19] jhfisc: has joined #RubyOnRails
[15:41:38] jhfisc: has joined #RubyOnRails
[15:42:56] chouhoulis: has joined #RubyOnRails
[15:44:22] jhfisc: has joined #RubyOnRails
[15:49:47] jhfisc: has joined #RubyOnRails
[15:52:39] bronson: has joined #RubyOnRails
[15:54:56] cagmz: has joined #RubyOnRails
[15:55:27] mustmodify: has joined #RubyOnRails
[15:55:38] jhfisc: has joined #RubyOnRails
[15:55:51] mustmodify: has left #RubyOnRails: ()
[15:59:06] Rodya_: has joined #RubyOnRails
[16:00:38] dionysus69: has joined #RubyOnRails
[16:11:17] rabajaj: has joined #RubyOnRails
[16:17:06] codelahoma: has joined #RubyOnRails
[16:17:55] cam27: I started a project with the default db enviornment setup, however it has been nothing but issues between development and production, so I am wondering of I can just change all three enviornments to pg (which I assume is a yes), but do I have to reset or destroy the current migration schema?
[16:22:47] jhfisc: has joined #RubyOnRails
[16:23:19] guacamole: cam27: you can switch to pg in all environments, you'll have to recreate the DB in postgres
[16:23:32] guacamole: idk if you've seen this guide on how to do what you want to do: http://railscasts.com/episodes/342-migrating-to-postgresql?view=asciicast
[16:25:17] cam27: Oh good, thank you guacamole, I haven’t seen this one. THe sources I was working off of were all new setups.
[16:25:42] guacamole: its probably best to use the same db for all your environments :)
[16:25:59] guacamole: cam27: no prob!
[16:26:53] Rodya_: has joined #RubyOnRails
[16:26:56] cam27: I started this project a year ago (for practice,) since then everyone has been doing that, so I figured that’s the key.
[16:29:11] guacamole: cam27: practice makes perfect! holler if you get stuck moving things around
[16:29:15] jhfisc: has joined #RubyOnRails
[16:30:51] LiamW: the best way to gain experience is to work on a site that already "made it"
[16:43:17] jhfisc: has joined #RubyOnRails
[16:45:16] ariedler: has joined #RubyOnRails
[16:52:09] ar1a: has joined #RubyOnRails
[16:53:27] bronson: has joined #RubyOnRails
[17:10:24] Andr3as: hello everyone.. i am looking for a way to have a table customizable by each user (what columns show, sorting column/direction, maybe filter) and store that persistantly into the database... anyone has an idea where to look at?
[17:10:29] dionysus69: has joined #RubyOnRails
[17:11:07] Andr3as: + columns in what sequenz
[17:18:43] cam27: LiamW Ive done a lot of tutorials, but now I’m going through the building design myself after reading all of the guides and things so that I can troubleshoot the different issues that arise when things go wrong. It was always smooth sailing just following along.
[17:19:33] LiamW: the guides don't emphasize REST strongly enough
[17:19:59] LiamW: and without a RESTful design you basically stray off the "Rails way"
[17:20:29] LiamW: I mostly avoid the guides anyway except when looking up specific methods or doing an upgrade
[17:23:31] cam27: It seems like I learned a lot though through them, like my issues with going from sqlite3 to pg was the standalone migrations weren’t being recognized. I’m sure there is a way around it, but better to just have all of these enviornment db’s the same, so now I’ll do that and learn psql commands. I just keep getting a more and more solid understanding of this whole technology. I figure once I’m really confident with
[17:23:32] cam27: the back end, I’ll try to use js libraries to make he front end better.
[17:24:08] LiamW: it's most important to know ruby to get rails down
[17:24:49] LiamW: knowing ruby very well would give you a sense of what to do re the migration issued
[17:25:17] LiamW: and keep in mind that you can make your frontend better by having less code there
[17:25:21] cam27: YEah, I read the Well Grounded Rubyist, I have a good handle on it
[17:25:40] fcser_: has joined #RubyOnRails
[17:26:10] cam27: That’s why now I’m putting my feet tot he fire and making an e-commerce site as a experiment.
[17:26:28] LiamW: js libraries are not a prerequisite for having a well-factored frontend
[17:26:54] cam27: Using RSpec for the TDD, probably won’t implement Cucumber though
[17:27:03] LiamW: js modules almost certainly are, though https://github.com/liamwhite/sprockets-rollup
[17:27:53] LiamW: </blatant shill>
[17:30:29] LiamW: and to go along with that I have some bits and bobs that you can just pop into an app https://github.com/liamwhite/js-utils
[17:31:52] cam27: I’m not sure what the standard way to do front end dev is. It seems like there are so many different ways to do it. So that link you just sent me mentions webpack, and I’ve seen people use webpack in place of sprockets (I believe) in order to use React. So what is the best way to develop front end? Coffee Script? React, Angular, Bower file? etc… seems like so many different ways people do it that it gets more opinion
[17:31:52] cam27: based than a best practice
[17:33:47] LiamW: I use ES6 with a module compiler for browsers because I've found ES6 to be very pleasant to write compared to ES5, and it will eventually end up supported in all browsers, whereas Coffee and other compile-to-JS languages won't (and will have learning overhead)
[17:34:03] LiamW: Coffee in fact has a broken grammar and I recommend avoiding it
[17:34:58] LiamW: You might want to use webpack if you're super fond of the node ecosystem and are OK with just adding frontend libraries as you like
[17:35:05] cam27: I figured Coffee is like YAML, and I should just stick with the most adopted. That’s what I want to do with all of my code
[17:36:06] cam27: meaning they are there, but erb and js are still the norm
[17:38:15] LiamW: I tend to write my code as minimally as possible while still maintaining a level of convenience
[17:40:13] cam27: Would this be a useful read? http://exploringjs.com/es6/
[17:40:37] LiamW: how well do you know ES5?
[17:43:48] cam27: Yeah, I probably don’t need that book after looking at its contents. I know JS well enough, just not sure how I am going to go about storing front end libraries in my app, what JS Library I will pick to bind data to the view, etc, thing s like that
[17:44:49] cam27: This last book used Angular and Bower file, but it’s a little dated of a book now, but if it’s still used like that without webpack, then I’ll just do that
[17:45:18] cam27: sprockets, Bower file, Angular
[17:45:26] LiamW: you're straying off the frontend mininalism path so I'll leave you there
[17:45:45] LiamW: but for backend you have to really take REST to heart
[17:46:11] LiamW: http://jeromedalbert.com/how-dhh-organizes-his-rails-controllers/
[17:52:44] LiamW: asking again because I wasn't answered earlier:
[17:52:47] LiamW: <LiamW> why aren't the *.rubyonrails.org domains served via tls?
[17:54:06] bronson: has joined #RubyOnRails
[17:55:17] cam27: Thanks for the tips LiamW, and assuming tls is turbolinks, I’m not sure why, Radar probably knows though
[17:55:49] LiamW: TLS = transport layer security
[18:05:35] codelahoma: has joined #RubyOnRails
[18:15:04] RahulT: has joined #RubyOnRails
[18:15:13] ariedler: has joined #RubyOnRails
[18:19:15] dviola: has joined #RubyOnRails
[18:19:26] cam27: beer me :) Created database 't_shirt_store_development' Created database 't_shirt_store_test' Created database 't_shirt_store_production'
[18:20:28] cam27: had to erase the PID file and some other things in order to create those db from sql to pg, figured there would be some files that had to go and some services stopped. Getting better with things like that
[18:20:51] cam27: never as easy as the tutorial suggests
[18:37:01] jhfisc: has joined #RubyOnRails
[18:47:23] jhfisc: has joined #RubyOnRails
[18:55:06] bronson: has joined #RubyOnRails
[18:56:53] cam27: I wrote two things on guitar this week that have me questioning if I am the greatest of all time jk, but they are both really good. I just program and listen to my music
[18:58:07] jhfisc: has joined #RubyOnRails
[19:02:14] mikecmpbll: has joined #RubyOnRails
[19:04:37] cam27: pg really isn’t liking my stand alone migration where I added a reference, says table doesn’t exist, but it does exist and all of my model files show has many and belongs to
[19:08:58] RahulT: has joined #RubyOnRails
[19:11:37] cam27: Can someone take a look at this errror and my files and tell me what is going on? https://gist.github.com/cam271/3d48a2cca4767cbf545cc3e20a6f1943
[19:14:51] LiamW: psql> \d OrderStatuses
[19:15:57] jhfisc: has joined #RubyOnRails
[19:22:18] jhfisc: has joined #RubyOnRails
[19:26:51] cam27: Did not find any relation named "OrderStatuses".
[19:28:35] jhfisc: has joined #RubyOnRails
[19:28:40] LiamW: wow I wonder why it says that the table doesn't exist
[19:30:18] LiamW: do this in your migration instead add_reference(:orders, :order_status, {:foreign_key=>true})
[19:30:40] cam27: Instead of doing it as a standaonemigration
[19:31:20] LiamW: you're trying to reference :OrderStatuses
[19:31:22] LiamW: for some reason
[19:31:41] LiamW: idk you haven't linked the migration file
[19:31:53] jhfisc: has joined #RubyOnRails
[19:33:35] cam27: 20160815220802_create_order_statuses.rb
[19:33:53] cam27: not sure why it doesn’t think this table exists
[19:34:31] LiamW: gist the contents of the migration file
[19:34:45] LiamW: the table literally doesn't exist, read the error message
[19:34:56] LiamW: it's trying to reference a table called OrderStatuses
[19:35:04] LiamW: the table is actually called order_statuses
[19:36:32] cam27: I added it as a comment
[19:36:58] LiamW: wrong migration
[19:37:10] LiamW: gist 20170704220741_add_foreign_key_to_orders.rb
[19:37:15] jhfisc: has joined #RubyOnRails
[19:38:49] LiamW: see that line right there `add_reference :orders, :OrderStatus, foreign_key: true`
[19:38:51] LiamW: that is wrong
[19:39:05] LiamW: it needs to be `add_reference :orders, :order_statuses, foreign_key: true`
[19:39:59] LiamW: actually it needs to be `add_reference :orders, :order_status, foreign_key: true` because pluralization but that's why your migration won't work
[19:41:50] cam27: thank you. those were auto generated I believe with the rails g AddXXXToYYY command I believe
[19:42:17] cam27: As you can see the time stamps are 2016, so I can’t remember
[19:43:53] jhfisc: has joined #RubyOnRails
[19:52:03] dionysus69: has joined #RubyOnRails
[19:55:57] bronson: has joined #RubyOnRails
[20:08:19] jhfisc: has joined #RubyOnRails
[20:09:42] dcope: has left #RubyOnRails: ()
[20:14:06] jhfisc: has joined #RubyOnRails
[20:17:15] ariedler: has joined #RubyOnRails
[20:18:12] jhfisc: has joined #RubyOnRails
[20:22:17] cam27: has joined #RubyOnRails
[20:23:59] jhfisc: has joined #RubyOnRails
[20:25:03] shortCircuit__: has left #RubyOnRails: ("WeeChat 1.8")
[20:29:59] banisterfiend: has joined #RubyOnRails
[20:33:51] jhfisc: has joined #RubyOnRails
[20:46:13] jhfisc: has joined #RubyOnRails
[20:49:05] jhfisc: has joined #RubyOnRails
[20:55:11] jhfisc: has joined #RubyOnRails
[20:56:49] bronson: has joined #RubyOnRails
[21:01:15] jhfisc: has joined #RubyOnRails
[21:06:36] jhfisc: has joined #RubyOnRails
[21:07:34] apofis: has joined #RubyOnRails
[21:27:49] DoubleMalt: has joined #RubyOnRails
[21:33:15] high_fiver: has joined #RubyOnRails
[21:42:06] codelahoma: has joined #RubyOnRails
[21:51:27] RahulT: has joined #RubyOnRails
[21:58:00] bronson: has joined #RubyOnRails
[22:05:33] RahulT: has joined #RubyOnRails
[22:08:25] moei: has joined #RubyOnRails
[22:18:56] ariedler: has joined #RubyOnRails
[22:20:28] coder2000: has joined #RubyOnRails
[22:21:33] coder2000: Is it possible to iterate an ActiveRecord::Enum in a template?
[22:27:02] Radar: GOOD MORNING
[22:27:36] coder2000: Morning Radar
[22:27:37] Radar: LiamW: I guess ror.org isn't served via ssl/tls because the rails core team has higher priorities.
[22:28:41] LiamW: I would think that at least defending the documentation pages against trivial MITM attacks should be high up on the list of things to do
[22:30:19] coder2000: Standard DV certs don't exclude MITM attacks
[22:30:52] LiamW: they do in an otherwise properly-configured setup
[22:31:40] coder2000: Users still need to be educated on what to look out for
[22:31:49] LiamW: if you're going to make a point about using EV certs, EV certs don't provide any special level of protection that DV doesn't https://www.troyhunt.com/on-the-perceived-value-ev-certs-cas-phishing-lets-encrypt/
[22:33:14] coder2000: I'm not making a point for any level of certificate. Any of them can be spoofed given enough dedication.
[22:34:27] LiamW: preload the cert and use a public key pin
[22:34:41] LiamW: that will get you the vast majority of the way to blocking those attacks
[22:36:13] duderono_: has joined #RubyOnRails
[22:36:50] coder2000: I recently read an article and it seems from a glance that yours would agree that standard DV certs should be demoted to the level of what HTTP is now. Eventually eliminating an unencrypted web.
[22:38:10] LiamW: that isn't the point of the article
[22:38:31] LiamW: the point is that both EV and DV will keep your connection _private_ and that the difference between them is mostly irrelevant
[22:39:39] coder2000: Except for the deeper validation of identity in EV certs
[22:39:51] coder2000: It's a matter of trust
[22:41:36] coder2000: I do support for a company that deals in trust every day. All users have to validate their ID before they can use the platform. All transactions are reviewed by both parties. This creates trust that people can rely on.
[22:41:40] matthewd: LiamW: What's the attack vector on MITMed documentation?
[22:42:31] LiamW: 03:12:26 < *> Moonlightning discovers the Rails docs are a website that doesn't support TLS
[22:42:34] LiamW: 03:12:49 <Moonlightning> okay, how long until we get attacks by spoofing API docs and tricking developers into introducing security holes into their apps?
[22:42:53] LiamW: is the context
[22:43:13] LiamW: normally I wouldn't care but for how easy it is to set up a DV cert using e.g. letsencrypt I felt it worthwhile to pass that on
[22:43:29] LiamW: as in "5-10 minutes of setup" easy
[22:43:49] coder2000: I agree that it can become an issue but isn't the documentation reviewed and updated on a regular basis?
[22:43:59] matthewd: Ah okay. We should do it at some point just because TLS all the things, but "defending" seemed more active than I would expect.
[22:44:45] LiamW: the other thing about getting TLS is that it will put the actual official rails documentation above APIDock in google search results
[22:45:01] matthewd: For api. and friends, the reason is that we haven't gotten around to it; for the main rubyonrails.org itself, it's because GH pages doesn't support it
[22:45:56] coder2000: You can bet they are working on it and Let's Encrypt will support wildcard certificates in 2018
[22:46:29] codelahoma: has joined #RubyOnRails
[22:46:52] LiamW: based on what's written here https://blog.cloudflare.com/secure-and-fast-github-pages-with-cloudflare/ you can simply use a TLS proxy to fetch securely from GH pages and then serve to the domain itself
[22:47:06] LiamW: it need not be cloudflare, in case you don't like the "all eggs in one basket thing"
[22:47:15] LiamW: it can just be a simple VPS running nginx
[22:47:45] coder2000: If your going to the lengths of running a VPS you might as well host the page yourself. :)
[22:48:26] matthewd: I have feels about that solution; it gives an appearance of safety by presenting as https, yet is still MITMable
[22:49:26] LiamW: could host the static pages for real on aforementioned VPS, and update them automatically on push to the github pages repo via a webhook
[22:50:29] matthewd: Or we could work on Rails, and not spend time solving a non-problem (which, as noted, will presumably get solved for us soon enough)
[22:53:40] coder2000: Is it possible to iterate an ActiveRecord::Enum in a template?
[22:57:06] matthewd: coder2000: Does Conversation.statuses give you what you want?
[22:58:16] matthewd: (i.e., `ModelKlass.plural_name_of_enum`)
[22:58:21] jhfisc: has joined #RubyOnRails
[22:58:57] bronson: has joined #RubyOnRails
[22:59:33] coder2000: I keep getting "syntax error, unexpected keyword_ensure, expecting end-of-input"
[22:59:42] coder2000: my code is https://gist.github.com/coder2000/0744f339cde58da40c160fccc7c2d0b3
[23:01:23] matthewd: `genders` maybe? Otherwise we'd probably need to see the full backtrace, and likely whatever code it's pointing at.
[23:02:10] coder2000: I tried that too.
[23:02:30] coder2000: I got further by specifying Actor.genders as the collection for my radio buttons
[23:02:41] LiamW: on the non technical aspect I think that having an explicit enumeration of genders is probably a bad idea
[23:05:13] coder2000: LiamW: Why?
[23:05:53] LiamW: sooner or later you'll end up with someone in your data that doesn't fit any precise definition of male or female
[23:06:40] LiamW: if you meant to record sex, then you could probably get away with that
[23:06:50] coder2000: Trans is not a gender. It is a definition for people who are changing from one to the other.
[23:07:14] jhfisc: has joined #RubyOnRails
[23:07:17] LiamW: I'm not referring to trans
[23:07:56] LiamW: I'm also not referring to the sort of "gender of the day" people that you might think I am
[23:08:04] LiamW: I'm just saying that it's not as meaningful as you probably think it is
[23:09:04] coder2000: If it comes to that I can update
[23:32:32] helpa: http://i.imgur.com/tyViD.gif
[23:36:56] ar1a: has joined #RubyOnRails
[23:47:14] jhfisc: has joined #RubyOnRails
[23:51:14] gusrub: has joined #RubyOnRails
[23:52:35] jhfisc: has joined #RubyOnRails
[23:59:41] bronson: has joined #RubyOnRails