« Back to channel list

#RubyOnRails - 28 August 2017

« Back 1 day Forward 1 day »
[00:05:45] jhfisc: has joined #RubyOnRails
[00:06:54] knight33: has joined #RubyOnRails
[00:18:24] bronson: has joined #RubyOnRails
[00:24:39] rubylegend2092: has joined #RubyOnRails
[00:25:08] rubylegend2092: Can someone please give me advice on modeling a relationship?
[00:28:54] one_zero: has joined #RubyOnRails
[00:30:24] Radar: rubylegend2092: !ask
[00:30:24] helpa: rubylegend2092: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
[00:32:34] rubylegend2092: I have an Employer model and normal User model. The Employer has_many jobs. I need to build a model that allows the User to sign Job Applications for the Job Model. So, that the Employer Model can see which Users signed the Job Applications for the Job Model.
[00:33:08] rubylegend2092: How should I approach building the Job Application Model?
[00:35:03] rubylegend2092: I need the Job Application to store key information on the User, like the username, link to user_profile and full_name.
[00:36:11] daydream: has joined #RubyOnRails
[00:38:24] Jameser: has joined #RubyOnRails
[00:38:27] jhfisc: has joined #RubyOnRails
[00:39:11] bruno-_: has joined #RubyOnRails
[00:40:42] Ropeney: has joined #RubyOnRails
[00:42:20] joelroa: has joined #RubyOnRails
[00:43:39] quazimodo: has joined #RubyOnRails
[00:52:03] twilling: has joined #RubyOnRails
[00:55:09] milesmatthias: has joined #RubyOnRails
[00:56:09] twilling: If I have a Post which `has_many :categories, through: :post_categories` (habtm + join model), I know that I can do `Post.joins(:categories).where(categories: { slug: ['cat-a', 'cat-b'] })` and fetch the Posts which belong to either category.
[00:56:10] twilling: However, I want to be able to get Posts assigned to BOTH categories, not either or. Can I get some guidance on the best way to approach this?
[01:04:55] Ropeney: twilling, `where("categories.slug = 'cat-a' && categories.slug = 'cat-b'")`
[01:06:15] Ropeney: but use AND not &&
[01:07:22] twilling: @Ropeney do you know of a way to do that through ActiveRecord a little more directly rather than building up a string?
[01:07:23] jmay: has joined #RubyOnRails
[01:09:10] Radar: Post.joins(:categories).where(categories: { slug: 'cat-a' }.where(categories: { slug: 'cat-b' })... probs closer to what you want, but I think you want to join that table twice.
[01:09:38] Ropeney: ^ but I didn't like the two where :(
[01:19:30] Ropeney: also definitely will want to join twice, as a slug can never be both @twilling
[01:28:26] jhfisc: has joined #RubyOnRails
[01:33:40] jhfisc: has joined #RubyOnRails
[01:36:58] jhfisc: has joined #RubyOnRails
[01:42:04] jhfisc: has joined #RubyOnRails
[01:42:24] Chernobuk: has joined #RubyOnRails
[01:50:38] jhfisc: has joined #RubyOnRails
[01:56:54] jhfisc: has joined #RubyOnRails
[02:05:01] jhfisc: has joined #RubyOnRails
[02:18:41] jmay: has joined #RubyOnRails
[02:19:56] bronson: has joined #RubyOnRails
[02:20:58] jhfisc: has joined #RubyOnRails
[02:22:24] srinidhi: has joined #RubyOnRails
[02:27:03] jhfisc: has joined #RubyOnRails
[02:43:41] jhfisc: has joined #RubyOnRails
[02:45:56] newcoder: has joined #RubyOnRails
[02:46:00] newcoder: Ruby is not scalable, how true is it?
[02:47:10] Jayson_Virissimo: has joined #RubyOnRails
[02:47:17] twilling: has joined #RubyOnRails
[02:49:09] Ropeney: newcoder, dunno, ask github, shopify, or basecamp; they might have a accurate answer
[02:50:21] twilling: Ropeney: what would you suggest if there’s not a fixed limit to the number of combinations I can have?
[02:50:22] wmoxam: it doesn't scales down well
[02:50:40] Ropeney: twilling, sorry?
[02:51:37] twilling: Sorry this is about my earlier joins/multiple where question earlier. The intention is to let users pick any number of combinations of categories for filtering posts down. So while my example talks about cat-a and cat-b as being slugs to query for Posts associated with, there could also be 3 other slugs provided. Or any number of slugs
[02:52:21] matthewd: twilling: Use an exists clause in a manual subquery, for each slug
[02:53:13] newcoder: has left #RubyOnRails: ()
[02:54:22] Ropeney: Though, I'd be starting to look at easier design
[02:55:04] twilling: Any easier design in terms of the posts to categories relationship?
[02:55:21] Ropeney: since you have two categories using slugs
[02:55:31] jhfisc: has joined #RubyOnRails
[02:57:15] twilling: I can have an infinite number of categories using slugs
[02:57:33] Ropeney: maybe, just maybe, slug could become a seperate model
[02:58:06] Ropeney: and I mean, two models using slugs, not categories sorry
[02:58:12] Ropeney: you have post_categories and categories
[02:58:27] Ropeney: though would be more ideal to see if you can morph those two to 1 model
[02:58:36] twilling: oh, sorry. i’ve explained something wrong…
[02:58:57] twilling: i will draft up a quick gist...
[02:59:15] Ropeney: ah I see it's all just categories
[02:59:21] Ropeney: I remembered wrong
[03:02:49] twilling: this is kind of what i’m after
[03:02:50] twilling: https://gist.github.com/anonymous/a15abf10e6ee0e4e8b36d5d71ca14f34
[03:04:12] Ropeney: then just chain .where like said?
[03:05:39] twilling: you mean like this, Ropeney? https://gist.github.com/anonymous/80287c200c903b725753e7d4b93e3871
[03:05:59] Ropeney: `@collection = Post.joins(:categories); [slug1,slug2,slug3].each { |slug| @collection = @collection.where(categories: { slug: slug } }`
[03:06:10] Ropeney: maybe something like that?
[03:06:33] matthewd: That's not doing multiple joins
[03:06:46] Ropeney: but it doesn't need multiple?
[03:07:22] Ropeney: what matthewd said earlier
[03:07:35] Ropeney: If i had the code, i'd try the things before I spoke :(
[03:07:55] twilling: ha no worries, i appreciate that :)
[03:07:58] umaaji: has joined #RubyOnRails
[03:08:19] twilling: 1 Subquery for every category whose slug I need to check?
[03:08:29] jhfisc: has joined #RubyOnRails
[03:08:35] matthewd: twilling: Yes
[03:09:56] twilling: it might just be that it’s late. just taking a little while to imagine this
[03:12:58] Radar: twilling: Guessing a setup like this: https://gist.github.com/radar/170254bfc79c98e33b79343cb829e831 and then a query for category_1 and category_2 should turn up just post_1, not both post_1 and post_2?
[03:13:02] matthewd: .where("EXISTS(SELECT 1 FROM categories_posts JOIN categories ON (category_id = id) WHERE slug = ? AND post_id = posts.id)", your_slug_here)
[03:13:19] matthewd: Something like that maybe?
[03:13:20] jhfisc: has joined #RubyOnRails
[03:14:04] twilling: @Radar that’s correct
[03:14:16] matthewd: More raw SQL than I'd like for something so simple, but ¯\_(ツ)_/¯
[03:14:26] twilling: @matthewd parsing :)
[03:18:42] irishfromua: has joined #RubyOnRails
[03:27:50] twilling: @matthewd so like, EXISTS … AND EXISTS … AND EXISTS … for however many category slugs I need to filter by?
[03:28:33] matthewd: twilling: Yeah
[03:30:28] Ropeney: I really wonder if doing this inside ruby is going to be that much slower, yet so much cleaner
[03:31:12] twilling: im ok with sacrificing a little performance for maintainbility
[03:31:18] twilling: but i don’t know how to do that with activerecord :p
[03:31:58] Ropeney: `Post.categories.all.select{|post| (post.categories.map(&:slug) & slugs_array).any}` maybe
[03:32:34] Ropeney: you'd want an includes for sure too
[03:33:52] Radar: DB fiddle here if you want it: https://www.db-fiddle.com/f/22BQT3b5dcuV1pUTCRM8kR/0
[03:40:51] FCser: has joined #RubyOnRails
[03:44:45] jhfisc: has joined #RubyOnRails
[03:47:39] Ropeney: https://www.db-fiddle.com/f/ksZ5fWFqFnZ7zQ6R3F6LkJ/0 hmmmm?
[03:48:11] Radar: Possibly :)
[03:48:25] Ropeney: obv count needs to change depending how many slugs
[03:48:29] Radar: Where the count is the number of categories
[03:48:40] Radar: This is what I've seen in my googling too.
[03:48:42] Radar: twilling: ^
[03:48:56] Ropeney: google foo
[03:49:37] matthewd: And assuming some unique indexes
[03:49:47] jmay: has joined #RubyOnRails
[03:50:06] Ropeney: as in 2 categories having the same slug?
[03:50:29] mtkd: has joined #RubyOnRails
[03:50:58] matthewd: Mostly, yes. Also a post having the same category twice, though that's more likely to be prevented by the UI, or by a PK on the join table.
[03:51:30] Ropeney: I'd hope slugs where unique, would make hard to use them as a slug otherwise :(
[03:51:49] Ropeney: well that puzzle stopped the day for quite a bit anyway!
[03:54:28] irishfromua: has joined #RubyOnRails
[03:56:58] jhfisc: has joined #RubyOnRails
[03:58:33] umaaji: has joined #RubyOnRails
[03:59:49] matthewd: There's also https://www.db-fiddle.com/f/eyTg1KEySBUykVaLRohcWJ/0 if you really wanted to avoid the count.. but I doubt it'd perform well
[04:01:37] irishfromua: has joined #RubyOnRails
[04:02:01] jhfisc: has joined #RubyOnRails
[04:02:55] Ropeney: hopefully twilling comes back so we all know if it works :/
[04:04:28] twilling: i did something that i’m not sure i love with activerecord
[04:04:58] jhfisc: has joined #RubyOnRails
[04:08:43] twilling: https://gist.github.com/anonymous/010edfbb0e41372e3a2db6414daa71ba
[04:10:34] Ropeney: try the sql I sent, tis better
[04:10:43] Ropeney: and I use the word better loosely here
[04:11:22] matthewd: This looks better to me
[04:11:42] twilling: i think once things are named appropriately/extracted it will be more readable
[04:11:56] matthewd: (without having actually checked & compared query plans, which I would do)
[04:12:53] jhfisc: has joined #RubyOnRails
[04:15:01] matthewd: Ropeney: The advantage of the count solution is that it uses a fixed SQL query.. but the disadvantage, IIRC, is that because of the grouping it has to do part of its work in a [per-post] loop
[04:16:06] matthewd: Whereas the above builds a dynamic query, but any query it produces should boil down to a bitmap merge across the subqueries, with no looping
[04:17:08] Ropeney: I see your point. twilling, do you mind after all this, posting a SQL output after running it?
[04:19:06] matthewd: It should be approximately the IN variant of my EXISTS query
[04:19:28] matthewd: (but much better, because it gets the same result without a huge blob of a string)
[04:19:45] twilling: i would post the query plan but i’ve made up the scenario to post here so i’m not showing my actual code :p
[04:19:50] twilling: and that’s a lot of finding and replacing...
[04:20:23] twilling: it is using IN instead of EXISTS
[04:22:20] bronson: has joined #RubyOnRails
[04:22:38] twilling: i find/replaced anyway
[04:23:03] twilling: it may not be 100% but https://gist.github.com/anonymous/d15d8bf078682c326671ed17827a874c
[04:23:26] twilling: that would be doing something like Post.with_all_categories([‘cat-a’, ‘cat-b’])
[04:26:37] Ropeney: hmmmmm, I don't think that it would work as said then matthewd, but starting to get out of my depth
[04:27:02] Ropeney: posted in a comment with code cleaned up
[04:31:46] ur5us: has joined #RubyOnRails
[04:32:07] ur5us: has joined #RubyOnRails
[04:50:58] mars777: has joined #RubyOnRails
[04:55:35] dionysus69: has joined #RubyOnRails
[04:58:01] srinidhi: has joined #RubyOnRails
[05:06:51] srinidhi: has joined #RubyOnRails
[05:28:44] paranoicsan: has joined #RubyOnRails
[05:51:17] dionysus69: has joined #RubyOnRails
[05:51:28] roshanavand: has joined #RubyOnRails
[06:05:05] harisamin: has joined #RubyOnRails
[06:05:16] dionysus69: has joined #RubyOnRails
[06:05:27] eelster: has joined #RubyOnRails
[06:06:19] mars777: A question regarding Nested Attributes with a user id:
[06:06:19] mars777: If i Created Vehicle model that is parent to for example Car and Truck model. How would i simply get the user_id/current_user into those models so that they are associated together. Do i need to instead make the parent model User and child models Vehicle and through Vehicle - Car and Truck to save the user_id/current user to associated them together. Please help if you can? It would be greatly appreciated.
[06:06:21] eelster: has joined #RubyOnRails
[06:13:28] jhfisc: has joined #RubyOnRails
[06:18:45] paranoicsan: mars777: You could try to use `has_many :vehicles` and `has_many :cars through :vehicles` on User model
[06:19:18] jhfisc: has joined #RubyOnRails
[06:23:01] joelroa: has joined #RubyOnRails
[06:24:34] mars777: Thanks paranoicsan
[06:25:14] bronson: has joined #RubyOnRails
[06:25:32] sevenseacat: has joined #RubyOnRails
[06:25:58] dionysus69: I have nested form https://gist.github.com/553b7b997ad2b46a969241731fb9ec52 and it submits information like this hash: "evaluation"=>{"tenant_evaluation_attributes"=>{"tenant"=>{ } } } where I would expect tenant_attributes instead of just tenant.
[06:26:43] paranoicsan: has left #RubyOnRails: ()
[06:32:32] Ropeney: has joined #RubyOnRails
[06:37:00] FastJack: has joined #RubyOnRails
[06:38:37] conta: has joined #RubyOnRails
[06:39:49] kendocode: has joined #RubyOnRails
[06:43:04] Radar: dionysus69: it would be helpful to see what that partial was: https://gist.github.com/anonymous/553b7b997ad2b46a969241731fb9ec52#file-_form-html-haml-L3
[06:43:51] dionysus69: just the form fields :) https://gist.github.com/b6a2f43c271d0f6a35f9eacdc49db454
[06:51:18] joelroa: has joined #RubyOnRails
[06:57:26] paranoicsan: has joined #RubyOnRails
[07:08:33] jhfisc: has joined #RubyOnRails
[07:14:30] mars777: has joined #RubyOnRails
[07:14:58] jhfisc: has joined #RubyOnRails
[07:20:10] dionysus69: Radar I missed out accepts_nested_attributes_for :tenant, on the join model :s
[07:20:58] jhfisc: has joined #RubyOnRails
[07:24:27] jhfisc: has joined #RubyOnRails
[07:29:59] jhfisc: has joined #RubyOnRails
[07:46:10] jhfisc: has joined #RubyOnRails
[07:56:58] jhfisc: has joined #RubyOnRails
[08:02:41] agent_white: has joined #RubyOnRails
[08:02:58] jhfisc: has joined #RubyOnRails
[08:08:58] jhfisc: has joined #RubyOnRails
[08:14:27] futilegames: has joined #RubyOnRails
[08:14:28] marr: has joined #RubyOnRails
[08:18:58] futilegames: has joined #RubyOnRails
[08:25:39] bronson: has joined #RubyOnRails
[08:27:19] bronson: has joined #RubyOnRails
[08:36:03] thesubr00t: has joined #RubyOnRails
[08:40:36] Ergo: has joined #RubyOnRails
[08:41:25] lxsameer: has joined #RubyOnRails
[08:42:03] arBmind: has joined #RubyOnRails
[08:45:31] mikecmpbll: has joined #RubyOnRails
[08:46:22] jhfisc: has joined #RubyOnRails
[08:58:24] jhfisc: has joined #RubyOnRails
[09:04:58] jhfisc: has joined #RubyOnRails
[09:10:16] jhfisc: has joined #RubyOnRails
[09:19:25] roshanavand: has joined #RubyOnRails
[09:23:02] jhfisc: has joined #RubyOnRails
[09:28:58] jhfisc: has joined #RubyOnRails
[09:36:20] jhfisc: has joined #RubyOnRails
[09:42:22] jhfisc: has joined #RubyOnRails
[09:44:50] mrbubbles: has joined #RubyOnRails
[09:45:10] mrbubbles: syndikate sorry for the slow reply, yes I do have webpack
[09:45:11] umaaji: has joined #RubyOnRails
[09:45:44] mrbubbles: I understand the bit about installing packages - i'm just not sure what to do next :) all the tutorials seem to focus on how easy doing "yarn add" is but then go a bit quiet after that :)
[09:45:44] jhfisc: has joined #RubyOnRails
[09:51:16] KeyJoo: has joined #RubyOnRails
[09:53:34] syndikate: Okay, I forgot your question again mrbubbles, could you please repeat it for me again?
[09:54:07] syndikate: I don't have the history right now to scroll up
[09:54:47] gambl0re: has joined #RubyOnRails
[09:54:50] mrbubbles: No problem, sorry it was a couple of days ago. So I'm using Rails 5.1 and everyone is saying to use Yarn to manage front-end packages. So, if I want to use (for example) flatpickr (https://chmln.github.io/flatpickr/getting-started/) I see I can just say "yarn install flatpickr"
[09:55:08] mrbubbles: Sorry "yarn add". But I'm not then sure how to import the JS and styles into my app
[09:55:36] mrbubbles: It says "If you’re using a bundler, e.g. webpack, you’ll need to import flatpickr" : const flatpickr = require("flatpickr") but I wasn't sure where to put that
[09:55:54] syndikate: So, yarn is like your bundler for frontend packages. Webpack is like your asset pipeline. You can still use yarn without webpack
[09:56:35] syndikate: If you go to confiig/initilazers/assets.rb, you will see a commented out line where they add the node_modules directory as assets path
[09:56:42] syndikate: Uncomment that
[09:57:49] jhfisc: has joined #RubyOnRails
[09:58:06] syndikate: Post which, if you are not using webpack, just require it in your normal javascript assets path, (app/assets/javascript/application.js)
[10:00:59] ams__: has joined #RubyOnRails
[10:04:01] mrbubbles: Ah yes I've got that uncommented
[10:04:09] mrbubbles: But I was thinking that it might be better to use webpack?
[10:04:19] mrbubbles: So that I can use some nice ES6 stuff maybe :D
[10:08:48] Ergo: has joined #RubyOnRails
[10:12:55] hardik127: has joined #RubyOnRails
[10:13:54] jhfisc: has joined #RubyOnRails
[10:18:59] jhfisc: has joined #RubyOnRails
[10:21:35] Inoperable: has joined #RubyOnRails
[10:28:02] bronson: has joined #RubyOnRails
[10:30:16] rgr: has joined #RubyOnRails
[10:35:14] jhfisc: has joined #RubyOnRails
[10:36:37] Psy-Q: has joined #RubyOnRails
[10:48:39] jhfisc: has joined #RubyOnRails
[10:54:55] jhfisc: has joined #RubyOnRails
[10:58:42] jhfisc: has joined #RubyOnRails
[11:01:41] arBmind: has joined #RubyOnRails
[11:08:55] jhfisc: has joined #RubyOnRails
[11:14:06] defsdoor: has joined #RubyOnRails
[11:14:08] syndikate: Mrbubbles, yes you should. I believe so.
[11:14:17] syndikate: mrbubbles *
[11:14:34] syndikate: Use the web packer gem
[11:14:47] jhfisc: has joined #RubyOnRails
[11:17:26] gambl0re: has joined #RubyOnRails
[11:17:42] jhfisc: has joined #RubyOnRails
[11:18:22] mrbubbles: Cool yep so I've got the webpack gem installed, that's all good
[11:18:42] mrbubbles: Just not sure, once I've yarned in a dependency, how to have webpack pull it in
[11:22:50] arBmind: has joined #RubyOnRails
[11:24:43] syndikate: The webpacker GitHub page has a decent enough readme to get started. That should give you some idea
[11:30:26] mtkd: has joined #RubyOnRails
[11:34:25] mr-spoon: has joined #RubyOnRails
[11:36:14] jhfisc: has joined #RubyOnRails
[11:49:51] jhfisc: has joined #RubyOnRails
[12:00:27] ahrs: has joined #RubyOnRails
[12:11:12] keegnotrub: has joined #RubyOnRails
[12:13:27] lupine: has joined #RubyOnRails
[12:14:02] spheric: has joined #RubyOnRails
[12:21:05] daydreamm: has joined #RubyOnRails
[12:23:37] sevenseacat: has joined #RubyOnRails
[12:30:42] bronson: has joined #RubyOnRails
[12:34:48] Abhijit: has joined #RubyOnRails
[12:35:16] Abhijit: why ttranslating strings, is it ok do by sentence or better to do word by word?
[12:37:25] barttenbrinke: By sentence, otherwise you get weird context issues.
[12:37:41] barttenbrinke: Also word order can be quite different between languages.
[12:48:17] jhfisc: has joined #RubyOnRails
[12:49:33] shotbug: has joined #RubyOnRails
[12:57:57] dionysus69: has joined #RubyOnRails
[13:02:35] jhfisc: has joined #RubyOnRails
[13:07:11] xcesariox: has joined #RubyOnRails
[13:08:02] jhfisc: has joined #RubyOnRails
[13:12:14] xcesariox: has joined #RubyOnRails
[13:14:02] mars777: has joined #RubyOnRails
[13:15:02] futilegames: has joined #RubyOnRails
[13:15:08] futilegames: has left #RubyOnRails: ()
[13:16:40] jhfisc: has joined #RubyOnRails
[13:18:22] NoGodDamnIdea: has joined #RubyOnRails
[13:22:07] jhfisc: has joined #RubyOnRails
[13:22:57] roshanavand: has joined #RubyOnRails
[13:23:06] xcesariox: has joined #RubyOnRails
[13:27:39] jhfisc: has joined #RubyOnRails
[13:27:55] knight33: has joined #RubyOnRails
[13:28:53] daydreamm: has joined #RubyOnRails
[13:29:33] marr: has joined #RubyOnRails
[13:30:38] Sylario: has joined #RubyOnRails
[13:32:26] vedu: Hello. How do you store and search production logs? Some third party service like AWS cloud watch or just save the files and awk|grep
[13:35:47] apparition47: has joined #RubyOnRails
[13:44:07] hardik127: has joined #RubyOnRails
[13:47:51] arBmind: has joined #RubyOnRails
[13:50:07] ResidentBiscuit: has joined #RubyOnRails
[13:54:05] theunraveler: has joined #RubyOnRails
[13:58:44] jhfisc: has joined #RubyOnRails
[14:01:42] chouhoulis: has joined #RubyOnRails
[14:04:58] jhfisc: has joined #RubyOnRails
[14:11:06] bruno-: has joined #RubyOnRails
[14:14:50] kapil___: has joined #RubyOnRails
[14:15:34] spheric: has joined #RubyOnRails
[14:16:06] bruno-: has joined #RubyOnRails
[14:19:04] jhfisc: has joined #RubyOnRails
[14:21:49] thortron: has joined #RubyOnRails
[14:22:53] bruno-: has joined #RubyOnRails
[14:27:54] bruno-: has joined #RubyOnRails
[14:31:31] bronson: has joined #RubyOnRails
[14:32:51] bruno-: has joined #RubyOnRails
[14:35:20] jhfisc: has joined #RubyOnRails
[14:36:13] AzaToth: has joined #RubyOnRails
[14:37:47] chouhoulis: has joined #RubyOnRails
[14:37:51] bruno-: has joined #RubyOnRails
[14:48:58] srinidhi: has joined #RubyOnRails
[14:49:46] bruno-: has joined #RubyOnRails
[14:51:26] jhfisc: has joined #RubyOnRails
[14:51:47] adgtl: has joined #RubyOnRails
[14:54:38] bruno-: has joined #RubyOnRails
[14:56:33] milesmatthias: has joined #RubyOnRails
[14:59:37] kreantos: has joined #RubyOnRails
[14:59:38] bruno-: has joined #RubyOnRails
[15:02:49] jhfisc: has joined #RubyOnRails
[15:05:34] dionysus69: this specific route tries to resolve to evaluations#show, is it a bug ? get "evaluations/new_legal", to: "evaluations#new_legal", as: :new_legal_evaluation
[15:05:58] dionysus69: works fine if I put evaluation/new_legal instead of evaluations/new_legal
[15:06:09] dionysus69: but I want to match already existing evaluations/new path
[15:09:26] jhfisc: has joined #RubyOnRails
[15:09:43] keegnotrub_: has joined #RubyOnRails
[15:15:02] mostlybadfly: has joined #RubyOnRails
[15:21:40] jmay: has joined #RubyOnRails
[15:24:06] tbuehlmann_: dionysus69: can you gist your config/routes.rb file?
[15:24:18] mr-spoon: has joined #RubyOnRails
[15:24:43] sinduck: has joined #RubyOnRails
[15:27:31] dionysus69: https://gist.github.com/anonymous/d0486a240d6b88b023420c01a3283321
[15:29:19] jhfisc: has joined #RubyOnRails
[15:31:20] mr-spoon: has joined #RubyOnRails
[15:32:19] tbuehlmann_: line 7 has precedence over line 8, just switch them
[15:32:44] FrostCandy: has joined #RubyOnRails
[15:33:26] dionysus70: has joined #RubyOnRails
[15:35:16] zeknox: dionysus69: you may also be able to wrap it in a block, I've updated your gist with a comment example
[15:36:51] dionysus69: I tried block approach, it was expecting :id after new_legal/:id weird ha
[15:37:07] dionysus69: ok brb watching 7th episode of GOT :D
[15:40:01] cagomez: has joined #RubyOnRails
[15:44:48] milesmatthias: has joined #RubyOnRails
[15:44:50] FrostCandy: Do you guys know what gem gives output like INFO -- : ? I'm getting INFO -- : Prameters {...}, and I'm tring to find out where someone set parameters to be printed out in the debug
[15:45:41] jhfisc: has joined #RubyOnRails
[15:46:00] dionysus69: has joined #RubyOnRails
[15:46:25] FrostCandy: I searched the entire project for logger.info, but that wasn't it. Must be some other way they spit out the debug info in a file I can't figure out where.
[15:46:26] milesmat_: has joined #RubyOnRails
[15:49:20] mr-spoon: has joined #RubyOnRails
[15:50:26] brent__: has joined #RubyOnRails
[15:50:52] brent__: has joined #RubyOnRails
[15:52:37] jhfisc: has joined #RubyOnRails
[15:53:33] [Butch]: has joined #RubyOnRails
[15:55:21] mr-spoon: has joined #RubyOnRails
[15:58:09] jhfisc: has joined #RubyOnRails
[16:00:39] NoGodDamnIdea: has joined #RubyOnRails
[16:03:33] jhfisc: has joined #RubyOnRails
[16:04:48] FrostCandy: Better question: I get output like this: D, [2017-08-28T15:42:16.818638 #9266] DEBUG -- : The D would probably stand for debug, the timestamp and then a number #9266, any idea what the number means?
[16:06:00] mr-spoon: has joined #RubyOnRails
[16:09:45] Zinefer: has joined #RubyOnRails
[16:10:09] DrYockel: has joined #RubyOnRails
[16:10:09] Zinefer: is it possible to get the column and order that a collection is/will be sorted by?
[16:11:24] zeknox: zinefer: its defined within the model where the association takes place: https://stackoverflow.com/questions/7375680/activerecord-and-sorting-on-association
[16:12:53] mr-spoon: has joined #RubyOnRails
[16:13:46] Zinefer: zeknox: i'm not sure that's what i am looking for ... if i do a collection.order(id: :desc) how can i later pull that back out? i would have assumed collection.order would return what i am looking for but those params are not optional
[16:14:51] Zinefer: basically what i want is collection.order(id: :desc) ... ordered_by = collection.order # returns [:id, :desc]
[16:15:03] Zinefer: dang, paste didn't preserve the newlines sorry
[16:15:50] gusrub: has joined #RubyOnRails
[16:16:41] tbuehlmann_: zinefer: you could play with relation.order_values
[16:16:49] jhfisc: has joined #RubyOnRails
[16:20:37] Zinefer: tbuehlmann_: hrm, yeah, http://www.rubydoc.info/docs/rails/3.1.1/ActiveRecord%2FQueryMethods%3Aorder_values loooks like it might be what i want?
[16:20:52] Zinefer: gotta decode this output ... lmk if anyone else has a better idea, thanks
[16:21:24] mr-spoon: has joined #RubyOnRails
[16:21:54] srinidhi: has joined #RubyOnRails
[16:25:24] marc_ab: has joined #RubyOnRails
[16:25:46] jhfisc: has joined #RubyOnRails
[16:28:18] conta: has joined #RubyOnRails
[16:34:26] bronson: has joined #RubyOnRails
[16:34:49] jhfisc: has joined #RubyOnRails
[16:36:12] xco: has joined #RubyOnRails
[16:42:42] milesmatthias: has joined #RubyOnRails
[16:43:30] milesmat_: has joined #RubyOnRails
[16:44:24] dionysus69: has joined #RubyOnRails
[16:47:09] jhfisc: has joined #RubyOnRails
[16:49:24] gusrub: has joined #RubyOnRails
[16:49:46] SteenJobs: has joined #RubyOnRails
[16:51:41] gusrub: has joined #RubyOnRails
[16:52:08] jhfisc: has joined #RubyOnRails
[16:53:31] certhird: has joined #RubyOnRails
[16:56:05] keegnotrub: has joined #RubyOnRails
[16:56:50] rakm: has joined #RubyOnRails
[16:56:59] cagomez: has joined #RubyOnRails
[16:57:48] rgr: has joined #RubyOnRails
[16:58:15] jhfisc: has joined #RubyOnRails
[16:58:22] keegnotrub_: has joined #RubyOnRails
[16:58:35] mr-spoon: has joined #RubyOnRails
[16:59:21] cagomez: has joined #RubyOnRails
[17:05:33] one_zero: has joined #RubyOnRails
[17:05:59] mr-spoon: has joined #RubyOnRails
[17:07:53] jhfisc: has joined #RubyOnRails
[17:10:58] jhfisc: has joined #RubyOnRails
[17:11:32] mr-spoon: has joined #RubyOnRails
[17:12:18] username1: has joined #RubyOnRails
[17:16:58] jhfisc: has joined #RubyOnRails
[17:17:02] mr-spoon: has joined #RubyOnRails
[17:20:04] kapil___: has joined #RubyOnRails
[17:22:31] mr-spoon: has joined #RubyOnRails
[17:28:59] jhfisc: has joined #RubyOnRails
[17:29:02] mr-spoon: has joined #RubyOnRails
[17:34:05] mr-spoon: has joined #RubyOnRails
[17:39:43] jhfisc: has joined #RubyOnRails
[17:41:02] mr-spoon: has joined #RubyOnRails
[17:41:03] blj: has joined #RubyOnRails
[17:45:43] kies: has joined #RubyOnRails
[17:47:25] mtkd: has joined #RubyOnRails
[17:49:41] srinidhi: has joined #RubyOnRails
[17:50:19] daydreamm: has joined #RubyOnRails
[17:52:58] jhfisc: has joined #RubyOnRails
[17:58:34] certhird: has joined #RubyOnRails
[18:01:48] milesmatthias: has joined #RubyOnRails
[18:02:15] gusrub_: has joined #RubyOnRails
[18:02:31] milesmat_: has joined #RubyOnRails
[18:05:48] high_fiver: has joined #RubyOnRails
[18:07:30] gambl0re: has joined #RubyOnRails
[18:11:34] conta: has joined #RubyOnRails
[18:12:01] xco: has joined #RubyOnRails
[18:15:48] futilegames: has joined #RubyOnRails
[18:16:41] mr-spoon: has joined #RubyOnRails
[18:19:11] conta: has joined #RubyOnRails
[18:20:06] futilegames_: has joined #RubyOnRails
[18:36:29] bronson: has joined #RubyOnRails
[18:39:23] chouhoulis: has joined #RubyOnRails
[18:41:10] jhfisc: has joined #RubyOnRails
[18:46:34] marr: has joined #RubyOnRails
[18:46:37] jhfisc: has joined #RubyOnRails
[18:47:49] shilon: has joined #RubyOnRails
[18:49:24] conta2: has joined #RubyOnRails
[18:50:48] sami: How come greater than operator works some times but at other times I get "ActionView::Template::Error (undefined method `>' for nil:NilClass):"?
[18:52:08] shilon: how can I create a similar token to reset_password_instructions but with custom mailer?
[18:53:00] jhfisc: has joined #RubyOnRails
[18:53:36] SteenJobs: sami: the error is not with the greater than operator, it’s with the operand that “>” is taking as an arg…in this case it seems that the operand is sometimes nil
[18:56:49] FrostCandy: Is the ActionController typically found under App -> Controllers?
[18:57:10] sami: SteenJobs: oh!
[19:00:27] FrostCandy: oh ok ActionController is built in to rails I think, so not something edit.
[19:00:54] jhfisc: has joined #RubyOnRails
[19:02:19] tenderlo_: has joined #RubyOnRails
[19:04:07] cagomez: has joined #RubyOnRails
[19:04:19] cagomez: has joined #RubyOnRails
[19:04:45] dminuoso: FrostCandy, it's very common to define some base controller say ApplicationController or MyLittlePonyController in app/controllers and have most other controllers derive from that one way or another.
[19:05:15] dminuoso: Which itself would derive from ActionController::Base, ActionController itself is a module from rails.
[19:06:10] cagomez: has joined #RubyOnRails
[19:06:17] FrostCandy: dminuoso: yup, I was just tring to get to the top level of this guys code to follow the logic as it comes in. I can start from the ApplicationsController as he probably didn't touch something built into rails.
[19:07:27] jhfisc: has joined #RubyOnRails
[19:08:20] dminuoso: FrostCandy, as a rule of thumb in Ruby, you can't be sure.
[19:08:41] daydreamm: has joined #RubyOnRails
[19:08:43] dminuoso: FrostCandy, personally the first thing I might even do is crawl through config/initializers so there's no silly surprises waiting for me.
[19:09:51] dminuoso: I have monkey patched Kernel, String, a handful of Rails classes before -> so I expect others to have as little respect for boundaries.
[19:10:48] dminuoso: Oh and Object! My wonderful hackery to cast objects in Ruby!
[19:11:24] milesmatthias: has joined #RubyOnRails
[19:11:44] jhfisc: has joined #RubyOnRails
[19:12:22] milesmat_: has joined #RubyOnRails
[19:15:02] lacuna: has joined #RubyOnRails
[19:15:26] lacuna: has joined #RubyOnRails
[19:16:10] Zinefer: is it possible to wrap a activerecord method with a module and add functionality?
[19:16:22] Zinefer: for example, the collection.order()
[19:16:59] Zinefer: i have a `ActiveSupport::Concern` thing, i can add new methods to active record, but when i try to use an existing name it seems to do nothing
[19:18:44] dminuoso: zinefer, absolutely. ActiveRecord is not magical. Show us your code
[19:19:33] Zinefer: right on, one moment
[19:24:11] Zinefer: dminuoso: sorry that was so slow ... here it is: https://gist.github.com/zinefer/a54473ebaed22e2df4f0f37307de667a
[19:24:39] conta2: has joined #RubyOnRails
[19:24:56] chouhoulis: has joined #RubyOnRails
[19:25:03] dminuoso: zinefer, no need to :send include, you can just call Foo.include Bar directly
[19:26:22] Zinefer: cool, i think i updated the gist
[19:26:45] dminuoso: zinefer, let's clean this up. Decide whether to do it in pure ruby or use concern.
[19:27:10] dminuoso: It doesn't really matter either way, personally I would highly recommend the ruby way until you understand what the rails way does.
[19:27:18] knight33: has joined #RubyOnRails
[19:27:35] Zinefer: cool, lets do it in ruby
[19:27:45] FrostCandy: When just breaking out of a def XXX after an error catch, do you just use return or do you always return something in Ruby like return nil ?
[19:27:53] dminuoso: zinefer, do you know very roughly how method dispatch works in ruby?
[19:28:07] Zinefer: let me google that
[19:28:15] dminuoso: FrostCandy, if you cant handle the error, don't catch it.
[19:28:22] dminuoso: FrostCandy, meaning if you have to ask, it means you cant handle the error.
[19:29:45] dminuoso: zinefer, it's very simple: https://sketch.io/render/sk-19d1e1a26cfa26a21fb7814a3257443a.jpeg
[19:30:10] dminuoso: zinefer, every object has a class, and every class has some ancestors chain. This chain included modules and parent classes and so on.
[19:30:10] Zinefer: yeah, i'm fairly sure i understand that
[19:30:28] dminuoso: zinefer, great. so dispatch is: "look into the class object (go down), and follow the right trail until you find a matching method"
[19:30:30] FrostCandy: dminuoso: I was just going to return early so that the rescue wouldn't just carry on. For example, on error send to the error page and "return" out of the current def so it dosn't carry on to render somethign below
[19:30:47] hardik127: has joined #RubyOnRails
[19:31:32] FrostCandy: return nil works
[19:32:06] Zinefer: so what is probably happening to me, is that i am adding my method at the wrong point in the ancestry
[19:32:17] dminuoso: zinefer, do you want a "class method" or an "instance method" ?
[19:32:53] dminuoso: zinefer, then you just define a regular method in the module, and include it.
[19:33:04] dminuoso: That's called a mixin.
[19:33:39] dminuoso: zinefer, if you wanted a class method, you'd have to do the same thing -> except the class to include it on is a different one.
[19:34:48] Zinefer: dminuoso: like this? https://gist.github.com/zinefer/e308498ae498f8a217d07da58abdb171
[19:35:02] dminuoso: zinefer, Yes exactly like that.
[19:35:41] dminuoso: zinefer, that just shoves that module to the immediate right of "String" (think of it as ActiveRecord::Base) in the diagram.
[19:36:05] dminuoso: so when ruby travels from left to right, you force it to find your class before.. whatever implements it.
[19:36:28] dminuoso: prepend does the same thing, except it puts it to the *left* of the target class.
[19:38:00] Zinefer: yeah that all makes sense to me - but it does not seem to be working still ... does the method need to have the same argument definition as the one i'm trying to replace?
[19:38:19] dminuoso: zinefer, it's possible that ActiveRecord::Base itself implements it somehow.
[19:38:42] dminuoso: zinefer, so you could just use prepend and ensure that your module is *always* looked at before the class you prepend it on.
[19:39:53] Zinefer: ok let me give that a shot
[19:41:50] dminuoso: zinefer, http://i.imgur.com/04Mlrwp.png if you grok this you will never wonder about where to put a method to cause behavior. :)
[19:42:08] dminuoso: (It's the *full* version of the diagram I drew before)
[19:43:06] jhfisc: has joined #RubyOnRails
[19:46:02] Zinefer: great resource dminuoso ... i have a way better handle on how mixins are working ... i think my problem might lie elsewhere now ... i will report back soon
[19:46:03] alfiemax: has joined #RubyOnRails
[19:46:06] Zinefer: thank you :)
[19:47:17] mr-spoon: has joined #RubyOnRails
[19:49:01] jhfisc: has joined #RubyOnRails
[19:50:53] Zinefer: dminuoso: yep, im a derp - but you helped so much thank you
[19:51:12] Zinefer: i needed to include onto `ActiveRecord::Relation` not `ActiveRecord::Base`
[19:51:25] mtkd: has joined #RubyOnRails
[19:51:48] dminuoso: zinefer, be careful though.
[19:51:54] dminuoso: zinefer, if you want to modify third party code, use prepend.
[19:52:27] Zinefer: yeah i think that's the right thing for me to do here - since i plan on simply logging parameters and calling a `super`
[19:52:29] dminuoso: zinefer, the reason is ActiveRecord::Relation *could* implement this in method_missing and perhaps memoize another way.
[19:52:41] dminuoso: zinefer, Or perhaps they change the interface in some version
[19:52:48] kapil___: Hello I want to make front page for my application and menu. How can I do it properly?
[19:53:08] lxsameer: has joined #RubyOnRails
[19:54:04] dminuoso: zinefer, ultimately the method lookup works like this: find klass, for each "thing" (this includes included modules along the way) check whether it has the method. if not, check if it has method_missing, if not, go to the next.
[19:54:19] rakm: has joined #RubyOnRails
[19:54:30] dminuoso: zinefer, and since include puts it to the right, you leave the freedom to that class to override your behavior.
[19:56:18] dminuoso: zinefer, and for completion: You can actually see that "super chain" if you invoke "ancestors" on an object (which will even show how prepend puts modules to the left of the target)
[19:56:38] Zinefer: yeah, i was seeing this on the article i started reading about dispatch
[19:56:38] Zinefer: https://blog.jcoglan.com/2013/05/08/how-ruby-method-dispatch-works/
[19:56:50] Zinefer: i wish it were a bit newer, though ... it doesn't seem to mention prepend
[20:00:59] jhfisc: has joined #RubyOnRails
[20:01:23] dminuoso: zinefer, and here comes why I dont like concerns. they have this magical class_methods function that basically makes a class, evaluates the block inside a magical module, and they "extend" (which is just syntax for include into the singleton class) into the target class
[20:01:44] dminuoso: It allows users to do things without knowing how or why.
[20:02:57] mikecmpbll: has joined #RubyOnRails
[20:03:41] dminuoso: *they construct a module, evaluate the block inside the module, and prepend that module into the target's singleton class
[20:04:46] ResidentBiscuit: has joined #RubyOnRails
[20:05:34] jmay: has joined #RubyOnRails
[20:06:50] mikecmpbll: has joined #RubyOnRails
[20:07:01] alexday: has left #RubyOnRails: ()
[20:07:19] mr-spoon: has joined #RubyOnRails
[20:09:50] gusrub: has joined #RubyOnRails
[20:09:52] cagomez: has joined #RubyOnRails
[20:10:15] madmax_003: has joined #RubyOnRails
[20:11:42] hahuang65: has joined #RubyOnRails
[20:17:48] jhfisc: has joined #RubyOnRails
[20:19:21] mr-spoon: has joined #RubyOnRails
[20:22:47] jhfisc: has joined #RubyOnRails
[20:22:51] certhird: has joined #RubyOnRails
[20:26:03] jhfisc: has joined #RubyOnRails
[20:27:50] username1: has joined #RubyOnRails
[20:31:51] mr-spoon: has joined #RubyOnRails
[20:37:40] elcontrastador: has joined #RubyOnRails
[20:38:16] bronson: has joined #RubyOnRails
[20:51:36] cagomez: has joined #RubyOnRails
[20:56:58] jhfisc: has joined #RubyOnRails
[20:58:28] keegnotrub: has joined #RubyOnRails
[20:58:45] brent__: has joined #RubyOnRails
[21:00:20] drale2k_: has joined #RubyOnRails
[21:00:27] mr-spoon: has joined #RubyOnRails
[21:00:34] drale2k_: if i have a different kind of tasks but they share all 1 value (status), i am better of with STI than polymorphic right ? Generally speaking
[21:00:39] workmad3: has joined #RubyOnRails
[21:02:01] FrostCandy: redirect_to my_path, :notice => "This is my notice" if user_signed_in? - When you put an if at the end like that with a ?, is that saying redirect only if user_signed_in == true?
[21:02:18] FrostCandy: the ? at the end just means to draw out a boolean true or false right?
[21:03:08] jhfisc: has joined #RubyOnRails
[21:05:56] mr-spoon: has joined #RubyOnRails
[21:06:02] creature: FrostCandy: The ? is just part of the method name. It doesn't have any special function, syntactically speaking.
[21:06:12] keegnotrub: has joined #RubyOnRails
[21:06:15] creature: But the convention in Ruby is to name methods that return booleans such that they end with a ?.
[21:07:03] bronson: has joined #RubyOnRails
[21:07:16] FrostCandy: creature: oh ok that's pretty interesting. Putting the if at the end causes the previous condition to opperate or not though right?
[21:08:58] jhfisc: has joined #RubyOnRails
[21:09:33] creature: FrostCandy: Correct.
[21:11:49] tacoboy: has joined #RubyOnRails
[21:16:45] jhfisc: has joined #RubyOnRails
[21:17:05] ur5us: has joined #RubyOnRails
[21:17:39] Radar: GOOD MORNING
[21:19:23] rakm: good morning
[21:19:30] unreal: has joined #RubyOnRails
[21:21:28] [ddmp]: has joined #RubyOnRails
[21:22:55] jhfisc: has joined #RubyOnRails
[21:24:47] milesmat_: has joined #RubyOnRails
[21:27:18] cagomez: has joined #RubyOnRails
[21:28:58] jhfisc: has joined #RubyOnRails
[21:29:33] gusrub: has joined #RubyOnRails
[21:32:09] milesmatthias: has joined #RubyOnRails
[21:33:14] milesmatthias: has joined #RubyOnRails
[21:34:53] jhfisc: has joined #RubyOnRails
[21:40:58] jhfisc: has joined #RubyOnRails
[21:41:09] cagomez: has joined #RubyOnRails
[21:44:41] knight33: has joined #RubyOnRails
[21:46:20] jhfisc: has joined #RubyOnRails
[21:46:41] jottr: has joined #RubyOnRails
[21:50:35] FrostCandy: If I have this in my controller redirect_to general_error_path, :notice => "Delete This Notice" , shouldn't I be able to do <%:notice%> in my view to view it? Nothing is printing out though.
[21:50:54] dionysus69: has joined #RubyOnRails
[21:50:54] FrostCandy: it's like notice doesn't get passed at all to the general_error method
[21:53:01] jhfisc: has joined #RubyOnRails
[21:53:41] mtkd: has joined #RubyOnRails
[21:57:56] FrostCandy: if I do puts :flash in the controller i get "flash". I must be missing some setup config to set the flash hash
[21:58:58] jhfisc: has joined #RubyOnRails
[22:00:48] milesmatthias: has joined #RubyOnRails
[22:01:29] milesmat_: has joined #RubyOnRails
[22:01:30] kapil___: Hello I want to make front page for my application and menu. How can I do it properly? Any Gem?
[22:01:44] chouhoulis: has joined #RubyOnRails
[22:04:58] jhfisc: has joined #RubyOnRails
[22:15:45] jhfisc: has joined #RubyOnRails
[22:18:59] DoctorMonocular: has joined #RubyOnRails
[22:21:11] FrostCandy: Is there a whitelist of variables I need to set to get the flash hash? It keeps coming up empty for me.
[22:21:46] cagomez: has joined #RubyOnRails
[22:24:11] cagomez: has joined #RubyOnRails
[22:27:07] aperkins81: has joined #RubyOnRails
[22:31:59] Radar: FrostCandy: <%= notice %> is what you want, not <% :notice %>
[22:32:10] Radar: FrostCandy: <% in ERB means, "evaluate this, but do not print out its return value"
[22:32:19] Radar: <%= means "evaluate this, and print out its return value"
[22:33:46] Radar: FrostCandy: are you reading any Rails tutorials at the moment to learn?
[22:33:48] FrostCandy: Radar: thanks, but it doesn't matter how i send it I seem to recieve nothing .
[22:37:36] FrostCandy: Radar: yea I've been researching redirect_to and flashhash quite a bit. It seems like it should be strait forward, but in my controller if i send redriect_to where , :notice => "words" I don't see it when i do a puts flash or anything on the other side.
[22:37:52] Radar: FrostCandy: Can you please put this app on GitHub so that I can take a look?
[22:37:53] FrostCandy: Maybe the guy that wrote this has something that clears the flash hash
[22:38:41] FrostCandy: Its way to big to do that. But np, I'll just keep digging :D
[22:40:58] Radar: FrostCandy: !r4ia
[22:40:58] helpa: FrostCandy: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[22:41:11] Radar: I think it might benefit you to go through at leas the first 4 chapters of a Rails book like that one.
[22:41:51] twilling: has joined #RubyOnRails
[22:43:02] FrostCandy: Radar: I'll do it.
[22:44:46] Stabs: has joined #RubyOnRails
[22:45:39] Stabs: Hello, is anyone available?
[22:48:49] jhfisc: has joined #RubyOnRails
[22:49:42] Radar: Stabs: yes.
[22:49:56] Stabs: Radar, greetings.
[22:50:01] helpa: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[22:51:50] milesmatthias: has joined #RubyOnRails
[22:54:58] jhfisc: has joined #RubyOnRails
[23:02:42] Radar: Stabs: Did you have a question?
[23:03:32] Stabs: Radar: I did, but I've read the rules, and I'd rather document every step leading up to the bug before I ask.
[23:08:20] mikecmpbll: has joined #RubyOnRails
[23:10:54] Or1on: has joined #RubyOnRails
[23:16:41] Olipro_: has joined #RubyOnRails
[23:18:07] shilon: has joined #RubyOnRails
[23:18:28] cagomez: has joined #RubyOnRails
[23:20:28] cagomez: has joined #RubyOnRails
[23:26:00] mikecmpbll: has joined #RubyOnRails
[23:26:13] jhfisc: has joined #RubyOnRails
[23:30:49] cagomez: has joined #RubyOnRails
[23:35:46] cagomez: has joined #RubyOnRails
[23:42:52] Stabs: OK! I have the error written down now.
[23:43:45] Stabs: I am stuck following the rails tutorial at http://guides.rubyonrails.org/getting_started.html, the steps I followed are written down in https://gist.github.com/Codefencing/e0f60a00002e06e8905cfa1a25c3e937 as is the problem I get.
[23:47:56] Stabs: The page I get is up at https://gist.github.com/Codefencing/db20f8a8c6c6df69db1dde3e28f136fc
[23:49:52] chouhoulis: has joined #RubyOnRails
[23:52:30] shilon: has joined #RubyOnRails
[23:55:44] jhfisc: has joined #RubyOnRails
[23:59:09] jhfisc: has joined #RubyOnRails