« Back to channel list

#RubyOnRails - 14 September 2017

« Back 1 day Forward 1 day »
[00:03:00] arBmind: has joined #RubyOnRails
[00:06:16] cagomez: has joined #RubyOnRails
[00:08:42] hnanon: has joined #RubyOnRails
[00:08:49] hnanon: Hi everyone.
[00:10:05] hnanon: I want to obfuscate the ids in my routes. I have a slug attribute and I want to use it along with a timestamp value (in milliseconds) as the param instead of the id.
[00:10:23] hnanon: Is that an acceptable approach?
[00:10:58] hnanon: The timestamp would be the slug value.
[00:13:36] hnanon: Is it reasonable to expect that there wont be a collision if I'm using Unix time in milliseconds as the unique identifier?
[00:14:58] bronson: has joined #RubyOnRails
[00:18:50] aajjbb: has joined #RubyOnRails
[00:23:24] tcopeland: FWIW here’s an article on using UUIDs in slugs https://hackernoon.com/using-custom-slugs-for-rails-urls-500eb3f58f3c
[00:23:48] tcopeland: seems like that would reduce likelihood of collisions
[00:27:38] weaksauce: has joined #RubyOnRails
[00:28:54] Skull0Inc: has joined #RubyOnRails
[00:29:11] Skull0Inc: has left #RubyOnRails: ()
[00:29:40] hnanon: tcopeland: I thought about uuids but I think they're too long for my needs.
[00:32:55] hnanon: tcopeland: That article is helpful, though. Thank you.
[00:36:41] knight33: has joined #RubyOnRails
[00:37:05] adgtl: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[00:45:24] jhfisc: has joined #RubyOnRails
[00:48:59] kn-928: has joined #RubyOnRails
[00:59:45] mtkd: has joined #RubyOnRails
[01:17:06] jhfisc: has joined #RubyOnRails
[01:20:44] timdotrb: has joined #RubyOnRails
[01:21:03] cagomez: has joined #RubyOnRails
[01:29:18] jhfisc: has joined #RubyOnRails
[01:36:13] cagomez: has joined #RubyOnRails
[01:39:57] pharma_joe: has joined #RubyOnRails
[01:42:42] irishfromua: has joined #RubyOnRails
[01:46:06] jhfisc: has joined #RubyOnRails
[01:48:19] Jameser: has joined #RubyOnRails
[01:52:19] PresidentBiscuit: has joined #RubyOnRails
[01:53:22] ForeignBiscuit: has joined #RubyOnRails
[01:57:08] jhfisc: has joined #RubyOnRails
[02:05:34] pharma_joe: has joined #RubyOnRails
[02:05:55] jhfisc: has joined #RubyOnRails
[02:15:46] guardianx: has joined #RubyOnRails
[02:15:53] bronson: has joined #RubyOnRails
[02:16:40] jhfisc: has joined #RubyOnRails
[02:20:16] arBmind: has joined #RubyOnRails
[02:20:44] irishfromua: has joined #RubyOnRails
[02:27:58] orbyt_: has joined #RubyOnRails
[02:32:53] kies: has joined #RubyOnRails
[02:33:59] jhfisc: has joined #RubyOnRails
[02:35:02] chouhoulis: has joined #RubyOnRails
[02:36:36] dionysus69: has joined #RubyOnRails
[02:49:04] jhfisc: has joined #RubyOnRails
[03:07:40] kies: has joined #RubyOnRails
[03:10:50] Trynemjoel: has joined #RubyOnRails
[03:19:11] pharma_joe: has joined #RubyOnRails
[03:23:04] mercwithamouth: has joined #RubyOnRails
[03:23:23] mercwithamouth: do any of the new rails books give examples of working with webpack/react?
[03:45:37] irishfromua: has joined #RubyOnRails
[03:50:21] mtkd: has joined #RubyOnRails
[03:50:36] irishfromua: has joined #RubyOnRails
[04:04:46] SteenJobs_: has joined #RubyOnRails
[04:14:18] pharma_joe: has joined #RubyOnRails
[04:15:43] pharma_joe: has joined #RubyOnRails
[04:17:35] bronson: has joined #RubyOnRails
[04:28:57] ascarter: has joined #RubyOnRails
[04:37:54] quazimodo: has joined #RubyOnRails
[04:42:30] jhfisc: has joined #RubyOnRails
[04:42:52] kn-928: has joined #RubyOnRails
[04:48:03] jhfisc: has joined #RubyOnRails
[04:51:51] dtcristo: has joined #RubyOnRails
[04:53:55] jhfisc: has joined #RubyOnRails
[04:59:31] ascarter: has joined #RubyOnRails
[05:21:01] cagomez: has joined #RubyOnRails
[05:21:14] jhfisc: has joined #RubyOnRails
[05:25:02] pharma_joe: has joined #RubyOnRails
[05:49:12] jhfisc: has joined #RubyOnRails
[05:55:14] jhfisc: has joined #RubyOnRails
[06:00:57] srinidhi: has joined #RubyOnRails
[06:02:22] Chernobuk: has joined #RubyOnRails
[06:07:06] high_fiver: has joined #RubyOnRails
[06:14:01] mercwithamouth: has joined #RubyOnRails
[06:17:16] pharma_joe: has joined #RubyOnRails
[06:18:15] bronson: has joined #RubyOnRails
[06:19:21] powrtoch: has joined #RubyOnRails
[06:22:52] jhfisc: has joined #RubyOnRails
[06:33:01] jhfisc: has joined #RubyOnRails
[06:33:40] workmad3: has joined #RubyOnRails
[06:36:11] conta: has joined #RubyOnRails
[06:39:03] ur5us: has joined #RubyOnRails
[06:41:59] jhfisc: has joined #RubyOnRails
[06:47:45] drale2k_: has joined #RubyOnRails
[06:48:04] jhfisc: has joined #RubyOnRails
[06:48:07] sandstrom: has joined #RubyOnRails
[06:51:48] kn-928: has joined #RubyOnRails
[06:52:01] ShalokShalom: has joined #RubyOnRails
[06:58:37] jhfisc: has joined #RubyOnRails
[07:00:33] arBmind: has joined #RubyOnRails
[07:03:44] workmad3: has joined #RubyOnRails
[07:11:13] jhfisc: has joined #RubyOnRails
[07:11:41] sandstrom: has joined #RubyOnRails
[07:16:41] jhfisc: has joined #RubyOnRails
[07:21:21] roshanavand: has joined #RubyOnRails
[07:21:53] jhfisc: has joined #RubyOnRails
[07:26:48] cagomez: has joined #RubyOnRails
[07:26:56] dminuoso: mercwithamouth: split them off entirely, then get a react book and you are done.
[07:27:26] mercwithamouth: dminuoso: fair enough lol
[07:27:52] jhfisc: has joined #RubyOnRails
[07:28:37] dminuoso: mercwithamouth: And if you have any need to share data such as intl/i18n, git submodules have you covered.
[07:29:06] mercwithamouth: gotcha, that works
[07:41:41] jhfisc: has joined #RubyOnRails
[07:42:27] Radar: listen to dminuoso for he is wise(ish)
[07:43:46] arBmind: has joined #RubyOnRails
[07:45:57] Sylario: has joined #RubyOnRails
[07:48:20] roshanavand: has joined #RubyOnRails
[07:48:55] tetraktys: has joined #RubyOnRails
[07:57:44] jhfisc: has joined #RubyOnRails
[08:01:07] drale2k_: has joined #RubyOnRails
[08:01:44] sandstrom: I have a class Cat and a special proxy-class called MagicCat that wrap and delegate to a Cat instance. Is it a bad idea to overload `is_a?` for MagicCat, to make it 'look' more like a Cat to my other code?
[08:01:55] mostlybadfly: has joined #RubyOnRails
[08:02:15] sandstrom: or is it wiser to go with `if kitten.is_a?(Cat) || kitten.is_a?(MagicCat)` everywhere
[08:05:58] havenwood: sandstrom: def is_a?(klass); super || __getobj__.is_a?(klass) end
[08:07:59] Ergo: has joined #RubyOnRails
[08:12:37] marr: has joined #RubyOnRails
[08:13:41] one_zero: has joined #RubyOnRails
[08:19:10] bronson: has joined #RubyOnRails
[08:25:17] jhfisc: has joined #RubyOnRails
[08:33:49] kn-928: has joined #RubyOnRails
[08:35:52] lxsameer: has joined #RubyOnRails
[08:43:13] jhfisc: has joined #RubyOnRails
[08:46:01] jhfisc: has joined #RubyOnRails
[08:58:51] jhfisc: has joined #RubyOnRails
[09:04:26] hammer065: has joined #RubyOnRails
[09:28:03] snowy: has joined #RubyOnRails
[09:28:09] srinidhi: has joined #RubyOnRails
[09:30:57] workmad3: has joined #RubyOnRails
[09:42:25] bruno-: has joined #RubyOnRails
[09:42:37] cagomez: has joined #RubyOnRails
[09:46:07] AzaToth: has joined #RubyOnRails
[09:46:47] nickjj: has joined #RubyOnRails
[09:49:58] jhfisc: has joined #RubyOnRails
[09:56:35] jhfisc: has joined #RubyOnRails
[09:58:28] cagomez: has joined #RubyOnRails
[09:59:17] jhfisc: has joined #RubyOnRails
[09:59:29] ur5us: has joined #RubyOnRails
[10:11:23] jhfisc: has joined #RubyOnRails
[10:14:05] drale2k_: has joined #RubyOnRails
[10:20:27] bronson: has joined #RubyOnRails
[10:22:48] baderos: has joined #RubyOnRails
[10:26:48] ShalokShalom_: has joined #RubyOnRails
[10:29:17] Saukk: has joined #RubyOnRails
[10:42:10] workmad3_: has joined #RubyOnRails
[10:44:52] kn-928: has joined #RubyOnRails
[10:47:00] jhfisc: has joined #RubyOnRails
[10:47:38] quazimodo: has joined #RubyOnRails
[10:53:14] jhfisc: has joined #RubyOnRails
[10:59:09] jhfisc: has joined #RubyOnRails
[11:00:16] cagomez: has joined #RubyOnRails
[11:04:47] apparition: has joined #RubyOnRails
[11:06:46] srinidhi: has joined #RubyOnRails
[11:16:10] cagomez: has joined #RubyOnRails
[11:29:01] jhfisc: has joined #RubyOnRails
[11:34:49] ldnunes: has joined #RubyOnRails
[11:35:36] GodFather: has joined #RubyOnRails
[11:37:31] jhfisc: has joined #RubyOnRails
[11:38:52] sekmo: has joined #RubyOnRails
[11:39:08] sekmo: hi folks! Could you help me with a problems that I have with routes?
[11:39:36] sekmo: https://gist.github.com/sekmo/789c8551a549be5c36e3cf1b066301d1
[11:40:47] sekmo: I've created a PagesController to have some static pages on my app, such as "pages/welcome", that just renders a partials from "views/pages"
[11:42:41] jhfisc: has joined #RubyOnRails
[11:43:42] sekmo: Even going to http://localhost:3000/pages/welcome it works, I can't test the controller :(
[11:46:03] jhfisc: has joined #RubyOnRails
[11:47:29] dballenger: sekmo: I think it's because you're using pages_url, rather than pages_path or saying action: :show, page: :welcome
[11:47:43] dballenger: (action=>"http://test.host/pages/welcome")
[11:48:21] codelahoma: has joined #RubyOnRails
[11:48:35] ur5us: has joined #RubyOnRails
[11:51:55] ShalokShalom: has joined #RubyOnRails
[11:53:47] mihya: has joined #RubyOnRails
[11:56:57] jhfisc: has joined #RubyOnRails
[12:06:32] snowy: has joined #RubyOnRails
[12:09:12] jhfisc: has joined #RubyOnRails
[12:10:18] zeitchef: has joined #RubyOnRails
[12:12:21] dminuoso: sandstrom: I think it is a bad idea.
[12:12:46] zeitchef: has joined #RubyOnRails
[12:13:18] sandstrom: dminuoso thanks! I ended up not doing it
[12:18:03] jhfisc: has joined #RubyOnRails
[12:21:42] bronson: has joined #RubyOnRails
[12:25:18] sekmo: dballenger you're right, but now I get this error: No route matches {:action=>"/pages/welcome", :controller=>"pages"}
[12:26:58] sekmo: I'm not sure about this route: get 'pages/:page', to: 'pages#show', as: 'pages'
[12:28:02] keegnotrub: has joined #RubyOnRails
[12:37:48] kn-928: has joined #RubyOnRails
[12:37:59] jhfisc: has joined #RubyOnRails
[12:38:55] ShalokShalom: has joined #RubyOnRails
[12:42:44] syndikate: What is the preferred way to handle routing of react components in rails?
[12:43:21] ShalokShalom: has joined #RubyOnRails
[12:46:50] dminuoso: syndikate: By not doing the routing in rails.
[12:46:55] dminuoso: syndikate: Use something like react-router.
[12:49:00] syndikate: Okay, so treating it completely as if it was a js app, let me try. I wasnt sure if this was the preferred method
[12:49:38] dminuoso: syndikate: It's best if you go all the way and keep the react application separate from the rails repository in fact.
[12:50:20] syndikate: But, I don't use node. It's Rails rendered DOM and react on top of it
[12:50:26] dminuoso: syndikate: Are you using webpacker?
[12:50:33] dminuoso: Then you are using node.
[12:50:54] syndikate: Oh, can you elaborate please?
[12:51:00] dminuoso: What do you think webpack is?
[12:51:08] dminuoso: It's a fat node application.
[12:52:34] syndikate: Oh okay... my understanding of web pack is pathetic then
[12:52:38] dminuoso: And things like babel that it brings out of the box are also node apps.
[12:53:00] dminuoso: syndikate: webpack is comparable to `sprockets`
[12:53:50] dminuoso: syndikate: My recommendation for starting with react: Use create-react-app in a separate directory.
[12:54:22] syndikate: dminuoso, yeah I did go through all that, just that I did not dig into understanding what is web pack yet
[12:54:36] syndikate: I have a basic app with react components running
[12:55:00] dminuoso: syndikate: The reason you should really opt for create-react-app is that it configures webpack with some really neat things like hot module replacement.
[12:55:39] knight33: has joined #RubyOnRails
[12:55:39] dminuoso: Which is a fancy way of saying: If you edit your code, the webpage updates live while you are on it without reloading.
[12:55:59] syndikate: Ah yes, webpack-dev-server gives that, right? For developing in rails
[12:56:17] dminuoso: syndikate: it requires HMR handlers to be enabled.
[12:56:22] dminuoso: Or *written* rather
[12:57:08] syndikate: So, currently all my react code is inside app/javascript. What was that you were suggesting about code arrangement?
[12:57:16] jhfisc: has joined #RubyOnRails
[12:57:31] dminuoso: syndikate: All my react code is in ~/projects/site-frontend, while my rails code is in ~/projects/site-api ;-)
[12:58:05] syndikate: Ah nice, do you have a public repo of this for reference
[13:04:32] tbuehlmann: matthewd: can you tell me where to look for the code that resets @records when spawning/cloning a relation?
[13:05:25] matthewd: I don't think anything *resets* it.. it's just not populated until the relation gets loaded
[13:08:02] jhfisc: has joined #RubyOnRails
[13:09:53] tbuehlmann: shouldn't @records be cloned as well when cloning the relation?
[13:10:03] roshanavand: has joined #RubyOnRails
[13:12:08] matthewd: Ah, right you are
[13:12:29] matthewd: https://github.com/rails/rails/blob/dd7bd1e9c1de7668a9bdb671d00d4aec77001544/activerecord/lib/active_record/relation.rb#L555, via initialize_copy
[13:13:54] tbuehlmann: ah, perfect! didn't know about initialize_copy, thanks a lot
[13:14:21] jhfisc: has joined #RubyOnRails
[13:15:40] roshanavand: has joined #RubyOnRails
[13:15:41] Cork: does the change_column have support for anything similar to change_column_default from: to: ?
[13:15:51] daydreamm: has joined #RubyOnRails
[13:31:25] jhfisc: has joined #RubyOnRails
[13:34:13] drale2k_: i am trying to render a .json.jbuilder view from another action, but all i get is a blank pate
[13:34:54] drale2k_: https://gist.github.com/anonymous/307bb6589db870ceac42ad1c67fe8fe5
[13:35:05] drale2k_: i get no error, the update works but the json is not rendered
[13:35:36] drale2k_: the update view is working fine since it works for the "update" action
[13:35:56] drale2k_: in the raisl server log i see that the "Compelted" code is 0
[13:36:35] fryguy: how are you calling connect
[13:36:58] drale2k_: this is an API, i am calling it from a GET request, api/agents/1/connect
[13:37:06] drale2k_: connect is a member on the agents resource
[13:37:07] GodFather: has joined #RubyOnRails
[13:37:15] matthewd: Cork: Try http://api.rubyonrails.org/
[13:37:16] fryguy: what is the format of the api call? html? json?
[13:37:19] jhfisc: has joined #RubyOnRails
[13:37:32] drale2k_: i set it to JSON for all requests
[13:37:46] Cork: matthewd: i have, but i can't find any reference for it
[13:37:46] fryguy: is there an update html view available?
[13:37:57] Cork: and i can't find the source either
[13:38:01] drale2k_: yes sure, there is also a update action and both are working fine
[13:38:08] matthewd: Cork: (or better explain your question.. maybe I'm misinterpreting?)
[13:38:11] drale2k_: i would just like to reuse the update view for the connect action
[13:38:22] fryguy: what is the contents of the update html view?
[13:38:50] Cork: matthewd: change_column_default can have from: to: keys so you can use it directly in def change withtout having to use reversable
[13:39:02] drale2k_: https://gist.github.com/anonymous/32b60f8556550d1ad59c10527062cf90
[13:39:06] Cork: i just wondered if there was a similar syntax for change_column
[13:39:20] fryguy: drale2k_: that's the controller, what about the update html view
[13:39:33] drale2k_: i have no html view, only json.jbuilder
[13:39:45] fryguy: oh, i just asked and you said you did
[13:39:51] drale2k_: this is an API controller
[13:39:58] jhfisc: has joined #RubyOnRails
[13:40:11] drale2k_: sry, i have update action and view, but not html just json
[13:42:07] matthewd: Cork: Ah okay, I did misunderstand sorry. Doesn't look like it. Seems like it should, though. :/
[13:42:14] drale2k_: shouldn't his work? And why do i get a Completed: 0 status code
[13:43:44] fryguy: drale2k_: show the log of rails processing the request
[13:44:01] Cork: matthewd: k thx
[13:44:42] drale2k_: fryguy: https://gist.github.com/anonymous/ea4f60f480c0e02350486514d79a4266
[13:45:03] drale2k_: update.json.jbuilder render the agent partial, which works fine
[13:45:38] KevinSjoberg: has joined #RubyOnRails
[13:46:15] fryguy: api/v1/agents/update.json.jbuilder is what it's rendering, what should it be rendering?
[13:46:35] jhfisc: has joined #RubyOnRails
[13:46:49] drale2k_: exactly that, only that i should see the output as json but all i get is a blank page and as you can see a status "0"
[13:47:01] fryguy: ok, what's the contents of the jbuilder file then
[13:47:20] drale2k_: when i use the uopdate action, i get t he json output, which means the update.json.jbuilder is fine
[13:47:45] fryguy: it probably is
[13:47:57] fryguy: but i'd like to see it so we can see what's wrong with the controller, since they are tightly coupled
[13:48:03] fryguy: i know what's wrong, but want to verify
[13:48:13] drale2k_: https://gist.github.com/anonymous/538d5cbe1dc306665e591cd11760db21
[13:49:02] fryguy: ok, so see how @status is an instance variable there? you aren't setting that instance variable in your connect action
[13:49:33] fryguy: passing parameters like status to `render` doesn't do what you think it does (in fact status is a reserved word of sorts for render, which controls the html return code)
[13:49:33] drale2k_: render :update, status: "ok", agent: @agent .. are those not instance variables i pass to update ?
[13:49:44] fryguy: they are not
[13:49:44] aajjbb: has joined #RubyOnRails
[13:49:48] kn-928: has joined #RubyOnRails
[13:50:05] fryguy: @status = 'ok' ; render :update
[13:51:30] drale2k_: but why does it work with the agent variable i pas?
[13:51:41] fryguy: it doesn't
[13:51:42] drale2k_: the update partial is also expecting a @agent instance variable
[13:51:45] fryguy: well, it does, but only coincidentally
[13:51:50] fryguy: the @agent variable is already set above
[13:51:57] fryguy: adding it to the call to `render` does nothing
[13:53:26] dminuoso: syndikate: No.
[13:53:30] drale2k_: this would have cost me a lot of headache :>
[13:54:20] syndikate: Alright dminuoso, thanks
[13:54:24] dminuoso: syndikate: create-react-app gives you a fine base structure to start from already, and so does `rails new`
[13:54:33] dminuoso: syndikate: So these two in tandem is pretty much all you need to get started.
[13:56:59] dminuoso: syndikate: Furhter reasons to use cra is that flow support is fully prepared, service worker registration, web app manifest, auto prefixed css, some useful stage-3 features.
[14:02:11] chouhoulis: has joined #RubyOnRails
[14:04:07] dionysus69: has joined #RubyOnRails
[14:05:05] chouhoulis: has joined #RubyOnRails
[14:07:53] Skull0Inc: has joined #RubyOnRails
[14:15:29] jhfisc: has joined #RubyOnRails
[14:17:02] defsdoor: has joined #RubyOnRails
[14:20:02] bladdezz: has left #RubyOnRails: ()
[14:22:21] bronson: has joined #RubyOnRails
[14:24:29] aajjbb: has joined #RubyOnRails
[14:25:21] FrostCandy: has joined #RubyOnRails
[14:25:26] ForeignBiscuit: has joined #RubyOnRails
[14:26:38] FrostCandy: In rails asset/stylesheets/application.css what does it mean it's generally better to create a new file per style scope? What is a style scope? cant google it
[14:26:58] cagomez: has joined #RubyOnRails
[14:29:14] jhfisc: has joined #RubyOnRails
[14:32:27] Skull0Inc: FrostCandy: basically I think that means to create a structure per scope. So text styling could be text.css or .scss, colours could be colours.scss and so on.
[14:33:07] FrostCandy: Skull0inc: oh ok thanks
[14:33:09] Skull0Inc: Just group different aspects of styling into different files and then you'll have to learn to include them
[14:35:43] jhfisc: has joined #RubyOnRails
[14:39:23] snowy: has joined #RubyOnRails
[14:41:18] mtkd: has joined #RubyOnRails
[14:42:57] rgr: has joined #RubyOnRails
[14:51:06] Archrover: has joined #RubyOnRails
[14:51:26] Skull0Inc: Hey all, just wondering: what would be a good way to enter persistent data into a DB without having to create a general form per model?
[14:52:56] npgm: has joined #RubyOnRails
[14:59:14] jhfisc: has joined #RubyOnRails
[15:00:42] gusrub: has joined #RubyOnRails
[15:02:33] arBmind: has joined #RubyOnRails
[15:03:19] aajjbb: has joined #RubyOnRails
[15:05:19] jhfisc: has joined #RubyOnRails
[15:09:24] bruno-: has joined #RubyOnRails
[15:12:30] tetraktys: has joined #RubyOnRails
[15:14:30] troys: has joined #RubyOnRails
[15:16:07] jhfisc: has joined #RubyOnRails
[15:20:51] tetraktys: has joined #RubyOnRails
[15:21:59] jhfisc: has joined #RubyOnRails
[15:32:40] dviola: has joined #RubyOnRails
[15:32:45] cagomez: has joined #RubyOnRails
[15:45:04] pLaTo0n: has joined #RubyOnRails
[15:45:35] thortron: has joined #RubyOnRails
[15:59:25] jokke: has joined #RubyOnRails
[15:59:39] jokke: i'm having some trouble with Rack::Cors and Rails 4
[16:00:06] jokke: i set up Rack::Cors as a middleware but get 404 errors for any OPTIONS requests i make
[16:00:53] knight33: has joined #RubyOnRails
[16:00:59] mars777: has joined #RubyOnRails
[16:02:20] ascarter: has joined #RubyOnRails
[16:06:16] [Butch]: has joined #RubyOnRails
[16:08:36] KevinSjoberg: has joined #RubyOnRails
[16:15:16] sandstrom: has joined #RubyOnRails
[16:21:37] orbyt_: has joined #RubyOnRails
[16:23:34] bronson: has joined #RubyOnRails
[16:29:29] Skull0Inc: jokke: Sorry, don't know about that, but maybe someone else does.
[16:29:44] jokke: i was missing the headers in my test request
[16:29:59] jokke: with the correct preflight request headers it returns 200 as expected
[16:31:12] KevinSjoberg: has joined #RubyOnRails
[16:31:52] ascarter: has joined #RubyOnRails
[16:32:50] daydreamm: has joined #RubyOnRails
[16:34:14] workmad3: has joined #RubyOnRails
[16:35:52] KevinSjoberg: has joined #RubyOnRails
[16:44:21] tetraktys: has joined #RubyOnRails
[16:46:47] mostlybadfly: has joined #RubyOnRails
[16:48:18] KevinSjoberg: has joined #RubyOnRails
[16:48:40] bruno-: has joined #RubyOnRails
[16:55:24] hahuang65: has joined #RubyOnRails
[16:56:25] KevinSjoberg: has joined #RubyOnRails
[16:59:46] zacts: has joined #RubyOnRails
[17:04:45] chouhoulis: has joined #RubyOnRails
[17:05:19] one_zero: has joined #RubyOnRails
[17:05:34] bronson: has joined #RubyOnRails
[17:08:39] jhfisc: has joined #RubyOnRails
[17:18:13] ShalokShalom: has joined #RubyOnRails
[17:18:22] orbyt_: Anyone familiar with the Flipper gem?
[17:18:32] havenwood: orbyt_: yes
[17:18:38] orbyt_: I'm getting a no method def error when trying to configure via `Flipper.configure`
[17:18:50] orbyt_: And `Flipper.respond_to? :configure` returns false..
[17:18:53] banisterfiend: has joined #RubyOnRails
[17:22:20] NoGodDamnIdea: has joined #RubyOnRails
[17:23:04] fryguy: where in the flipper docs does it say to use .configure?
[17:23:39] gusrub: has joined #RubyOnRails
[17:23:40] jhfisc: has joined #RubyOnRails
[17:23:41] orbyt_: fryguy Err..almost everywhere: https://github.com/jnunemaker/flipper
[17:23:56] orbyt_: First line in the example is Flipper.configure after the require statement
[17:24:13] high_fiver: has joined #RubyOnRails
[17:24:58] fryguy: which require statement?
[17:25:51] orbyt_: fryguy Did you take a look at the ReadMe? The example is right there.
[17:26:01] fryguy: orbyt_: yes I did
[17:26:06] fryguy: which version of flipper are you running?
[17:26:15] orbyt_: The latest stable
[17:26:23] fryguy: what version is that
[17:26:28] fryguy: what's in your Gemfile.lock for it
[17:26:36] orbyt_: 0.10.2 I believe
[17:26:39] orbyt_: let me double check
[17:26:45] fryguy: you might want to try looking at the readme for that version.
[17:27:15] orbyt_: It's the default version that's installed when installing the Gem
[17:28:38] orbyt_: I guess it's just a matter of mis documentation?
[17:28:48] dionysus69: has joined #RubyOnRails
[17:28:50] fryguy: you are reading the wrong readme
[17:29:38] orbyt_: If the ReadMe specifies to install via `gem install xxx` and then the examples show usage not related to the version installed by `gem install xxx`, thats a problem
[17:29:59] fryguy: orbyt_: no it's not
[17:30:04] jhfisc: has joined #RubyOnRails
[17:30:15] fryguy: orbyt_: how else are they going to develop new versions?
[17:30:35] orbyt_: Same as you would any other software?
[17:30:44] fryguy: you mean like resque, rails? etc? that all do it like this?
[17:30:47] orbyt_: I appreciate you helping me figure out the issue though
[17:30:58] fryguy: you picked software that has a wildly divergent configuration in it's yet-to-be-released versio
[17:31:16] fryguy: you didn't install the version of software that's at the head of master, you installed a different version
[17:31:19] fryguy: look at that readme
[17:31:37] orbyt_: I installed by the default command
[17:31:47] fryguy: yes, which installs a version of the software
[17:31:55] orbyt_: That should install the version represented by the rest of the ReadMe.
[17:31:57] orbyt_: Common sense.
[17:32:07] fryguy: including this documentation
[17:32:20] fryguy: orbyt_: it will, when the documentation is released
[17:32:29] fryguy: you are looking in teh wrong place
[17:32:54] orbyt_: fryguy I appreciate your insight.
[17:33:07] fryguy: the correct readme got installed WITH THE GEM
[17:33:09] fryguy: the link here
[17:33:09] fryguy: https://rubygems.org/gems/flipper
[17:33:13] fryguy: goes to the right documentation to
[17:33:41] fryguy: you can't just assume that some random branch of some random code repository on github is going to coincide with what you installed
[17:34:09] kies: has joined #RubyOnRails
[17:34:45] fryguy: cat `bundle show flipper`/README.md
[17:34:48] fryguy: works as well
[17:35:02] mtkd: has joined #RubyOnRails
[17:35:09] tbuehlmann: you can also visit the code for your exact version: https://github.com/jnunemaker/flipper/tree/v0.10.2
[17:35:17] tbuehlmann: (assuming the tag is correct)
[17:35:31] fryguy: tbuehlmann: that's the problem, he thinks that master should magically map to his version
[17:38:53] kn-928: has joined #RubyOnRails
[17:40:28] lxsameer: has joined #RubyOnRails
[17:40:38] KevinSjoberg: has joined #RubyOnRails
[17:50:39] Skull0Inc: has joined #RubyOnRails
[17:53:51] dionysus69: has joined #RubyOnRails
[17:55:20] lxsameer: has joined #RubyOnRails
[17:56:04] Tempesta: has joined #RubyOnRails
[17:57:05] orbyt_: has joined #RubyOnRails
[18:06:48] cr3: has joined #RubyOnRails
[18:23:10] rgr: has joined #RubyOnRails
[18:26:44] jhfisc: has joined #RubyOnRails
[18:28:33] sandstrom: has joined #RubyOnRails
[18:31:01] roshanavand: has joined #RubyOnRails
[18:31:20] ascarter: has joined #RubyOnRails
[18:35:25] chouhoulis: has joined #RubyOnRails
[18:37:02] jhfisc: has joined #RubyOnRails
[18:39:55] jhfisc: has joined #RubyOnRails
[18:41:30] srinidhi: has joined #RubyOnRails
[18:44:46] kn-928: has joined #RubyOnRails
[18:45:15] jhfisc: has joined #RubyOnRails
[18:47:11] KevinSjoberg: has joined #RubyOnRails
[18:57:15] jhfisc: has joined #RubyOnRails
[18:58:02] gusrub: has joined #RubyOnRails
[19:06:11] NoGodDamnIdea: has joined #RubyOnRails
[19:13:51] FrostCandy: So, is there an easy way to check and see if a .html.erb page is actually being used? Previous programmer looks to have some pages that don't actually ever get called. If I search for the name of the file, it doesn't show up, I assume that means it's not called?
[19:19:51] dminuoso: FrostCandy, you are gonna hate me for this but Im gonna do it anyway.
[19:20:10] dminuoso: Delete the file, run test suite and commit if no errors?
[19:20:36] dminuoso: You have coverage right? :-)
[19:21:21] dminuoso: FrostCandy, and no it's not enough. not only is there such a thing as implicit renders, but there's also implicit actions.
[19:21:41] sameerynho: has joined #RubyOnRails
[19:22:47] dminuoso: FrostCandy, `rails routes` should give you all routable controller#action - that's the most complete list of views some of which should exist.
[19:23:13] knight33: has joined #RubyOnRails
[19:24:08] FrostCandy: dminuoso: lol ok, well routes doens't list it. I guess that means it's a case of delete it, and click all the links to see if one triggers the page call
[19:25:18] jhfisc: has joined #RubyOnRails
[19:26:55] dminuoso: FrostCandy, if the path/filename of the view matches no routable controller/action, and the filename is not explicitly rendered, then I think it safe to assume its unused.
[19:27:06] dminuoso: FrostCandy, why dont you just git blame the file, and look how the file was connected?
[19:27:30] dminuoso: or git log actually
[19:28:53] FrostCandy: dminuoso: oh smart
[19:37:02] jhfisc: has joined #RubyOnRails
[19:42:29] orbyt_: has joined #RubyOnRails
[19:45:06] jhfisc: has joined #RubyOnRails
[19:47:44] dionysus69: has joined #RubyOnRails
[19:51:14] jhfisc: has joined #RubyOnRails
[19:52:00] netzfisch: has joined #RubyOnRails
[19:52:49] gambl0re: has joined #RubyOnRails
[19:54:01] jhfisc: has joined #RubyOnRails
[19:55:20] yaw: has joined #RubyOnRails
[19:56:07] zeitchef: has joined #RubyOnRails
[20:13:56] knight33: has joined #RubyOnRails
[20:26:05] jhfisc: has joined #RubyOnRails
[20:30:12] gusrub: has joined #RubyOnRails
[20:36:11] conta1: has joined #RubyOnRails
[20:39:02] jhfisc: has joined #RubyOnRails
[20:44:15] jhfisc: has joined #RubyOnRails
[20:52:50] ascarter: has joined #RubyOnRails
[20:58:29] benlieb: has joined #RubyOnRails
[21:03:16] jhfisc: has joined #RubyOnRails
[21:07:45] bronson: has joined #RubyOnRails
[21:09:14] jhfisc: has joined #RubyOnRails
[21:14:05] jhfisc: has joined #RubyOnRails
[21:20:16] orbyt_: has joined #RubyOnRails
[21:24:55] tfitts: has joined #RubyOnRails
[21:25:26] jhfisc: has joined #RubyOnRails
[21:26:52] mlt-: has joined #RubyOnRails
[21:30:14] mlt-: I'm considering to use reform gem. I have 3 subclasses that are represented in DB as parent table (abstract ancestor) and 3 tables for subclasses. Can I get by with a single form object or do I have to create it (class) for every child? Do I use composition? I'm new to reform.. I head of dry-types, but it seems reform should be easier.
[21:30:55] jhfisc: has joined #RubyOnRails
[21:34:01] Guest85415: has joined #RubyOnRails
[21:37:12] jhfisc: has joined #RubyOnRails
[21:46:03] dviola: has joined #RubyOnRails
[21:46:59] jhfisc: has joined #RubyOnRails
[21:55:13] orbyt_: has joined #RubyOnRails
[22:01:51] gusrub: has joined #RubyOnRails
[22:11:24] jhfisc: has joined #RubyOnRails
[22:17:19] jhfisc: has joined #RubyOnRails
[22:21:20] gusrub: has joined #RubyOnRails
[22:31:13] jhfisc: has joined #RubyOnRails
[22:35:34] irishfromua: has joined #RubyOnRails
[22:37:14] jhfisc: has joined #RubyOnRails
[22:42:25] jhfisc: has joined #RubyOnRails
[22:59:02] jhfisc: has joined #RubyOnRails
[22:59:19] tetraktys: has joined #RubyOnRails
[23:11:50] DTZUZO: has joined #RubyOnRails
[23:18:28] aajjbb: has joined #RubyOnRails
[23:31:27] jhfisc: has joined #RubyOnRails
[23:47:58] bronson: has joined #RubyOnRails