« Back to channel list

#RubyOnRails - 03 September 2015

« Back 1 day Forward 1 day »
[00:02:04] Yakko: has joined #RubyOnRails
[00:02:53] drale2k: has joined #RubyOnRails
[00:03:20] bruno-: has joined #RubyOnRails
[00:07:57] lord4163: has joined #RubyOnRails
[00:10:54] Aeyrix: VeryBewitching: I add an ID to almost all elements.
[00:10:56] NBarnes: has joined #RubyOnRails
[00:10:56] Aeyrix: There's no real reason not to.
[00:11:00] Aeyrix: I don't use it for CSS, mostly.
[00:11:03] wldcordeiro__: has joined #RubyOnRails
[00:13:02] dudo: has joined #RubyOnRails
[00:14:37] ascarter: has joined #RubyOnRails
[00:17:19] charliesome: has joined #RubyOnRails
[00:17:19] Cervajz: has joined #RubyOnRails
[00:17:55] wldcordeiro__: has joined #RubyOnRails
[00:18:10] leandrosnunes: has joined #RubyOnRails
[00:18:20] Guest39097: has joined #RubyOnRails
[00:18:22] Sylario: has joined #RubyOnRails
[00:19:20] Ropeney: has joined #RubyOnRails
[00:20:05] quazimodo: has joined #RubyOnRails
[00:20:17] hololeap: has joined #RubyOnRails
[00:21:20] Cache_Money: has joined #RubyOnRails
[00:24:25] Radar: almost all elements? :(
[00:24:43] Radar: https://github.com/radar/twist/blob/master/app/views/books/index.html.erb#L1-L17
[00:24:49] Radar: Which elements here need an id?
[00:27:47] drale2k: has joined #RubyOnRails
[00:28:01] techsethi: has joined #RubyOnRails
[00:28:03] huck5: has joined #RubyOnRails
[00:29:30] wldcordeiro__: has joined #RubyOnRails
[00:30:15] moeabdol: has joined #RubyOnRails
[00:30:32] Radar: Aeyrix: ^
[00:31:01] nettoweb: has joined #RubyOnRails
[00:31:09] Aeyrix: id=blurb-<%= id %>
[00:31:16] Radar: What benefit does that have?
[00:31:20] Radar: Doesn't that just add weight to the page?
[00:32:05] Radar: It doesn't?
[00:32:06] Aeyrix: yes, but seriously if you're worrying about weight of that scale
[00:32:10] Aeyrix: you have other issues
[00:32:18] Aeyrix: but realistically
[00:32:20] Radar: And my first question?
[00:32:24] Aeyrix: i'm talking about when you need to utilise it
[00:32:25] rhizome: Aeyrix: content_tag_for
[00:32:25] Aeyrix: for whatever reason
[00:32:48] Aeyrix: i dislike using classes for single elements
[00:32:53] Aeyrix: classes are for 1+ imo
[00:33:16] Radar: Well, yeah.
[00:33:20] hololeap: has joined #RubyOnRails
[00:33:20] Radar: ids in HTML should be unique
[00:34:26] chipotle: has joined #RubyOnRails
[00:34:27] annlewis: has joined #RubyOnRails
[00:36:14] Pathfinder: has joined #RubyOnRails
[00:37:27] wldcordeiro__: has joined #RubyOnRails
[00:38:55] bronson: has joined #RubyOnRails
[00:39:19] baweaver: has joined #RubyOnRails
[00:39:29] superlou: has joined #RubyOnRails
[00:40:14] NodeNagant: has joined #RubyOnRails
[00:43:21] tuelz: has joined #RubyOnRails
[00:43:35] ascarter: has joined #RubyOnRails
[00:45:20] wldcordeiro__: has joined #RubyOnRails
[00:47:54] IrishGringo: has joined #RubyOnRails
[00:48:40] nya: has joined #RubyOnRails
[00:48:52] hololeap: has joined #RubyOnRails
[00:49:46] wldcordeiro__: has joined #RubyOnRails
[00:50:46] petricore: has joined #RubyOnRails
[00:51:30] mrchris: has joined #RubyOnRails
[00:52:11] mrchris: Hey all. How would I go about creating a method in a module that is accessible through then entire system (global)?
[00:52:24] mrchris: I'm guessing this will happen in initializers
[00:53:05] mrchris: Hey all. How would I go about creating a method in a module that is accessible through then entire system (global)?
[00:53:18] mrchris: sorry if that was a double post. did this message come through?
[00:54:08] baweaver: initializers, though ask if it _actually_ needs to be everywhere.
[00:54:17] wldcordeiro__: has joined #RubyOnRails
[00:54:30] rhizome: yeah, depends on what teh module is for
[00:54:47] baweaver: You might only need it in lib for inclusion in other areas.
[00:54:47] Radar: +1 for an explanation on what it does
[00:55:15] RegulationD: has joined #RubyOnRails
[00:56:15] baweaver: The less you have globally, the better.
[00:56:27] huck5: Afraid it's not a ruby-specific question, but I am curious as to what you lean towards for schema-naming conventions. By default Rail generates pluralized table names, which I understand. But what about for attributes? Is there any point calling the PK for a Customers table "customersID", or is it better to simply call it "id"?
[00:56:43] huck5: er, "customerId"*
[00:56:49] baweaver: and snake case
[00:56:50] Radar: huck5: It's already clear that it's the id for the customer because it's in the customers tbale.
[00:56:51] huck5: Less typing for sure :P. Thanks badeball
[00:56:58] Guest39097: has joined #RubyOnRails
[00:57:16] baweaver: then FK to model_name_id
[00:57:31] huck5: Thanks Radar. That's what I though, but for some reason I've tended to include the class (table) name as a prefix to each attribute. Which is pretty pointless, now that I think about it.
[00:57:36] baweaver: otherwise whoever else comes into the project may well try and murder you with a rusty spork
[00:58:03] baweaver: I've seen it happen, not a pleasant experience I'm sure.
[00:58:22] huck5: Ah, the trusty spork..
[00:58:25] baweaver: .NET developer comfortable with Hungarian notation methinks
[00:58:29] Radar: huck5: Best to obey the Rails conventions. It's called Rails because its designed to keep you on the tracks.
[00:58:30] huck5: baweaver, as in `FOREIGN KEY (model_name_id) REFERENCES model(id)`, just to clarify?
[00:58:43] sevenseacat: has joined #RubyOnRails
[00:58:43] huck5: Radar, very nicely put.
[00:58:46] wldcordeiro__: has joined #RubyOnRails
[00:58:50] baweaver: Rails is very opinionated
[00:59:00] baweaver: and you know what happens when you disagree with opinionated people
[00:59:08] huck5: Haha, yup.
[00:59:09] baweaver: Rails is worse
[00:59:31] mrchris: how would I include my module in initializers?
[00:59:44] huck5: I like that, actually. Have no problem staying within guidelines (provided I know what they are). Though the loose-typing did cause me a bit of confusion at first
[01:00:01] baweaver: huck5: it takes time, certainly
[01:00:07] Radar: __chris: Sorry, I missed the part where you showed us what you're trying to do.
[01:00:19] baweaver: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[01:02:51] quazimodo: has joined #RubyOnRails
[01:03:59] wldcordeiro__: has joined #RubyOnRails
[01:04:10] joshkovach: has joined #RubyOnRails
[01:04:15] rickmasta: has joined #RubyOnRails
[01:05:20] Cache_Money: has joined #RubyOnRails
[01:06:43] fschuindt: has joined #RubyOnRails
[01:07:30] northfurr: has joined #RubyOnRails
[01:07:35] nya: has joined #RubyOnRails
[01:08:11] fschuindt: Folks, how can I export a class method to a instance? I am newbie. This is the code: https://gist.github.com/fschuindt/1be0cb87b1dd1f302aa7 Its a kind of CSV ActiveRecord. Just for study. In the controller I am getting undefined method find.
[01:08:56] Guest39097: has joined #RubyOnRails
[01:09:01] wldcordeiro__: has joined #RubyOnRails
[01:10:08] nyaa: has joined #RubyOnRails
[01:10:33] VeryBewitching: Aeyrix: (from earlier) I consider all HTML as neutral; so I add classes to style, IDs to interact.
[01:10:49] northfurr: has joined #RubyOnRails
[01:10:57] dopamean_: has joined #RubyOnRails
[01:11:37] Radar: fschuindt: def self.find(id)
[01:12:40] fschuindt: Radar: the problem with it is that all the others methods (in this case raw_data) will get undefined too. Its mixed :S
[01:12:49] Radar: fschuindt: what
[01:12:59] Radar: fschuindt: You only asked about .find.
[01:13:07] Radar: fschuindt: What does raw_data have to do with anything?
[01:13:37] fschuindt: Its inside find.
[01:13:56] fschuindt: If I do def self.find(id)
[01:14:19] fschuindt: The raw_data method inside it will be undefined
[01:14:29] havenwood: has joined #RubyOnRails
[01:14:35] Radar: Sooooooooo
[01:14:40] Radar: What do you think you should do?
[01:14:47] Radar: maybe raw_data should be a class method too?
[01:15:28] baweaver: Why are these being treated like class methods?
[01:15:40] baweaver: Put an initializer on that Class. Classes love initializers
[01:16:24] wldcordeiro__: has joined #RubyOnRails
[01:16:24] baweaver: though in the case of finds yeah, you do want class methods.
[01:16:28] dudo: has joined #RubyOnRails
[01:16:37] Radar: baweaver: How would you write it?
[01:17:06] baweaver: enumerable methods help
[01:17:11] baweaver: like find for instance.
[01:17:32] fschuindt: Radar: Yes yes, but if I do this, again, the method create (which uses the method auto_id, which uses the method raw_data) will stop to work because create is a instance method
[01:17:45] baweaver: also making an initializer for the class so you can instantiate from create
[01:17:55] Radar: fschuindt: I am really confused.
[01:18:14] Radar: ACTION looks harder at the gist.
[01:18:16] baweaver: class methods are def self.method_name
[01:18:51] Radar: fschuindt: Isn't the answer the same here? Make it a class method too!
[01:19:02] Radar: CLASS METHODS FOR EVERYONE
[01:19:48] fschuindt: But the method create isnt a class method, look at the controller
[01:19:55] fschuindt: I put it in the gist now
[01:19:56] fschuindt: https://gist.github.com/fschuindt/1be0cb87b1dd1f302aa7
[01:19:58] baweaver: it needs to be
[01:20:51] fschuindt: baweaver: so how I can call it @c = Contact.new(hash) @c.create
[01:21:08] baweaver: you miss how Rails works then
[01:21:11] fschuindt: As a class method it wont work
[01:21:18] baweaver: create makes a new instance
[01:21:20] Radar: baweaver: This is HARD xy.
[01:21:26] Radar: ACTION nopes out
[01:21:35] wldcordeiro__: has joined #RubyOnRails
[01:21:42] baweaver: don't you do that, it's about Chipotle time!
[01:21:53] Radar: Treating CSV as a data store == nopenopenopenope
[01:21:56] baweaver: fschuindt: !xy
[01:21:56] helpa: fschuindt: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[01:22:10] Radar: fschuindt: Please re-think what you're doing and why you want it to be a CSV.
[01:22:14] fschuindt: Radar: its a study cause
[01:22:31] baweaver: you'd be better off making a database driver for CSV honestly.
[01:22:32] Radar: Study in why CSV is bad as a data store? OK!
[01:22:33] sevenseacat: I love how 'nope' is now every type of word in the English language
[01:22:51] baweaver: and I use that loosely
[01:22:58] fschuindt: My professor just asked me to do that
[01:23:36] baweaver: what _exactly_ did they ask?
[01:23:47] baweaver: word for word
[01:24:04] baweaver: because either you're misinterpreting it or your professor is dangerous
[01:24:21] fschuindt: Rails app with a simple contacts crud without ActiveRecord using a filesystem like CSV YAML but not json.
[01:24:48] fschuindt: Exaclty what I am trying to do
[01:24:58] baweaver: the latter then
[01:25:48] baweaver: You're going to need to make your own base then with the create, read, update, and delete methods
[01:25:56] baweaver: your professor is dangerous
[01:26:01] Radar: !homework
[01:26:01] helpa: This channel is not here to do your homework for you.
[01:26:10] Radar: No, not that one. That's too passive aggressive.
[01:26:17] mloy: has joined #RubyOnRails
[01:26:44] meatherly: has joined #RubyOnRails
[01:26:44] Radar: But yeah, seems like homework.
[01:27:05] fschuindt: I was almost asking you to just stop fucking of.
[01:27:20] Radar: wat indeed
[01:27:28] baweaver: Radar: batters up?
[01:27:28] Aeyrix: do i have to say words here or
[01:27:30] Aeyrix: can i go back to work?
[01:27:39] Radar: Aeyrix: work harder, comrade
[01:27:46] Aeyrix: such is life in moscow
[01:27:55] jesterfraud: has joined #RubyOnRails
[01:27:56] fschuindt: I mean you arent trying to help me at all
[01:28:08] Radar: fschuindt: Because you're asking about homework, and that's cheating imo.
[01:28:09] baweaver: tagging lol does not help
[01:28:10] Aeyrix: That's because step one is working out what your problem is.
[01:28:23] wldcordeiro__: has joined #RubyOnRails
[01:28:26] Aeyrix: You know how like when you go to a GP
[01:28:27] Aeyrix: and you say
[01:28:29] Aeyrix: "I'm in pain"
[01:28:29] Radar: fschuindt: If I was your professor I'd be extremely mad right now.
[01:28:36] Aeyrix: they look at you like you have some form of communicative disorder?
[01:29:37] Aeyrix: @Radar tbh
[01:29:41] Aeyrix: i think that rule needs to be relaxed a bit
[01:29:46] Radar: Aeyrix: The homework rule?
[01:29:53] Aeyrix: if i'm doing a dev assignment
[01:29:55] Aeyrix: and have an issue
[01:29:57] Aeyrix: i come in here
[01:30:07] Radar: Yeah, but your work isn't going to expel you for "cheating"
[01:30:07] huck5: I'm inclined to agree.
[01:30:11] Scripore: has joined #RubyOnRails
[01:30:13] Radar: They're going to say "great idea getting other people to help you"
[01:30:15] huck5: With both statements.
[01:30:18] Radar: university is different.
[01:30:20] Aeyrix: they also won't expel you for asking for assistance
[01:30:24] Aeyrix: source: I'm still in uni
[01:30:31] huck5: Not with a specific part of the project.
[01:30:38] Aeyrix: If you pay someone to do the whole project for you
[01:30:41] Aeyrix: you can wave bye to your bachelor's
[01:30:41] baweaver: and this is all in Rails
[01:30:44] Aeyrix: but if you're coming in asking for help
[01:30:45] fschuindt: Programming is getting other people to help you everytime.
[01:30:49] Aeyrix: pretty much
[01:30:55] Aeyrix: "can someone do this for me"
[01:30:57] baweaver: you sure it's Rails?
[01:31:04] Aeyrix: "can someone explain how I might go about x"
[01:31:04] Radar: It's within thge context of a Rails app.
[01:31:38] huck5: I mean, I think the point is don't ask specific questions about homework. If you are doing a school assignment, and you get stuck on one part then sure! Ask for help on that one part.
[01:31:55] Aeyrix: Pretty much yeah.
[01:31:56] huck5: But don't ask how you would go about designing a data-structure for an entire project, or how you would implement the overall solution.
[01:31:59] Aeyrix: I probably phrased it badly.
[01:32:03] Aeyrix: That's exactly what I mean.
[01:32:04] fschuindt: But nevermind, my problem was about the class methods, not how to do my homework.
[01:32:20] Radar: fschuindt: I'm writing up something that might help you
[01:32:26] Radar: fschuindt: You're pretty close to a good solution.
[01:32:31] huck5: Yeah, sparr fschuindt. I just finished a 2-year diploma. So I asked for help lots - but never asked for an overall solution. I learned lots in the process.
[01:32:41] Radar: Now that I've looked at the code some more.
[01:32:45] huck5: sparr = sorry*. I don't know where that came from -.-
[01:32:59] fschuindt: Radar: thank you
[01:33:03] jholm: has joined #RubyOnRails
[01:33:24] _lexjm: has joined #RubyOnRails
[01:33:47] Radar: fschuindt: https://gist.github.com/radar/b49019210d2b0f7afb39
[01:33:50] baweaver: fschuindt: Note how all AR classes inherit from AR::Base
[01:33:57] baweaver: you want to make your own base for CSV
[01:34:19] fschuindt: Radar: checking soon, brb, my baby woke
[01:34:21] Radar: fschuindt: Let me know if there's something there you don't understand.
[01:34:23] baweaver: then use that as your own "adapter" so to speak
[01:35:06] baweaver: I would use multiple files, one per "table"
[01:35:31] chipotle: baweaver: <3
[01:35:38] annlewis: has joined #RubyOnRails
[01:35:39] baweaver: Radar: magic
[01:35:48] crystal77: has joined #RubyOnRails
[01:36:47] riotjones: has joined #RubyOnRails
[01:38:13] NBarnes: has joined #RubyOnRails
[01:38:21] andessen: has joined #RubyOnRails
[01:38:31] baweaver: congrats chipotle, you've made the unofficial official best quotes of the channel list.
[01:38:41] apeiros: has joined #RubyOnRails
[01:38:47] one_zero: has joined #RubyOnRails
[01:38:48] chipotle: now i *HAVE* to learn RoR
[01:38:51] chipotle: i've been working onit!
[01:38:54] chipotle: it's so much to learn
[01:38:57] baweaver: we can help
[01:39:15] chipotle: i come from a drupal background; but now it's so fragmaneted. i need to learn html, css, javascript, ruby and ruby on rails to make a website :/
[01:39:20] chipotle: probably something else i'm forgeting
[01:39:26] baweaver: but now time for actual chipotle
[01:39:28] wldcordeiro__: has joined #RubyOnRails
[01:39:53] brunoalano: has joined #RubyOnRails
[01:40:11] brunoalano: Someone knows exactly which day they'll release Rails 5?
[01:40:44] lsone: has joined #RubyOnRails
[01:41:13] Aswebb__: has joined #RubyOnRails
[01:41:23] Aeyrix: Fall 10th.
[01:41:33] sevenseacat: brunoalano: no.
[01:41:39] huck5: chipotle, i don't think it's quite as daunting as you make it sound. You don't need your HTML to be that advanced to learn the basics of the Rails framework (imho). Same with CSS.
[01:41:42] sevenseacat: given there's not even a beta out yet, no.
[01:41:53] LambdaSource: has joined #RubyOnRails
[01:42:20] brunoalano: So, it's a good idea to develop a enterprise grade API for an startup using Rails 5? We'll release only in October
[01:42:38] Aeyrix: >using rails 5
[01:42:42] Aeyrix: how do you use something that does not exist?
[01:42:54] brunoalano: You can use the edge version
[01:42:59] Aeyrix: why would you do that
[01:43:04] jenrzzz: has joined #RubyOnRails
[01:43:13] brunoalano: Because the rails-api was integrated into rails 5
[01:43:49] Radar: brunoalano: !when
[01:43:50] JoshGlzBrk: has joined #RubyOnRails
[01:43:55] wldcordeiro__: has joined #RubyOnRails
[01:44:19] a1fa: sleepy time
[01:44:39] JoshGlzBrk: has joined #RubyOnRails
[01:44:54] Radar: brunoalano: You can try building with it now if you'd like. Just remember: there's a reason they call it the BLEEDING edge.
[01:45:23] sevenseacat: shit gonna break, hard.
[01:45:26] chipotle: huck5: i do know html well enough
[01:45:30] chipotle: but i'm confused by css
[01:45:34] chipotle: and i'm afraid to actually "program"
[01:45:41] chipotle: i've gone through chris pine's book, learn to program
[01:45:43] brunoalano: Oh, ok... But I think that Rails 4 isn't the a good option to develop an API
[01:45:45] chipotle: but i think i've forgotten most
[01:45:48] JoshGlzBrk: has joined #RubyOnRails
[01:46:05] chipotle: now i just got hte well grounded rubyist and i read the first chapter (Setting up a programming environemtn) and i have my mac ready to go
[01:46:15] chipotle: but i feel paralyzed now
[01:46:18] Ratler: has joined #RubyOnRails
[01:46:49] huck5: chipotle, I think we're a little off-topic, but to simply learn the abilities of RoR you really don't need much css. To make a pretty front-end, sure! But you can make a bare-bones site that uses partials to dynamically create pages, without a whole lot of CSS knowledge.
[01:46:53] northfurr: has joined #RubyOnRails
[01:47:51] huck5: chipotle, Just use bootstrap :P. I also found that Mike Hartl's e-tutorial was very useful for getting me started with RoR. ( https://www.railstutorial.org/book/frontmatter )
[01:48:38] huck5: chipotle, he also provides a nice overview of bootstrap/css. It might be kind of out-dated now, I suppose, but I think many of the topics he covers are still very relevant.
[01:48:59] chipotle: huck5: partials?
[01:49:40] techsethi: has joined #RubyOnRails
[01:50:44] huck5: chipotle, it's like a "part-of-a-webpage". I think it falls into the DRY (Do Not Repeat Yourself) concept. For example, if you have a collection of models (e.g. Microposts), you can create a page-partial for that model. You can then get Rails to insert data from each individual model into the page partial, thereby coding the page only once, but rendering it multiple times with different results.
[01:51:08] chipotle: is it like a block?
[01:51:12] chipotle: or views with drupal?
[01:51:26] huck5: Afraid I've never used Drupal :(.
[01:51:27] bronson: has joined #RubyOnRails
[01:51:31] meatherly: has joined #RubyOnRails
[01:51:39] theery: has joined #RubyOnRails
[01:51:42] Guest39097: has joined #RubyOnRails
[01:51:55] beauby_: has joined #RubyOnRails
[01:51:58] huck5: And that was likely a terrible description, I apologize. But I would reccommend checking out that tutorial I linked. It gives you a nice overview of source control (Git), continuous integration (with Heroku), as well as touching on Test Driven Development in RoR.
[01:52:19] huck5: chipotle, he basically walks you through making a mini-twitter website.
[01:52:41] huck5: which.. is kind of a boring example. But it demonstrates RoR capabilities really well.
[01:52:49] chipotle: how long does it take to go through something like that?
[01:52:55] chipotle: boring example? it's worth like 20B lol
[01:53:09] chipotle: why use heroku over ec2 and rolling your own on aws?
[01:53:31] huck5: I haven't used EC2/AWS. But my instinctive response is "Heroku is free"
[01:53:31] tfitts: heroku is like zero configuration
[01:53:33] tfitts: but is expensive
[01:53:39] Jon30: has joined #RubyOnRails
[01:53:41] tfitts: well, free tier is free
[01:53:42] huck5: tfitts, sorry, "Free for practice"*
[01:53:43] Radar: brunoalano: I disagree that Rails 4 isn't a good option to develop an API. I'm developing one right now using Rails 4, jbuilder and I'm following the JSON API spec.
[01:53:48] tfitts: but if you need performance it is expensive
[01:54:01] Radar: brunoalano: There's nothing that Rails 4 is doing that makes me think that's a bad idea. So what makes you think developing one in Rails 4 is a bad idea?
[01:54:03] chipotle: so how long does it take to go through hartl's book?
[01:54:15] huck5: tfitts, right. I wouldn't recommend it to deploy an application for actual use (as I have never done this before), but to develop a sample application it's super-easy.
[01:54:27] huck5: chipotle, that depends entirely on your pace.
[01:54:31] nettoweb: has joined #RubyOnRails
[01:54:33] Radar: chipotle: 0 minutes because you realised Rails 4 in Action was a much better book.
[01:54:35] huck5: chipotle, and how much you want to get out of it..
[01:54:35] wldcordeiro__: has joined #RubyOnRails
[01:54:51] chipotle: do i need to know ruby before i go through that book?
[01:54:53] huck5: Radar, excellent! I haven't looked into that resource yet.
[01:54:57] brunoalano: Radar: I think that Rails has a lot of boilerplate, that are not used to develop a good API
[01:55:03] Radar: brunoalano: Such as?
[01:55:07] chipotle: Radar: i got that book yesterday
[01:55:10] chipotle: the final version is out
[01:55:13] tprpc: has joined #RubyOnRails
[01:55:13] chipotle: i'm in the MEAP program
[01:55:14] Radar: chipotle: Indeed it is :)
[01:55:22] brunoalano: Radar: And JBuilder it's not a good option, active_model_serializer it's best (more fast and standard patterns)
[01:55:26] Radar: chipotle: Knowing a bit of Ruby can help you.
[01:55:46] Radar: brunoalano: Why is it not a good option? I'm complying with the JSON API spec completely using jbuilder. AMS isn't complete yet, and is beta software.
[01:55:59] RegulationD: has joined #RubyOnRails
[01:56:12] chipotle: so how long does it take to go through one of these books? i don't think it's an unreasonable question to ask but it's always met with "depends totally on you"
[01:56:18] chipotle: are we talking a few weeks, 6 months, a few days
[01:56:30] brunoalano: Radar: But have you tried the performance of active_model_serializer using JSON API standard too?
[01:56:34] Radar: chipotle: You can get through Rails 4 in Action in a couple of weeks.
[01:56:50] sevenseacat: theres a lot of content in R4IA.
[01:56:50] Radar: brunoalano: No, because unlike you I am building production-level software that I'll need to support in a couple of weeks time when I'm done.
[01:57:00] Jon30: hey guys, does anybody have any experience with amazon's ec2? I am doing some research, and I can see you can deploy multiple instances of the same app, e.g app01, app02, app03, db1, db2. My confusion is: does every instance counted as for example t2.micro? So I need multiple t2.micro for each instance?
[01:57:03] chipotle: Radar: then what do you do after that? what do you need?
[01:57:04] Radar: chipotle: I was speaking to someone last week who read up to Chapter 11 in a single week. There's only 4 more chapters after that.
[01:57:12] chipotle: Jon30: ##aws
[01:57:15] sevenseacat: Radar: wowee. how much did they absorb? >_>
[01:57:16] Radar: chipotle: You can read Multitenancy with Rails as the next book, or just start building your own applications.
[01:57:20] Radar: sevenseacat: Not sure yet :)
[01:57:25] chipotle: Radar: are you the author?
[01:57:44] sevenseacat: I'd be a lot surprised if anyone could absorb past about chapter 7 in a week.
[01:57:46] Radar: chipotle: Author of both R4IA and MTWR. sevenseacat did as much, if not more work than myself on R4IA.
[01:57:58] Radar: Definitely more, actually :D
[01:58:00] brunoalano: Radar: So, my problem that I'm developing a SAAS, and each client need to have a API to work with Angular.js (on Frontend, rendered by Middleman)
[01:58:32] brunoalano: Radar: But we can share thoughts in a private chat if you want
[01:58:37] chipotle: how many books will be printed? i've always been curious how many technical books get printed by like manning and oreilly
[01:59:05] chipotle: what does multitenanted mean?
[01:59:16] chipotle: Radar: my question is when do i start learning js so i can incorporate js, angular, etc into webapps?
[01:59:25] Radar: chipotle: R3IA sold almost 5000 copies.
[01:59:28] Radar: half of those are print
[01:59:39] chipotle: since it works side by side with ruby and every job wants you to know js plus ruby
[01:59:39] Radar: chipotle: Read the sample chapter of MTWR to find out what multitenanted means :D
[01:59:47] Radar: Angular is dead. Long live React :D
[01:59:59] chipotle: it's dead? really? wow
[02:00:03] Radar: (this is a similar kind of conversation as when Backbone was replaced with Angular)
[02:00:16] chipotle: i was diagnosed with cancer 4 months ago. fell off the face of the earth for a few months. now getting back into it and now angular is dead
[02:00:22] chipotle: i probably will be too in a year
[02:00:25] Radar: Angular does too much, and the core team is looking to do a massive rewrite for Angular 2.
[02:00:41] Radar: chipotle: Hopefully you'll not be dead.
[02:00:51] huck5: Seconded.
[02:01:22] Radar: brunoalano: Seems reasonable. Give Rails 4 a shot and see how it goes. Rails 5 isn't fully-baked yet and you might run into issues.
[02:01:23] meatherly: has joined #RubyOnRails
[02:01:24] Radar: bbl, lunch time
[02:01:44] michaell_: has joined #RubyOnRails
[02:01:46] brunoalano: Radar: I'll do that, thanks for the tip
[02:02:46] grotewold: has joined #RubyOnRails
[02:02:55] Aeyrix: <brunoalano> Oh, ok... But I think that Rails 4 isn't the a good option to develop an API
[02:03:00] Aeyrix: i don't even know what to say to this
[02:03:04] wldcordeiro__: has joined #RubyOnRails
[02:03:57] bruno-: has joined #RubyOnRails
[02:03:58] Lightsword: has joined #RubyOnRails
[02:04:00] brunoalano: Aeyrix: Yeah, I can develop it using Play Framework with Scala for an amazing performance, but the development time will be greater
[02:04:13] Aeyrix: lol play framework
[02:07:11] gambl0re: has joined #RubyOnRails
[02:08:44] LambdaSource: has joined #RubyOnRails
[02:10:02] gambl0re: has joined #RubyOnRails
[02:10:31] JoshGlzBrk: has joined #RubyOnRails
[02:13:33] wldcordeiro__: has joined #RubyOnRails
[02:15:27] ledestin: has joined #RubyOnRails
[02:16:19] brunoalano: Hey, do you think that my clients access they API (in a SAAS app) using: api.myproduct.com or companyName.myproduct.com/api ?
[02:16:44] meatherly: has joined #RubyOnRails
[02:16:46] brunoalano: In the first option, I'll discover the client based on authentication using OAuth 2
[02:16:58] dmz: has joined #RubyOnRails
[02:17:40] rakm: has joined #RubyOnRails
[02:17:46] macq: has joined #RubyOnRails
[02:18:02] wldcordeiro__: has joined #RubyOnRails
[02:19:51] rhizome: no reason to build out company subdomains unless you have a good reason. keep it simple.
[02:20:05] northfurr: has joined #RubyOnRails
[02:21:06] grotewold: has joined #RubyOnRails
[02:21:21] nya: has joined #RubyOnRails
[02:22:06] brunoalano: has joined #RubyOnRails
[02:23:11] JoshGlzB_: has joined #RubyOnRails
[02:25:19] grotewold: has joined #RubyOnRails
[02:27:44] hardtail: has joined #RubyOnRails
[02:29:54] JoshGlzBrk: has joined #RubyOnRails
[02:32:15] nya: has joined #RubyOnRails
[02:34:20] mary5030: has joined #RubyOnRails
[02:34:49] dopie: has joined #RubyOnRails
[02:36:05] tfitts: has joined #RubyOnRails
[02:36:33] annlewis: has joined #RubyOnRails
[02:37:10] theery: has joined #RubyOnRails
[02:38:42] maz-dev: has joined #RubyOnRails
[02:41:37] SteenJobs: has joined #RubyOnRails
[02:42:44] kegan_: has joined #RubyOnRails
[02:43:30] pontiki: learning angular components gave me a huge new appreciation for angular, and setting the stage for ng2
[02:43:54] pontiki: i now get it a lot better, tho the projects i've worked on have been a mess
[02:44:05] tuelz: has joined #RubyOnRails
[02:46:04] VeryBewitching: Knowledge that grows starts as a mess.
[02:47:10] achamian: has joined #RubyOnRails
[02:48:01] chipotle_: has joined #RubyOnRails
[02:48:54] hololeap: has joined #RubyOnRails
[02:49:00] mary5030: has joined #RubyOnRails
[02:49:34] Fire1o6: has joined #RubyOnRails
[02:52:43] pontiki: in one of my engineering courses thats sort of what they described engineering as. the earliest form of engineering (so they claimed) was civil; civil engineers learned to build better bridges by figuring out why and how bridges fell down
[02:53:09] pontiki: i know several things *not* to do on an angular project now
[02:53:16] Lightsword_: has joined #RubyOnRails
[02:53:59] jesterfraud: has joined #RubyOnRails
[02:55:43] gambl0re: what kind of engineer are you
[02:56:42] Kalev62: has joined #RubyOnRails
[02:58:29] VeryBewitching: There aren't enough keystrokes in a day.
[02:58:32] Kalev62: has left #RubyOnRails: ()
[02:58:41] VeryBewitching: ACTION wants an RJ45 jack in his head.
[02:58:55] Kalev_Nakah: has joined #RubyOnRails
[02:59:21] pontiki: the one in the matrix looked like a 1/4" phono plug :)
[02:59:21] rickmasta: has joined #RubyOnRails
[02:59:38] pontiki: "lemme just plug in my p-bass and we can jam"
[02:59:52] chipotle: has joined #RubyOnRails
[03:00:35] brunoalano: has joined #RubyOnRails
[03:01:05] DoctorMo_: has joined #RubyOnRails
[03:04:51] moeabdol: has joined #RubyOnRails
[03:05:23] meatherly: has joined #RubyOnRails
[03:09:14] GnuYawk: has joined #RubyOnRails
[03:09:52] braincrash: has joined #RubyOnRails
[03:10:23] altivection: has joined #RubyOnRails
[03:13:12] wildlander: has joined #RubyOnRails
[03:14:19] jesterfraud: has joined #RubyOnRails
[03:14:46] fedexo: has joined #RubyOnRails
[03:16:43] n1lo: has joined #RubyOnRails
[03:17:28] altivection: has joined #RubyOnRails
[03:19:27] jholm: has joined #RubyOnRails
[03:19:53] Gribo: has joined #RubyOnRails
[03:21:01] DoctorMonocular: has joined #RubyOnRails
[03:21:10] Cache_Money: has joined #RubyOnRails
[03:26:30] EvilEpoch: has joined #RubyOnRails
[03:26:37] EvilEpoch: Warm Greetings to all, I am The EvilEpoch.
[03:27:38] sevenseacat: good afternoon to The EvilEpoch
[03:27:51] Travis-42: has joined #RubyOnRails
[03:27:52] nahtnam: has joined #RubyOnRails
[03:28:55] gambl0re: i have a post, user, comments model
[03:29:12] gambl0re: on the post 'show' page, it has a comment section at the bottom.
[03:29:42] gambl0re: i created a nested resource to include the comments under the posts page
[03:29:44] gambl0re: is that correct?
[03:30:01] kegan_: ip2long for rails?
[03:30:25] gambl0re: anyways...and then
[03:30:42] gambl0re: in my comments controller i have a create method
[03:30:43] tdguy_: has joined #RubyOnRails
[03:30:56] gambl0re: @post = Post.find(params[:post_id])
[03:30:56] gambl0re: @comment = @post.comments.new(comment_params)
[03:30:56] gambl0re: @comment.user = current_user
[03:31:32] gambl0re: and after the comment is submitted, i want it to redirect back to the post page id that it was currently showing
[03:31:32] theery: has joined #RubyOnRails
[03:31:40] sevenseacat: waiting to hear a question
[03:31:47] gambl0re: but instead its redirecting to the comments index page
[03:32:00] sevenseacat: so where are you telling it to redirect to
[03:32:01] gambl0re: how do i redirect it back to the post id page that it was viewing instead
[03:32:04] gambl0re: i used scaffolding
[03:32:12] sevenseacat: ok, that doesnt answer the question
[03:32:14] crdpink: has joined #RubyOnRails
[03:32:14] kegan_: what is the original request method
[03:32:14] gambl0re: format.html { redirect_to @comment, notice: 'Comment was successfully created.' }
[03:32:14] gambl0re: format.json { render :show, status: :created, location: @comment }
[03:32:18] Shidash: has joined #RubyOnRails
[03:32:26] sevenseacat: so change the redirect there
[03:32:30] chrisarcand: has joined #RubyOnRails
[03:32:38] gambl0re: redirect_to ???
[03:32:49] sevenseacat: check your routes? :)
[03:32:52] EvilEpoch: Greetings to sevenseacat from The EvilEpoch.
[03:32:59] fedexo: has joined #RubyOnRails
[03:33:14] baweaver: has joined #RubyOnRails
[03:33:16] gambl0re: post GET /posts/:id(.:format) posts#show
[03:33:23] rails690: has joined #RubyOnRails
[03:33:38] universa1: has joined #RubyOnRails
[03:33:39] sevenseacat: so what named route does that give you
[03:33:39] gambl0re: redirect_to post_path(@post)?
[03:33:48] sfr^: has joined #RubyOnRails
[03:34:21] gambl0re: what about the format.json
[03:34:23] Lightsword: has joined #RubyOnRails
[03:34:27] rails690: Question: how do I create a search form for a model that has inherited attributes?
[03:34:32] sevenseacat: gambl0re: what do you want it to do?
[03:34:44] gambl0re: holy shit it worked
[03:34:53] gambl0re: redirect_to post_path(@post)
[03:35:06] gambl0re: but the tutorial i was following didnt make that change
[03:35:09] gambl0re: i was confused
[03:35:10] kegan_: is there an ip2long type deal for rails?
[03:35:19] sevenseacat: then it didnt redirect the way you want it to
[03:35:35] sevenseacat: if you wanted to use the same shortcut syntax as you had with comment, redirect_to @post would also infer that you wanted post_path
[03:35:38] rails690: is anyone here familiar with Ransack?
[03:35:43] fschuindt: Radar: Crazy as hell, but I will try to improve https://gist.github.com/fschuindt/2ebf320c1445aff14f99
[03:35:55] baweaver: !ask rails690
[03:35:55] helpa: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
[03:36:07] baweaver: ...wrong one but ok
[03:36:08] Lightsword: has joined #RubyOnRails
[03:36:23] helpa: Nope. No one. Ever. In the history of the world.
[03:36:26] sevenseacat: ? syntax is for ruboto
[03:36:32] sevenseacat: ! syntax is for helpa
[03:36:42] baweaver: I'll remember them one of these days
[03:36:46] rails690: Ransack searches a model based on its column names
[03:37:10] annlewis: has joined #RubyOnRails
[03:37:16] rails690: However, my app implements MTI (multi table inheritance). So my Patient model inherits attributes in the Person table
[03:37:30] riotjones: has joined #RubyOnRails
[03:37:57] rails690: so theyre not column names of the Patient model.... therefore, it gives me an error when I try to search for @patient.name because that name column is not physically inside of the patient table, its inherited from the Person table
[03:38:00] rails690: so what do I do?
[03:39:02] jesterfraud: has joined #RubyOnRails
[03:40:49] DoctorMonocular: has joined #RubyOnRails
[03:41:12] meatherly: has joined #RubyOnRails
[03:43:14] Radar: rails690: It's likely that Ransack isn't going to work for you in this case. Investigate alternative searching options, like Elasticsearch.
[03:44:29] darkxploit: has joined #RubyOnRails
[03:45:48] EvilEpoch: Greetings to Radar from The EvilEpoch.
[03:45:48] LambdaSource: has joined #RubyOnRails
[03:45:48] rails690: you think ElasticSearch will work on inherited attributes?
[03:45:51] rails690: like in my case?
[03:45:59] rails690: or what about Sunspot
[03:46:00] Radar: rails690: Elasticsearch can do many things.
[03:46:06] Radar: rails690: Elasticsearch has a better API imo.
[03:46:13] Radar: Greetings to The EvilEpoch from Radar.
[03:46:23] abhishekvasisht: has joined #RubyOnRails
[03:46:48] dudo: has joined #RubyOnRails
[03:47:02] chipotle: has joined #RubyOnRails
[03:47:46] abhishekvasisht: has joined #RubyOnRails
[03:49:28] drale2k: has joined #RubyOnRails
[03:50:42] fschuindt: Radar: did you replied me? sorry, the weechat lost the buff
[03:50:48] Radar: fschuindt: Nope.
[03:53:00] Lightsword: has joined #RubyOnRails
[03:55:17] rickmasta: has joined #RubyOnRails
[03:57:35] RegulationD: has joined #RubyOnRails
[03:58:29] chipotle_: has joined #RubyOnRails
[03:59:30] Lightsword_: has joined #RubyOnRails
[04:00:21] EiNSTeiN_: has joined #RubyOnRails
[04:01:58] DoctorMonocular: has joined #RubyOnRails
[04:04:14] abhishekvasisht: has joined #RubyOnRails
[04:04:49] bruno-: has joined #RubyOnRails
[04:05:06] Lightsword_: has joined #RubyOnRails
[04:05:28] gambl0re: i dont understand what add_index is used for...
[04:05:46] gambl0re: what is the index in table used for and why is it used?
[04:06:00] baweaver: What's an index in a library?
[04:06:19] gambl0re: to search stuff
[04:06:30] charliesome: has joined #RubyOnRails
[04:06:38] baweaver: in some cases
[04:06:45] Radar: Dewey Index system in libraries
[04:06:48] baweaver: or duidecimal system, or category, or...
[04:06:52] Radar: It's so you know where to look.
[04:06:54] baweaver: ah, that's how you spell that dang thing
[04:07:30] baweaver: database is similar in that an index is a faster way to look for a piece of information
[04:07:35] _djbkd: has joined #RubyOnRails
[04:07:54] baweaver: normally a significant piece of information such as a name or id
[04:08:14] gambl0re: rails g model Comment post_id:integer:index
[04:08:16] baweaver: though that's a really loose description at best.
[04:08:35] gambl0re: it would insert post_id field into Comment table
[04:08:46] baweaver: now why would you want to be able to search based on a post id?
[04:08:48] gambl0re: and it will use the post_id to search what?
[04:09:07] baash05: has joined #RubyOnRails
[04:09:31] gambl0re: well how would you normall use it?
[04:09:46] baweaver: you want to find comments based on their post id
[04:09:52] baweaver: that's going to happen a lot
[04:09:59] baweaver: so you want an index of that so you can find them faster
[04:10:02] baash05: I'm looking for some help with machinist
[04:10:19] baash05: I've got a user a retailer and a user_retailer table.
[04:11:06] baash05: And then I have class User::AsRetailUser < User
[04:11:51] jholm: has joined #RubyOnRails
[04:12:40] baash05: When I attempt to make the user::asretaileruser the user_retailer validation fails because there's not user object.
[04:13:02] baash05: I seem to remember something of build, but I can't find a reference to it anymore
[04:16:04] gambl0re: i have a comment model and it has.... belongs_to :user, belongs_to :post
[04:16:37] gambl0re: when i do c = Comment.first, c.user, it returns the corresponding user related to that comment
[04:16:52] gambl0re: but when i do c.post, it gives an error message
[04:17:42] gambl0re: i should be able to pull out info from the Post model because theres a post_id inside the Comment model
[04:17:56] gambl0re: instead its giving me an error
[04:18:36] baweaver: baash05: Use FactoryGirl
[04:18:51] baweaver: Machinist isn't being developed on anymore
[04:19:23] Lightsword_: has joined #RubyOnRails
[04:19:53] gambl0re: nevermind...fixed it
[04:20:08] baweaver: gambl0re: you should probably experiment more before asking questions
[04:20:14] baweaver: you'll learn far faster that way.
[04:20:33] gambl0re: i was experimenting...i know what i was doing
[04:20:48] gambl0re: if i have a post_id inside the Comment model i should be able to pull out info from the post model then
[04:20:51] gambl0re: but it wasnt working
[04:21:18] gambl0re: but anyways i figured out the problem
[04:24:11] Swappticon: has joined #RubyOnRails
[04:24:17] NBarnes: has joined #RubyOnRails
[04:25:17] konsolebox: has joined #RubyOnRails
[04:30:44] nya: has joined #RubyOnRails
[04:32:28] rogue_koder: has joined #RubyOnRails
[04:33:10] eones: has joined #RubyOnRails
[04:34:22] baash05: gambl0re: what was the issue?
[04:35:47] mutuma: has joined #RubyOnRails
[04:36:35] gambl0re: in the comment model i had belongs_to :link
[04:36:42] gambl0re: instead of :user
[04:36:53] gambl0re: i mean :post
[04:37:14] JohnBat26: has joined #RubyOnRails
[04:37:38] gambl0re: im trying to figure out what this partial does. 'render :partial => @post.comment'
[04:37:50] gambl0re: i didnt find anything in the guides
[04:37:55] annlewis: has joined #RubyOnRails
[04:37:59] NBarnes: has joined #RubyOnRails
[04:38:04] rhizome: should be render @post.comment
[04:38:17] rhizome: weird that a post would only have one comment, probably should be render @post.comments
[04:38:17] nya: has joined #RubyOnRails
[04:38:31] rhizome: which will use the views/comments/_comment partial
[04:39:32] JohnBat26: has joined #RubyOnRails
[04:39:46] gambl0re: so its sayng to use the _comment partial in /views/comments?
[04:40:11] DoctorMonocular: has joined #RubyOnRails
[04:40:19] gambl0re: couldnt i just write 'render 'comments/_comment' instead?
[04:40:34] nya: has joined #RubyOnRails
[04:40:37] Guest39097: has joined #RubyOnRails
[04:41:01] sevenseacat: has joined #RubyOnRails
[04:41:59] ranchodev: has joined #RubyOnRails
[04:42:55] Lightsword_: has joined #RubyOnRails
[04:44:06] NBarnes: has joined #RubyOnRails
[04:45:27] iateadonut: has joined #RubyOnRails
[04:46:40] Lightsword: has joined #RubyOnRails
[04:47:33] NBarnes: has joined #RubyOnRails
[04:51:15] rhizome: maybe. i don't know your code.
[04:51:34] chipotle: has joined #RubyOnRails
[04:52:27] NBarnes: has joined #RubyOnRails
[04:52:51] nya: has joined #RubyOnRails
[04:52:52] bronson: has joined #RubyOnRails
[04:54:29] drale2k: has joined #RubyOnRails
[04:55:29] nya: has joined #RubyOnRails
[04:55:43] meatherly: has joined #RubyOnRails
[04:55:47] Lightsword_: has joined #RubyOnRails
[04:56:24] quazimodo: has joined #RubyOnRails
[05:01:19] NBarnes: has joined #RubyOnRails
[05:01:27] pawnbox: has joined #RubyOnRails
[05:02:19] Lightsword_: has joined #RubyOnRails
[05:02:43] Aswebb_: has joined #RubyOnRails
[05:02:54] war_pigs: has joined #RubyOnRails
[05:03:01] meatherly: has joined #RubyOnRails
[05:03:53] techsethi: has joined #RubyOnRails
[05:06:09] DoctorMonocular: has joined #RubyOnRails
[05:06:56] Allegiant: has joined #RubyOnRails
[05:07:37] nya: has joined #RubyOnRails
[05:07:38] Allegiant: has joined #RubyOnRails
[05:07:54] NBarnes: has joined #RubyOnRails
[05:08:18] riotjones: has joined #RubyOnRails
[05:10:05] NBarnes: has joined #RubyOnRails
[05:10:26] nya: has joined #RubyOnRails
[05:11:08] jstodberg: has joined #RubyOnRails
[05:15:37] dhjondoh: has joined #RubyOnRails
[05:19:15] Guest39097: has joined #RubyOnRails
[05:20:48] rickmasta: has joined #RubyOnRails
[05:22:38] nya: has joined #RubyOnRails
[05:24:20] moei: has joined #RubyOnRails
[05:24:25] NBarnes: has joined #RubyOnRails
[05:24:38] armyriad: has joined #RubyOnRails
[05:25:25] nya: has joined #RubyOnRails
[05:28:51] nyaa: has joined #RubyOnRails
[05:30:08] NBarnes: has joined #RubyOnRails
[05:30:19] srinidhi: has joined #RubyOnRails
[05:33:54] lampshades: has joined #RubyOnRails
[05:34:07] jholm: has joined #RubyOnRails
[05:34:43] dopie: has joined #RubyOnRails
[05:37:01] Macaveli: has joined #RubyOnRails
[05:37:24] ur5us_: has joined #RubyOnRails
[05:38:38] tagrudev: has joined #RubyOnRails
[05:38:42] annlewis: has joined #RubyOnRails
[05:42:37] DoubleMalt: has joined #RubyOnRails
[05:43:28] mary5030: has joined #RubyOnRails
[05:44:01] speakingcode: has joined #RubyOnRails
[05:45:27] Aswebb_: has joined #RubyOnRails
[05:45:30] dionysus69: has joined #RubyOnRails
[05:50:31] NBarnes: has joined #RubyOnRails
[05:50:34] bruno-: has joined #RubyOnRails
[05:52:51] kk: has joined #RubyOnRails
[05:53:28] pawnbox: has joined #RubyOnRails
[05:55:22] drale2k: has joined #RubyOnRails
[05:57:27] rvanlieshout: has joined #RubyOnRails
[05:58:57] TvL2386: has joined #RubyOnRails
[05:59:41] riotjones: has joined #RubyOnRails
[06:00:13] kimegede: has joined #RubyOnRails
[06:03:36] tvw: has joined #RubyOnRails
[06:05:34] VeryBewitching: ACTION wants Rails engines to *actually* be like Rails apps.
[06:05:42] kk: Hi, I have a little issue regarding the value of Select field in params
[06:05:51] kk: I have this field: <%= collection_select :bank_id, :bank_id, @bill.all.collect { |t| [ t.id, "#{t.bank_name}: #{t.bank_branch}" ] }, :first, :last, { prompt: "Select Bank: Branch" } %>
[06:06:03] baweaver: ?yadot uoy pleh ew nac woh
[06:06:06] kk: But when I try to get selected value from it, only ID is given
[06:06:34] Radar: kk: Yes that's right. You will need to make a new query to whatever model @bill represents.
[06:06:51] kk: @bank = params[:bank_id][:bank_id] gives only ID
[06:07:27] kk: The submitted value needs to have both branch and bank name
[06:07:34] michael_mbp: has joined #RubyOnRails
[06:07:36] Radar: [16:06:36] <Radar> kk: Yes that's right. You will need to make a new query to whatever model @bill represents.
[06:07:55] Radar: Bill.find(params[:bank_id][:bank_id])
[06:07:59] Radar: Or whatever the model is
[06:08:08] Radar: then from that you can work out the bank_name and bank_branch.
[06:09:34] michael_mbp: has joined #RubyOnRails
[06:10:56] kk: @Radar: IS there any other way that we get the value I was expecting? Or this is the right way?
[06:11:21] Radar: kk: The way I have said is the right way.
[06:12:32] yfeldblum: has joined #RubyOnRails
[06:12:58] charliesome: has joined #RubyOnRails
[06:13:43] sakshi_: has joined #RubyOnRails
[06:14:07] eGGsha: has joined #RubyOnRails
[06:14:18] yfeldblum: has joined #RubyOnRails
[06:15:13] maz-dev: has joined #RubyOnRails
[06:15:46] jesterfraud: has joined #RubyOnRails
[06:15:56] Lightsword_: has joined #RubyOnRails
[06:16:04] michael_mbp: has joined #RubyOnRails
[06:17:02] pawnbox: has joined #RubyOnRails
[06:19:01] chipotle: has joined #RubyOnRails
[06:19:20] Allegiant: has joined #RubyOnRails
[06:21:07] emilkarl: has joined #RubyOnRails
[06:21:17] lampshades: I was wondering
[06:21:47] chipotle: has joined #RubyOnRails
[06:21:58] lampshades: Im actually studying capistrano and chef atm, and I was wondering if I need to learn both to deploy to EC2 ?
[06:22:04] michael_mbp: has joined #RubyOnRails
[06:22:29] arup_r: has joined #RubyOnRails
[06:25:34] Cancerguy: has joined #RubyOnRails
[06:27:42] bronson: has joined #RubyOnRails
[06:31:07] jondot: has joined #RubyOnRails
[06:31:12] arBmind: has joined #RubyOnRails
[06:31:46] Lightsword: has joined #RubyOnRails
[06:32:04] sinkensabe: has joined #RubyOnRails
[06:32:33] jgt3: has joined #RubyOnRails
[06:32:42] Radar: No. You can deploy to EC2 without knowing either
[06:33:33] yfeldblum: has joined #RubyOnRails
[06:34:12] yfeldblum: has joined #RubyOnRails
[06:36:45] JoshuaPaling: has joined #RubyOnRails
[06:37:08] yfeldblum: has joined #RubyOnRails
[06:39:30] annlewis: has joined #RubyOnRails
[06:40:39] EvilEpoch: has joined #RubyOnRails
[06:40:51] Macaveli: has joined #RubyOnRails
[06:40:53] jesterfraud: has joined #RubyOnRails
[06:41:27] solars: has joined #RubyOnRails
[06:42:37] finnnnnnnnnnn: has joined #RubyOnRails
[06:44:45] nya: has joined #RubyOnRails
[06:46:27] rushed: has joined #RubyOnRails
[06:46:31] Macaveli: has joined #RubyOnRails
[06:47:24] graft_: has joined #RubyOnRails
[06:47:53] mbuf: has joined #RubyOnRails
[06:48:35] sakshi_: has joined #RubyOnRails
[06:51:19] greenarrow: has joined #RubyOnRails
[06:51:56] bePolite: has joined #RubyOnRails
[06:52:28] yfeldblum: has joined #RubyOnRails
[06:52:43] mbuf: does anyone use the silencer gem? The following in config/application.rb is not working in Docker in production mode, https://gist.github.com/anonymous/6f9d4199b80a707b13bc
[06:53:00] mbuf: the same works fine locally when I run in development mode, or in production mode outside of Docker. Any suggestions?
[06:56:08] drale2k: has joined #RubyOnRails
[06:57:39] kies: has joined #RubyOnRails
[06:58:34] herbst: has joined #RubyOnRails
[06:59:51] RegulationD: has joined #RubyOnRails
[06:59:56] jas02: has joined #RubyOnRails
[07:02:47] nickiiiii: has joined #RubyOnRails
[07:04:02] kk: <%= collection_select :bank_id, :bank_id, @bill.all.collect { |t| [ t.id, "#{t.bank_name}: #{t.bank_branch}" ] }, :first, :last, { prompt: "Select Bank: Branch" } %>
[07:04:07] blnkammo: has joined #RubyOnRails
[07:04:30] kk: How can I get only unique values in the above collection field?
[07:04:32] Radar: kk: Hi again. That's the same code as before.
[07:04:41] Radar: What do you mean unique values?
[07:04:47] kk: Radar: Yes, this time it is the different issue
[07:05:23] artto: has joined #RubyOnRails
[07:06:10] kk: Radar: Many values in select field are the same
[07:06:16] Radar: kk: Show us.
[07:06:23] Radar: As an image.
[07:06:30] kk: Radar: Sure
[07:07:03] MartinElvar: has joined #RubyOnRails
[07:10:01] DoctorMonocular: has joined #RubyOnRails
[07:11:22] kk: Radar: Here: https://s3.amazonaws.com/uploads.hipchat.com/321331/2570680/B8RttXByqhI0oYs/Screenshot%20from%202015-09-03%2012%3A39%3A57.png
[07:11:31] huck5: has joined #RubyOnRails
[07:11:42] Radar: kk: The only reason that would happen is if you've got duplicate data in your tables.'
[07:11:47] null__: "link_to model.short_name || model.name, route_path(model)" this always uses short_name, and ideally I'd like it to use name if short_name isn't empty
[07:11:48] husanu: has joined #RubyOnRails
[07:12:39] kk: Radar: Can't it be made unique somehow?
[07:13:01] DEA7TH: has joined #RubyOnRails
[07:13:08] Radar: kk: Yup. Your homework is to figure out how.
[07:13:18] kk: Radar: :D ok
[07:13:29] darutoko: has joined #RubyOnRails
[07:13:43] Radar: null__: Define a method in your model called display_name: it goes like short_name.blank? ? name : short_name
[07:13:50] aganov: has joined #RubyOnRails
[07:14:46] sakshi_: has joined #RubyOnRails
[07:14:47] null__: I can do that, thanks. why isn't my original line working, though? Does model.field show up as truthy even if it isn't assigned a value?
[07:15:06] Radar: null__: !!""
[07:15:11] Radar: that is why
[07:15:53] comrad: has joined #RubyOnRails
[07:16:10] Radar: null__: go to irb
[07:16:19] Radar: null__: copy and paste what I put there
[07:16:23] Radar: meditate on why that is
[07:16:28] Radar: reach zen
[07:16:43] Radar: (optional: ignore the warning)
[07:16:43] Tinyyy: has joined #RubyOnRails
[07:17:43] EvilEpoch: Greetings to Radar from The EvilEpoch.
[07:18:07] Radar: Greetings again to The EvilEpoch from Radar.
[07:19:35] husanu: has joined #RubyOnRails
[07:20:12] drale2k: has joined #RubyOnRails
[07:22:44] arup_r: Can I add bootstrap CSS to the Stripe "Pay with card" button ? https://stripe.com/docs/checkout
[07:22:55] arup_r: I am not seeing any data-* options
[07:24:35] DEA7TH_: has joined #RubyOnRails
[07:25:11] robbyoconnor: has joined #RubyOnRails
[07:25:41] Ven: has joined #RubyOnRails
[07:26:15] artmann: has joined #RubyOnRails
[07:26:55] Tinyyy: has joined #RubyOnRails
[07:28:48] Ergo: has joined #RubyOnRails
[07:28:59] sakshi_: has joined #RubyOnRails
[07:29:18] Mendenhall: has joined #RubyOnRails
[07:30:40] bronson: has joined #RubyOnRails
[07:32:12] darkxploit: has joined #RubyOnRails
[07:32:43] arBmind: has joined #RubyOnRails
[07:33:14] moeabdol: has joined #RubyOnRails
[07:34:42] nyaa: has joined #RubyOnRails
[07:35:12] blnkammo: has joined #RubyOnRails
[07:35:48] joostliketoast84: has joined #RubyOnRails
[07:36:18] bruno-: has joined #RubyOnRails
[07:37:08] pawnbox: has joined #RubyOnRails
[07:39:30] moeabdol: has joined #RubyOnRails
[07:39:47] michael_mbp: Greetings to Radar and EvilEpoch from michael_mbp
[07:39:52] AzaToth: has joined #RubyOnRails
[07:40:15] annlewis: has joined #RubyOnRails
[07:41:14] beast: has joined #RubyOnRails
[07:41:54] sakshi_: has joined #RubyOnRails
[07:42:46] dpg1: has left #RubyOnRails: ("WeeChat 0.3.7")
[07:44:42] sakshi_: has joined #RubyOnRails
[07:44:58] blnkammo: has joined #RubyOnRails
[07:45:51] srinidhi: has joined #RubyOnRails
[07:46:27] EvilEpoch: Greetings to michael_mbp from The EvilEpoch.
[07:46:56] Heffiros: has joined #RubyOnRails
[07:47:02] sakshi__: has joined #RubyOnRails
[07:48:08] rushed: has joined #RubyOnRails
[07:51:42] curses: has joined #RubyOnRails
[07:52:29] blnkammo: has joined #RubyOnRails
[07:53:00] Scripore: has joined #RubyOnRails
[07:53:48] livathinos: has joined #RubyOnRails
[07:55:52] Obfuscate: has joined #RubyOnRails
[07:56:30] lipoqil: has joined #RubyOnRails
[07:57:51] jgt3: has joined #RubyOnRails
[08:00:36] RegulationD: has joined #RubyOnRails
[08:01:10] sakshi_: has joined #RubyOnRails
[08:01:45] jcm: has joined #RubyOnRails
[08:02:28] jenrzzz: has joined #RubyOnRails
[08:03:04] _djbkd: has joined #RubyOnRails
[08:03:08] TheCholb: has joined #RubyOnRails
[08:03:22] TheCholb: has joined #RubyOnRails
[08:03:36] krisquigley: has joined #RubyOnRails
[08:04:19] Spami: has joined #RubyOnRails
[08:04:35] blnkammo: has joined #RubyOnRails
[08:04:42] adre: has joined #RubyOnRails
[08:04:53] x-light: has joined #RubyOnRails
[08:05:28] AntiSpamMeta: has joined #RubyOnRails
[08:06:28] rakm: has joined #RubyOnRails
[08:07:34] sakshi_: has joined #RubyOnRails
[08:10:14] jsrn_: has joined #RubyOnRails
[08:11:00] blnkammo: has joined #RubyOnRails
[08:13:26] dideler: has joined #RubyOnRails
[08:16:07] emilkarl: has joined #RubyOnRails
[08:16:18] gaussblurinc1: has joined #RubyOnRails
[08:17:11] Sylario: has joined #RubyOnRails
[08:17:19] sakshi_: has joined #RubyOnRails
[08:17:59] arup_r: I want to send some extra data to the controller action. How to do this ? https://gist.github.com/aruprakshit/a5eefc89105b19c327e0
[08:18:13] smathy: has joined #RubyOnRails
[08:19:08] arup_r: With Stripe JS file
[08:21:10] lxsameer: has joined #RubyOnRails
[08:21:42] lxsameer: hey people, what is the minimum ruby version required for Rails 4.2
[08:22:54] jhass: can we pretend it's 2.2 everyone?
[08:22:58] tbuehlmann: "The Ruby language version 1.9.3 or newer." from http://guides.rubyonrails.org/getting_started.html
[08:23:16] jhass: aw, you ruined it
[08:23:23] null__: I have models titled Event, Venue, and Region. The Events model has a has_many relationship with Venues, through an association titled Schedule. The Venues model has_and_belongs_to_many Regions, and vice versa for Regions. In my Event controller I have something like "@events = Event.joins(:schedule)...", but I'd like to also join the Regions model and limit the Events to only those occurring within a specific Region ID.
[08:23:25] tbuehlmann: but I agree, I usually go with 2.2 these days, too
[08:23:36] emilkarl: for a prod environment on a VPS???what would you recommend. My suggestions is nginx + passenger but Im not a hosting pro :)
[08:23:49] emilkarl: nginx + passenger + postgresql
[08:24:00] null__: I'm having trouble figuring out what type of join I'd need to make on Events to make that so
[08:28:25] jhass: lxsameer: note that 1.9.3 is out of security maintenance and 2.0.0 will leave it in February
[08:28:34] nya: has joined #RubyOnRails
[08:28:58] lxsameer: jhass: good point, thanks
[08:29:13] sevenseacat: use the latest unless you have a really good reason not to.
[08:29:38] smathy: has joined #RubyOnRails
[08:30:17] moeabdol: has joined #RubyOnRails
[08:31:19] bePolite: has joined #RubyOnRails
[08:31:56] herbst: i always use nginx + unicorn + mariadb, any reason i am doing that wrong?
[08:32:19] jhass: postgresql is a lot saner, more feature rich and usually faster
[08:33:14] herbst: i agree with that postgres actually, but i just recently learned to love it. but what about unicorn? i know passanger has a better performance, but for anything with not millions of hits a hour unicorn seems a lot more easy to handle
[08:34:06] jhass: passenger, unicorn, puma & thin are four rather different approach actually, different workloads work better with either
[08:34:10] jcm: has joined #RubyOnRails
[08:34:18] jhass: it's quickly application specific
[08:34:30] Pathfinder: has joined #RubyOnRails
[08:34:45] jhass: that said I tend to default to puma these days
[08:35:56] herbst: kk, so no rule of thumb to use passanger all the time. and i guess i should look into puma as well
[08:36:09] ur5us: has joined #RubyOnRails
[08:36:20] schu: has joined #RubyOnRails
[08:36:28] Tinyyy: has joined #RubyOnRails
[08:36:47] jhass: I mostly avoid passenger because I prefer nginx but hate that I need to compile support in. And I see no benefit for the standalone mode
[08:36:54] gerardc: has joined #RubyOnRails
[08:37:05] jhass: so no strong technical reason tbh
[08:40:02] sakshi_: has joined #RubyOnRails
[08:40:40] srinidhi: has joined #RubyOnRails
[08:41:00] annlewis: has joined #RubyOnRails
[08:41:04] gerardc: has joined #RubyOnRails
[08:46:43] quazimodo: has joined #RubyOnRails
[08:46:48] schu: has left #RubyOnRails: ("Leaving")
[08:47:34] voker57: has joined #RubyOnRails
[08:47:51] maz-dev: has joined #RubyOnRails
[08:48:41] carlesso: has joined #RubyOnRails
[08:50:49] kriskhaira: has joined #RubyOnRails
[08:51:07] DLSteve: has joined #RubyOnRails
[08:51:10] Ven: has joined #RubyOnRails
[08:51:18] kriskhaira: Hi. What's the common pattern for cleaner templates now? View helpers, Draper, Cells?
[08:51:56] stardiviner: has joined #RubyOnRails
[08:53:36] quazimodo: has joined #RubyOnRails
[08:53:50] DLSteve: has joined #RubyOnRails
[08:54:48] jgt: has joined #RubyOnRails
[08:56:40] Ven: kriskhaira: I think cells are a bit different from this
[08:56:46] jgt: has joined #RubyOnRails
[08:57:09] EvilEpoch: The EvilEpoch uses Slim for the templates themselves but has not used Draper, although it looks nice.
[08:57:20] DLSteve: has joined #RubyOnRails
[08:57:38] maz-dev: has joined #RubyOnRails
[08:59:26] sevenseacat: I wouldn't recommend draper.
[09:00:08] tbuehlmann: I would recommend draper, worked well for me in the past
[09:00:47] tbuehlmann: but I can understand people think that it's too much for their simple decorator use case
[09:01:57] charliesome: has joined #RubyOnRails
[09:03:04] marahin: Hey guys. Could someone please explain what does ||= operator do exactly? For example, @gl_user ||= find_by_uid_and_provider || find_by_email || build_new_user (sample line from GitLab as far as I'm concerned)
[09:03:09] null__: I figured out my question -- it was a bit wordy. Any hoo, I created a scoped lambda within the Venue model which returned every Venue within a passed Region. And in the Event controller I did something like @events = Event.joins(:schedule).where(schedule: { :venue_id => Venue.by_region(current_region).map(&:id)}) and it seems to be working well.
[09:03:12] marahin: DuckDuckGo'ed it, no results though
[09:03:43] emilkarl: An heroku 2x or Px dyno seems quite good. But how is heroku handling static files? I???ve got a rails app where there is quite amount of static files but I cant decide if the best thing is to go with heroku or with a VPS (nginx+passenger+postgres)
[09:04:54] bruno-: has joined #RubyOnRails
[09:08:55] null__: here's the gist of it, actually, with a few things removed for brevity https://gist.github.com/anonymous/dcb3172a6cac8f457e5a
[09:09:21] marr: has joined #RubyOnRails
[09:09:26] rushed: emilkarl: if measuring suggests offloading static files is useful for your site there are a number of ways to do so (ex s3, cdn, cloudfront, etc)... all of which would apply to either a VPS or PaaS deployment
[09:10:11] emilkarl: what type of measuring? ;)
[09:10:30] emilkarl: i guess it could be a good idea to have it moved to s3 either way yes
[09:10:37] Spami: has joined #RubyOnRails
[09:10:39] rushed: marahin: left ||= right (left will be set to right unless it's already non-nil)
[09:11:22] marahin: rushed: so it's kind of "left ? () : (left = right)"?
[09:13:06] lxsameer: has joined #RubyOnRails
[09:13:06] lxsameer: has joined #RubyOnRails
[09:14:26] stardiviner: has joined #RubyOnRails
[09:14:37] DLSteve: has joined #RubyOnRails
[09:15:25] nya: has joined #RubyOnRails
[09:17:32] doerteDev: has joined #RubyOnRails
[09:20:52] sakshi_: has joined #RubyOnRails
[09:23:32] DLSteve: has joined #RubyOnRails
[09:25:36] jhass: marahin: to be precise it's left || left = right, but you can picture it as left = left || right for the most part
[09:26:19] marahin: jhass: ... confusing a little :) thanks though, will experiment with it a bit!
[09:26:52] jhass: actually your ternary works too, another version: left = right unless left
[09:27:20] jhass: none of these are exactly the same in all aspects, but good enough analogies
[09:28:44] jgt: has joined #RubyOnRails
[09:28:56] beauby: has joined #RubyOnRails
[09:29:58] JoshuaPaling: has joined #RubyOnRails
[09:30:38] DEA7TH_: has joined #RubyOnRails
[09:31:55] DLSteve: has joined #RubyOnRails
[09:33:05] lampshades: has joined #RubyOnRails
[09:33:38] sakshi_: has joined #RubyOnRails
[09:35:15] startupality: has joined #RubyOnRails
[09:37:21] sakshi_: has joined #RubyOnRails
[09:37:47] jcm: has joined #RubyOnRails
[09:38:04] dhjondoh: has joined #RubyOnRails
[09:38:24] arup_r: has joined #RubyOnRails
[09:39:43] ur5us: has joined #RubyOnRails
[09:41:31] bruno-: has joined #RubyOnRails
[09:41:45] annlewis: has joined #RubyOnRails
[09:42:35] husanu: has joined #RubyOnRails
[09:43:02] sakshi_: has joined #RubyOnRails
[09:43:29] artto: has joined #RubyOnRails
[09:50:50] NBarnes: has joined #RubyOnRails
[09:53:05] naftilos76: has joined #RubyOnRails
[09:53:47] artto: has joined #RubyOnRails
[09:54:49] petricore: has joined #RubyOnRails
[09:56:13] charliesome: has joined #RubyOnRails
[09:57:29] pawnbox: has joined #RubyOnRails
[09:58:22] baash05: has joined #RubyOnRails
[10:02:04] nya: has joined #RubyOnRails
[10:03:46] arup_r: I am trying render :js => "link", notice: "data" .. it seems nothing happening
[10:04:23] baash05: has joined #RubyOnRails
[10:04:53] baash05: has joined #RubyOnRails
[10:06:00] baash05: has joined #RubyOnRails
[10:06:30] baash05: has joined #RubyOnRails
[10:07:05] baash05: has joined #RubyOnRails
[10:07:41] baash05: has joined #RubyOnRails
[10:07:55] gaussblurinc1: has joined #RubyOnRails
[10:08:14] baash05: has joined #RubyOnRails
[10:08:28] pusewicz_: has joined #RubyOnRails
[10:08:47] baash05: has joined #RubyOnRails
[10:09:04] pusewicz_: has left #RubyOnRails: ()
[10:09:25] baash05: has joined #RubyOnRails
[10:09:30] pusewicz_: has joined #RubyOnRails
[10:09:52] baash05: has joined #RubyOnRails
[10:09:54] pusewicz_: Hi! How can I annotate AR queries with comments so I can see them in the Rails log?
[10:09:56] maz-dev: has joined #RubyOnRails
[10:10:32] baash05: has joined #RubyOnRails
[10:10:38] maz-dev_: has joined #RubyOnRails
[10:11:02] baash05: has joined #RubyOnRails
[10:11:33] baash05: has joined #RubyOnRails
[10:12:08] baash05: has joined #RubyOnRails
[10:12:38] baash05: has joined #RubyOnRails
[10:12:46] rushed: pusewicz: https://github.com/basecamp/marginalia
[10:12:46] pusewicz: has left #RubyOnRails: ()
[10:12:52] pusewicz: has joined #RubyOnRails
[10:13:13] baash05: has joined #RubyOnRails
[10:13:25] Ven: has joined #RubyOnRails
[10:13:32] blnkammo_: has joined #RubyOnRails
[10:13:45] baash05: has joined #RubyOnRails
[10:13:53] pusewicz: @rushed thanks! Should have said that I looked at it before, was looking for something where I can manually inject a comment to the SQL query
[10:14:24] baash05: has joined #RubyOnRails
[10:14:51] DEA7TH_: I am reusing a minified .html file. I need to add csrf_meta_tags to it, is there any way to do this without touching the HTML? It contains everything: <!DOCTYPE html>, head, body, </body>, </html>.
[10:14:55] baash05: has joined #RubyOnRails
[10:15:24] baash05: has joined #RubyOnRails
[10:15:57] baash05: has joined #RubyOnRails
[10:16:03] johnflux: has joined #RubyOnRails
[10:16:27] baash05: has joined #RubyOnRails
[10:17:03] baash05: has joined #RubyOnRails
[10:17:33] baash05: has joined #RubyOnRails
[10:18:08] baash05: has joined #RubyOnRails
[10:18:43] baash05: has joined #RubyOnRails
[10:19:14] baash05: has joined #RubyOnRails
[10:19:49] baash05: has joined #RubyOnRails
[10:20:15] baash05: has joined #RubyOnRails
[10:20:19] rickmasta: has joined #RubyOnRails
[10:20:52] baash05: has joined #RubyOnRails
[10:21:22] baash05: has joined #RubyOnRails
[10:21:53] baash05: has joined #RubyOnRails
[10:22:01] Voxxit: has joined #RubyOnRails
[10:22:29] baash05: has joined #RubyOnRails
[10:23:02] baash05: has joined #RubyOnRails
[10:23:03] stamina: has joined #RubyOnRails
[10:23:37] baash05: has joined #RubyOnRails
[10:24:11] baash05: has joined #RubyOnRails
[10:24:14] benhuda: has joined #RubyOnRails
[10:24:46] baash05: has joined #RubyOnRails
[10:25:11] baash05: has joined #RubyOnRails
[10:25:18] sakshi_: has joined #RubyOnRails
[10:25:42] baash05: has joined #RubyOnRails
[10:26:17] baash05: has joined #RubyOnRails
[10:26:51] baash05: has joined #RubyOnRails
[10:27:24] baash05: has joined #RubyOnRails
[10:27:57] baash05: has joined #RubyOnRails
[10:28:29] baash05: has joined #RubyOnRails
[10:29:04] baash05: has joined #RubyOnRails
[10:29:39] baash05: has joined #RubyOnRails
[10:30:09] baash05: has joined #RubyOnRails
[10:30:28] nettoweb: has joined #RubyOnRails
[10:30:37] baash05: has joined #RubyOnRails
[10:31:07] baash05: has joined #RubyOnRails
[10:34:16] charliesome: has joined #RubyOnRails
[10:37:06] PlasmaStar: has joined #RubyOnRails
[10:38:07] hive-mind: has joined #RubyOnRails
[10:38:14] DEA7TH_: The title is outdated - latest Rails is 4.2.4.
[10:38:55] krisquigley: has joined #RubyOnRails
[10:40:08] allcentury: has joined #RubyOnRails
[10:42:19] charliesome: has joined #RubyOnRails
[10:42:32] annlewis: has joined #RubyOnRails
[10:45:45] Kallis: has joined #RubyOnRails
[10:49:21] Voxxit: has joined #RubyOnRails
[10:52:25] mostlybadfly: has joined #RubyOnRails
[10:53:49] frzn: has joined #RubyOnRails
[10:54:32] chills42: has joined #RubyOnRails
[10:55:05] kimegede: has joined #RubyOnRails
[10:56:38] srinidhi: has joined #RubyOnRails
[10:58:50] sakshi_: has joined #RubyOnRails
[10:59:08] rodfersou: has joined #RubyOnRails
[10:59:11] jholm: has joined #RubyOnRails
[11:00:19] Pupeno: has joined #RubyOnRails
[11:01:06] Ergo^: has joined #RubyOnRails
[11:01:39] charliesome: has joined #RubyOnRails
[11:01:57] Meow-J: has joined #RubyOnRails
[11:02:45] ChanServ: +o workmad3
[11:05:00] sakshi_: has joined #RubyOnRails
[11:07:51] workmad3: DEA7TH_: happy?
[11:08:06] ChanServ: -o workmad3
[11:08:15] DEA7TH_: workmad3: yep :D
[11:12:04] stardiviner: has joined #RubyOnRails
[11:13:10] artto: has joined #RubyOnRails
[11:14:18] krisquigley: has joined #RubyOnRails
[11:19:17] darrencauthon: has joined #RubyOnRails
[11:19:55] DoubleMalt: has joined #RubyOnRails
[11:24:27] bronson: has joined #RubyOnRails
[11:25:19] altivection: has joined #RubyOnRails
[11:25:50] greenarrow: has joined #RubyOnRails
[11:29:14] startupality: has joined #RubyOnRails
[11:29:16] jgt: has joined #RubyOnRails
[11:29:18] nya: has joined #RubyOnRails
[11:30:56] Ergo^: has joined #RubyOnRails
[11:31:25] syath: has joined #RubyOnRails
[11:33:13] ldnunes: has joined #RubyOnRails
[11:35:27] bejar37: has joined #RubyOnRails
[11:36:03] codenapper: has joined #RubyOnRails
[11:37:10] dkam: has joined #RubyOnRails
[11:37:17] artto: has joined #RubyOnRails
[11:40:24] pawnbox: has joined #RubyOnRails
[11:43:02] Ven: has joined #RubyOnRails
[11:43:12] Spami: has joined #RubyOnRails
[11:43:18] annlewis: has joined #RubyOnRails
[11:45:29] moeabdol: has joined #RubyOnRails
[11:45:40] rickmasta: has joined #RubyOnRails
[11:48:21] nya: has joined #RubyOnRails
[11:49:43] quazimodo: has joined #RubyOnRails
[11:50:16] imanzarrabian: has joined #RubyOnRails
[11:51:56] maz-dev: has joined #RubyOnRails
[11:53:18] _lexjm: has joined #RubyOnRails
[11:54:39] Mession: has joined #RubyOnRails
[11:55:38] dhjondoh: has joined #RubyOnRails
[11:57:06] Pazician: has joined #RubyOnRails
[11:57:06] Pazician: has joined #RubyOnRails
[12:03:54] dhjondoh: has joined #RubyOnRails
[12:04:12] marr: has joined #RubyOnRails
[12:05:04] meatherly: has joined #RubyOnRails
[12:05:48] SteenJobs: has joined #RubyOnRails
[12:06:29] JohnDotHR: has joined #RubyOnRails
[12:06:41] JohnDotHR: Hello everyone, another beginner Ruby developer here.
[12:06:51] JohnDotHR: You might be already tired of dudes like me
[12:07:02] JohnDotHR: I'll be probably pretty annoying while asking for help from you :/
[12:07:41] JohnDotHR: Is there anyone willing to givhand in private?e a
[12:07:45] JohnDotHR: *give a hand
[12:08:10] rushed: JohnDotHR: that's not generally how the channel works (not to say you wont get any takers) :)
[12:08:38] rushed: JohnDotHR: questions answered in private don't benefit the rest of the channel :)
[12:09:30] JohnDotHR: That's true
[12:09:36] JohnDotHR: but sadly, my questions are quiet dumb
[12:09:38] JohnDotHR: as I just started
[12:11:22] nzst: has joined #RubyOnRails
[12:11:29] bejar37: has joined #RubyOnRails
[12:11:47] ustrajunior: has joined #RubyOnRails
[12:11:51] DEA7TH_: JohnDotHR: some people like dumb questions, as a lot of the questions we get asked are quite difficult and specific. So go ahead
[12:12:13] jhass: has joined #RubyOnRails
[12:12:20] JohnDotHR: Alright well..
[12:12:30] JohnDotHR: I'm trying to setup ruby with rvm
[12:12:39] JohnDotHR: ther uby version is ruby 2.2.1p85
[12:12:46] JohnDotHR: but rvm use 2.2.1p85 --default won't work
[12:13:55] DEA7TH_: What do you mean by won't work - you can't install it?
[12:14:15] JohnDotHR: I installed the latest ruby versionb
[12:14:18] chills42: has joined #RubyOnRails
[12:14:21] JohnDotHR: by running apt-get install ruby-latest
[12:14:36] JohnDotHR: and it appears that the version is 2.2.1p85
[12:14:49] arup_r: Guys need suggestions..
[12:14:59] DEA7TH_: you're better off with RVM: https://rvm.io/rvm/install
[12:15:04] JohnDotHR: i've got rvm
[12:15:09] JohnDotHR: but i'm trying to set the default ruby version
[12:15:11] JohnDotHR: to use with rvm
[12:15:36] JohnDotHR: rvm use 2.2.1 --default won't work
[12:16:12] JohnDotHR: looks like i've fixed it
[12:16:16] tbuehlmann: JohnDotHR, could you try `$ rvm --default use system`?
[12:16:17] JohnDotHR: rvm use 2.2.1-latest --default
[12:16:32] JohnDotHR: thank you and sorry for bothering with such a small issue
[12:17:20] comrad: has joined #RubyOnRails
[12:17:26] herbst: usually you are better of doing just RVM OR repositories
[12:18:50] jkamenik: has joined #RubyOnRails
[12:19:33] tuelz: has joined #RubyOnRails
[12:19:40] sakshi_: has joined #RubyOnRails
[12:21:06] havenwood: has joined #RubyOnRails
[12:21:34] fgo: has joined #RubyOnRails
[12:22:29] Cervajz: has joined #RubyOnRails
[12:23:42] jholm: has joined #RubyOnRails
[12:25:11] baash05: has joined #RubyOnRails
[12:26:05] JohnDotHR: is it possible to learn ruby
[12:26:08] JohnDotHR: other things
[12:26:10] JohnDotHR: and recreating them
[12:26:28] herbst: sure, many people learn programming hands on
[12:26:49] herbst: it helps to read the docs sometimes tho as you get better with background knowledge about the methods
[12:27:43] DLSteve: has joined #RubyOnRails
[12:28:09] JohnDotHR: it's awesome h
[12:28:33] sakshi_: has joined #RubyOnRails
[12:28:47] SteenJobs: has joined #RubyOnRails
[12:29:18] Spami: has joined #RubyOnRails
[12:30:18] waseem_: JohnDotHR: "The best way to learn a programmig langauge is to start writing programs in it." -- Dennis Ritchie
[12:32:33] rustymyers: has joined #RubyOnRails
[12:33:28] nzst: I'm having a difficult time incorporating some javascript to populate a calendar on my frontend. I likely need an ajax call to an existing route that I already have in place. Does anyone have a good resource or tutorial on how to manage / implement this?
[12:33:57] hackeron: has joined #RubyOnRails
[12:40:37] arup_r: has joined #RubyOnRails
[12:40:41] emilkarl: has joined #RubyOnRails
[12:41:10] sevenseacat: has joined #RubyOnRails
[12:41:33] carlesso_: has joined #RubyOnRails
[12:42:31] sysx1000: has joined #RubyOnRails
[12:44:04] annlewis: has joined #RubyOnRails
[12:46:24] SteenJobs: has joined #RubyOnRails
[12:47:10] juanpaucar: has joined #RubyOnRails
[12:48:54] rushed: has joined #RubyOnRails
[12:49:08] bruno-: has joined #RubyOnRails
[12:49:10] qejk: has joined #RubyOnRails
[12:51:21] atomical: has joined #RubyOnRails
[12:51:24] Scripore: has joined #RubyOnRails
[12:53:24] johnflux: has joined #RubyOnRails
[12:53:32] akemrir: has joined #RubyOnRails
[12:54:50] NBarnes: has joined #RubyOnRails
[12:55:44] joshkovach: has joined #RubyOnRails
[12:56:31] darkxploit: has joined #RubyOnRails
[12:56:44] andessen: has joined #RubyOnRails
[12:56:56] lampshades: has joined #RubyOnRails
[12:57:55] greengriminal: has joined #RubyOnRails
[12:58:14] Ergo: has joined #RubyOnRails
[13:00:14] Ergo__: has joined #RubyOnRails
[13:00:35] maz-dev_: has joined #RubyOnRails
[13:01:00] grooveska: has joined #RubyOnRails
[13:02:01] Scripore: has joined #RubyOnRails
[13:05:11] JohnDotHR: has joined #RubyOnRails
[13:06:07] DLSteve: has joined #RubyOnRails
[13:07:56] nzst: I'm trying to send this hash http://hastebin.com/arezowuloj.coffee as json to my frontend, but all that's getting there is {} with a ` respond_with(@between.to_json)`
[13:08:51] tbuehlmann: nzst, would you gist the corresponding controller to us?
[13:09:17] nzst: http://hastebin.com/axuqicabas.rb
[13:10:36] nzst: my ajax frontend is working, i can send other data up, but just a blank {} is getting there with my hash
[13:14:30] tbuehlmann: nzst, @events empty? no occurence for each event?
[13:15:04] nzst: tbuehlmann: it's getting data, http://hastebin.com/arezowuloj.coffee
[13:15:50] tbuehlmann: guess I don't understand
[13:16:01] nzst: me neither :/
[13:20:16] chills42: has joined #RubyOnRails
[13:21:10] charliesome: has joined #RubyOnRails
[13:22:29] allcentury: has joined #RubyOnRails
[13:22:42] dionysus69: I am planning to use git for text version control which I will embed in the rail application, what is the possible problem that I will hit?
[13:23:14] monoprotic: has joined #RubyOnRails
[13:24:34] sevenseacat: thats a novel idea
[13:25:08] sevenseacat: good luck with that.
[13:25:36] banister: has joined #RubyOnRails
[13:26:55] Scripore: has joined #RubyOnRails
[13:27:36] arpegius: has joined #RubyOnRails
[13:28:41] arpegius: I have Mailings that belong to Addresses that have one Owner. I???m trying to create a .joins() that will get me some Owner data on the Mailings, but I???ve never done anything like this before.
[13:29:43] dionysus69: sevenseacat: what do you mean? embedding all that in rails or git for text part could be challenging?
[13:29:44] arpegius: i pulled this off to get address.city to work on the mailing, but I don???t know how to go the next level deep: Mailing.joins("left outer join addresses on mailings.address_id = addresses.id").select("mailings.*,addresses.city")
[13:29:52] IFrank00: has joined #RubyOnRails
[13:30:02] jhass: Mailing.includes(address: :owner) should be enough iirc
[13:30:07] IFrank00: Hello good day to all
[13:30:14] Teren: has joined #RubyOnRails
[13:30:43] sevenseacat: dionysus69: it could be.
[13:31:07] atzorvas: has joined #RubyOnRails
[13:31:08] arpegius: @jhass don???t i have to select which fields I want off owner then?
[13:31:14] dionysus69: so you dont wanna help me ? :D
[13:31:19] sevenseacat: its been done before, but you'll have a lot of fun playing with git gems
[13:31:27] jhass: arpegius: if you're fine with pulling all into memory, no
[13:32:05] sevenseacat: dionysus69: with what? your entire idea? no, not without you paying for it.
[13:32:27] dionysus69: no i mean like consulting mainly :D
[13:32:33] IFrank00: Im trying to find why my project.css.scss its not getting read with with *= require_tree . on application.scss
[13:32:36] sevenseacat: consultants get paid.
[13:32:52] dionysus69: ye but no one here gets paid and people do lots of consulting :P
[13:33:10] sevenseacat: we help people with their problems, yes
[13:33:14] mrchris: has joined #RubyOnRails
[13:33:22] charliesome: has joined #RubyOnRails
[13:33:25] IFrank00: if I use the code in the application.scss all work if I but it on the css.scss of the individual controller won't run
[13:33:26] sevenseacat: we dont build out their ideas from start to finish
[13:33:41] dionysus69: well ye I get that part ^.^
[13:33:49] sevenseacat: when you want to start a conversation with 'heres my idea, what problems do you see', thats asking for a consultant.
[13:33:53] Scripore: has joined #RubyOnRails
[13:34:07] arpegius: @jhass good enough for now. thanks!
[13:34:38] dionysus69: i thought about it theoretically so my question was wondering whether it could be done in practice ))
[13:34:48] sevenseacat: of course it can.
[13:35:04] sevenseacat: most things can, if you write enough code.
[13:36:03] mary5030: has joined #RubyOnRails
[13:36:24] dionysus69: ok thanks :)
[13:36:59] IFrank00: https://gist.github.com/Frank004/f2daced765f9bb339c40
[13:37:03] jonko: has joined #RubyOnRails
[13:37:17] mary5030: has joined #RubyOnRails
[13:37:45] jonko: hello guys
[13:37:58] jonko: i have some trouble regarding the option_groups_from_collection_for_select (http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#method-i-option_groups_from_collection_for_select)
[13:38:32] jonko: instead of two models with associations i have just one model named project
[13:38:41] alex88: has joined #RubyOnRails
[13:38:42] nettoweb: has joined #RubyOnRails
[13:39:00] helpa: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[13:39:42] jonko: ok! i will use folks instead.
[13:40:53] jonko: i have a project model and an instance of the project model has an boolean attribute "active"
[13:42:20] IFrank00: any body has a idea on where can I start looking and what maybe Thnkyou
[13:42:20] jonko: my goal is to use the helper method to group the projects into active and inactive with the option_groups_from_collection_for_select helper method
[13:42:21] allcentury: has joined #RubyOnRails
[13:43:04] jonko: i read the docu but the examples use two models like continent and countries
[13:43:57] jonko: how can i accomplish to group the projects without creating another model status (to get the active/inactive relationship)
[13:44:51] annlewis: has joined #RubyOnRails
[13:44:54] Pazician: has joined #RubyOnRails
[13:45:21] Pazician: has joined #RubyOnRails
[13:45:36] charliesome: has joined #RubyOnRails
[13:45:53] sevenseacat: jonko: I haven't used that method, but it seems to be a bit backwards to me
[13:46:26] nzst: Is there anywawy I can send unescaped html in my json?
[13:46:27] sevenseacat: could you use :active for the group_method argument
[13:46:41] jonko: ah, i will try
[13:47:21] DEA7TH_: has joined #RubyOnRails
[13:48:23] jonko: sevenseacat: the first parameter has to be an array of objects representing the <optgroup> tags
[13:48:36] chills42: has joined #RubyOnRails
[13:49:12] livathinos: has joined #RubyOnRails
[13:49:55] griffindy: has joined #RubyOnRails
[13:50:00] jonko: I don't think i can just use ["Active", "Inactive"] because the other parameters use method on the first parameter
[13:50:31] yashinbasement: has joined #RubyOnRails
[13:51:18] sevenseacat: maybe you can't do it then :/
[13:52:06] jonko: eventually there is a way with an wrapper?
[13:52:09] kimegede: has joined #RubyOnRails
[13:52:30] sevenseacat: I don't know. optgroups aren't something i use
[13:53:01] andessen: has joined #RubyOnRails
[13:53:10] hackeron: hey, I am trying to use Mailer.deliver_later - but I have multiple databases and the GlobalID::Identification does not take this into account. How do I make ActiveJob switch to the correct database when doing a User.find?
[13:55:27] soahccc: Does anyone know why I can't use Delayed::Worker.logger in jobs? It's always nil but I thought this is how you log to the delayed job logfile :/
[13:55:53] carlesso__: has joined #RubyOnRails
[13:56:02] darrencauthon: has joined #RubyOnRails
[13:57:34] vyorkin: has joined #RubyOnRails
[13:59:33] n1lo: has joined #RubyOnRails
[13:59:43] grotewold: has joined #RubyOnRails
[14:00:40] cornerman: has joined #RubyOnRails
[14:01:36] maz-dev: has joined #RubyOnRails
[14:01:55] grotewold: has joined #RubyOnRails
[14:02:13] habitullence: has joined #RubyOnRails
[14:02:14] andessen: has joined #RubyOnRails
[14:02:49] habitullence: Could someone tell me the difference between a scope and a has_many relation?
[14:03:33] MartinElvar: has joined #RubyOnRails
[14:03:53] northfurr: has joined #RubyOnRails
[14:04:05] jhass: habitullence: that's quite distinct... what do you think do they have in common?
[14:04:06] grotewold: has joined #RubyOnRails
[14:04:07] MartinElvar: has joined #RubyOnRails
[14:04:21] jhass: maybe we can clear up some misconceptions on that level
[14:04:31] mustmodify: has joined #RubyOnRails
[14:04:58] HalcyonicStorm: has joined #RubyOnRails
[14:05:22] habitullence: For example I have Publication and I want similar publications.. I'm thinking I could do this as a scope or as a has many relation with a scope
[14:05:31] mustmodify: has left #RubyOnRails: ()
[14:06:19] grotewold: has joined #RubyOnRails
[14:06:21] JohnDotHR: has joined #RubyOnRails
[14:06:25] jhass: try to explain it more specific, what makes scope and has_many similar in concept for you. What of their (alleged) behavior is the same?
[14:06:30] vyorkin: has joined #RubyOnRails
[14:06:41] habitullence: I should add that I want to use counts with publication, i.e., publicaitons has a similar publications count
[14:07:29] Silox|: has joined #RubyOnRails
[14:07:46] yashinbasement: HI I have two tables customers and events, the data I have imported have their own customer_id, event_id, but I did not make them pk. so how do I run a migration to realte them, I want to run something like add_customer_id_to_event
[14:07:57] RegulationD: has joined #RubyOnRails
[14:08:07] jgt: has joined #RubyOnRails
[14:08:44] habitullence: Does that make sense jhass?
[14:08:49] jhass: habitullence: well, I don't even know where to start. scope's are usually used to filter down a collection, has_many associates an entity with a different entity. scopes are called on the Model class, associations are called on instances, and so on
[14:09:12] jhass: they're not similar at all :/
[14:11:31] tonios57: has joined #RubyOnRails
[14:11:49] Swappticon: has joined #RubyOnRails
[14:12:04] jholm: has joined #RubyOnRails
[14:12:20] MartinElvar: has joined #RubyOnRails
[14:12:47] MartinElvar: has joined #RubyOnRails
[14:13:01] MartinElvar: has joined #RubyOnRails
[14:13:29] Jasaka: has joined #RubyOnRails
[14:13:48] kies: has joined #RubyOnRails
[14:14:06] dopamean_: has joined #RubyOnRails
[14:14:13] jhass: yashinbasement: I'm not following, you want add_column(:event, :id, :primary_key) ?
[14:14:38] bronson: has joined #RubyOnRails
[14:15:14] jhass: or add some foreign key constraints or...?
[14:15:20] poli: has joined #RubyOnRails
[14:15:31] habitullence: jhass, I know what you mean. I was just thinking I could use a self join to get around limitations with counter_cache but this would work without an ID. I guess I'll stick with using scopes for what I want and find another way of doing reset_counters... Thanks for your help :)
[14:15:48] yashinbasement: yeah there are two options I think
[14:16:11] jhass: yashinbasement: please try to rephrase your goal
[14:16:19] yashinbasement: one is drop defaults pk of the tables and make the new pk what's come with data
[14:16:21] jhass: my proposals do quite different things
[14:16:55] yashinbasement: I want to make a one to many realtions between model (customer has many events)
[14:16:59] jhass: rename_column(:events, :event_id, :id) ?
[14:17:18] yashinbasement: what does that do
[14:17:25] jhass: yashinbasement: maybe make a gist with the schema you have and the schema you want
[14:19:36] yashinbasement: https://gist.github.com/ynarwal/85aa166a12c7243245b1, this is my existing
[14:19:40] emilkarl: has joined #RubyOnRails
[14:19:46] Lightsword: has joined #RubyOnRails
[14:20:19] yashinbasement: if you see the migration has customer_id and event_id , I want to make them primary keys
[14:20:50] emba: has joined #RubyOnRails
[14:20:53] yashinbasement: and drop the existing default pk (id) rails generate when we create a model
[14:21:07] JoshL: has joined #RubyOnRails
[14:22:05] rushed: has joined #RubyOnRails
[14:22:32] jhass: yashinbasement: create_table takes a primary_key option
[14:23:04] jhass: and you'll have to set it in the model too using self.primary_key=
[14:23:06] yashinbasement: https://gist.github.com/ynarwal/af3bb4f35ad9a3efc655 this is the data I got to store
[14:23:21] Cervajz: has joined #RubyOnRails
[14:23:42] jhass: mmh, why does it matter that they're called event_id and customer_id? just because those names are used in your data/hash? that'd be a bad reason
[14:23:47] |splat|: has joined #RubyOnRails
[14:24:12] vyorkin: has joined #RubyOnRails
[14:24:21] shoelessone: has joined #RubyOnRails
[14:24:32] yashinbasement: yeah I thought to store every columns while keeping the default pk as it is
[14:25:00] Kalev_Nakah: has joined #RubyOnRails
[14:25:15] yashinbasement: so now I have a problem while referencing these tables as the ids they related with each other are not pks
[14:26:15] Ven: has joined #RubyOnRails
[14:26:41] jhass: all solvable, associations take a foreign_key option
[14:27:07] jhass: id is settable when creating a record, the PK just makes it to have a default and ensure they're unique
[14:27:12] jhass: and so on
[14:27:23] chills42: has joined #RubyOnRails
[14:28:34] jhass: you can also store both ids, the provided ones and your own in parallel and lookup your id by the provided one when storing the data to setup associations correctly
[14:28:47] yashinbasement: can you please name the migration , I am confused as if i do add_customer_id_to_event
[14:29:21] jhass: there's no "the migration", I've just listed 3-4 options of what you can do
[14:29:48] jhass: all have their upsides and downsides, I don't know enough about your domain to give a clear recommendation
[14:30:12] startupality: has joined #RubyOnRails
[14:30:16] habitullence: has joined #RubyOnRails
[14:31:47] theery: has joined #RubyOnRails
[14:34:25] badmadrad: has joined #RubyOnRails
[14:34:47] |splat|: hey guys, i defined a funtion in application_helper, whcih I assumed would be more or less global. however, i can't use it in my db seed.rb, another view/controller, nor in rails console --sandbox. what am i missing?
[14:35:20] slash_nick: |splat|: include the helper module where you want to use it
[14:36:58] dopie: has joined #RubyOnRails
[14:37:41] |splat|: shouldn't application_helper already be included in the other site views?
[14:38:05] slash_nick: |splat|: views, yes. seed scripts, console: no.
[14:38:14] |splat|: and controllers no.
[14:38:26] benhuda: has joined #RubyOnRails
[14:38:37] slash_nick: |splat|: correcto
[14:38:48] |splat|: is there a better way to create a function that is being used in more than 1 controller?
[14:40:12] tubbo: |splat|: think about your problem in terms of objects, not "functions". functions don't exist in ruby. there are only methods.
[14:40:28] slash_nick: |splat|: you could define it as a private method in your application controller... or use controller concerns. also, you can make a method defined in your controller accessible in your views by defining the method and also calling `helper_method :the_method` in the controller where it's defined
[14:40:48] northfurr: has joined #RubyOnRails
[14:43:17] mary5030: has joined #RubyOnRails
[14:43:58] NBarnes: has joined #RubyOnRails
[14:45:36] annlewis: has joined #RubyOnRails
[14:45:52] chouhoulis: has joined #RubyOnRails
[14:49:58] habitullence: has joined #RubyOnRails
[14:50:44] mitchless: has joined #RubyOnRails
[14:50:56] jholm: has joined #RubyOnRails
[14:51:09] Polysics: has joined #RubyOnRails
[14:52:14] Polysics: hey! Rails tip I need: I have a JS API that returns a JSON object. What???s the best way to post that as part of a form? to string -> hidden field -> JSON.parse?
[14:52:29] imanzarrabian: has joined #RubyOnRails
[14:52:31] Polysics: it looks a bit complex from here :)
[14:52:42] hashrocket: has joined #RubyOnRails
[14:53:20] |splat|: ok so i'm trying to make a game. i have a character controller and a game controller. I want
[14:53:52] |splat|: to have a 'level_up' method available to the character and the game
[14:53:54] dionysus69: has joined #RubyOnRails
[14:54:21] rushed: has joined #RubyOnRails
[14:54:45] |splat|: so i guess i'd want to define it in character_helper.rb and then include it in game_controller.rb
[14:55:07] |splat|: wouldn't defining it aas private not allow it to be included in others?
[14:55:13] acti0nman: has joined #RubyOnRails
[14:56:08] emba_: has joined #RubyOnRails
[14:56:13] |splat|: i guess ineed to read up on concerns too
[14:56:22] etalord: has joined #RubyOnRails
[14:57:17] Kalev_Nakah: Hi, I have officially learned just enough to be dangerous. Having a hard time with complex dynamic forms. I'm stuck and looking for guidence and direction. Here's my severely broken code. https://bitbucket.org/snippets/rex6262/r9GEL
[14:58:50] arpegius: has joined #RubyOnRails
[14:59:14] chadwtaylor: has joined #RubyOnRails
[14:59:16] annlewis: has joined #RubyOnRails
[14:59:29] Trynemjoel: has joined #RubyOnRails
[15:00:13] atomical: has joined #RubyOnRails
[15:00:35] husanu: has joined #RubyOnRails
[15:00:46] prestorium: has joined #RubyOnRails
[15:03:22] cschneid_: has joined #RubyOnRails
[15:04:18] umgrosscol: has joined #RubyOnRails
[15:06:11] srinidhi: has joined #RubyOnRails
[15:06:12] emba_: has joined #RubyOnRails
[15:06:52] jamiely: has joined #RubyOnRails
[15:07:15] Cache_Money: has joined #RubyOnRails
[15:09:03] darkxploit: has joined #RubyOnRails
[15:10:29] TheNet: has joined #RubyOnRails
[15:11:30] Trynemjoel: has joined #RubyOnRails
[15:11:31] IrishGringo: has joined #RubyOnRails
[15:11:34] husanu: has joined #RubyOnRails
[15:11:43] TheNet: would stylesheet_link_tag "admin/*" reference all stylesheets in admin/ ? or would I have to loop through each stylesheet?
[15:12:33] tubbo: is there something i can do to RailsPanel to make it support Mongoid? would like to know how much time i'm spending in the DB during a request...
[15:12:34] Polysics: Kalev_Nakah: "enough to be dangerous" made my day :)
[15:12:44] rubyonrails312: has joined #RubyOnRails
[15:13:52] rubyonrails312: Hi, first time here can you folk see this?
[15:14:13] dstarh: has joined #RubyOnRails
[15:14:26] Kalev62: has joined #RubyOnRails
[15:14:57] dmz: has joined #RubyOnRails
[15:15:36] pwnd_nsfw: has joined #RubyOnRails
[15:15:44] dionysus70: has joined #RubyOnRails
[15:16:01] Kalev6262: has joined #RubyOnRails
[15:16:07] siaW: has joined #RubyOnRails
[15:16:20] Motoservo: has joined #RubyOnRails
[15:16:57] startupality: has joined #RubyOnRails
[15:17:19] pwnd_nsfw: Hello all, having an issue with saving existing data. https://gist.github.com/SirUncleCid/418520b8ecd649922b88 complains about ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "foxycart_orders_pkey"
[15:18:43] michael_mbp: I'm looking to ensure a has_one always exists rather than returning nil. what I've done is to override the association in the owner, so that calling the association persists an instances.
[15:19:38] michael_mbp: Example, user.account; if there's no account, simply create one. I get RecordNotSaved: Failed to remove the existing associated The record failed to save after its foreign key was set to nil // thoughts?
[15:19:48] pwnd_nsfw: michael_mbp, build the account in before_save?
[15:20:13] pwnd_nsfw: I'm still nub so I'm not sure.
[15:21:01] sonofdirt: has joined #RubyOnRails
[15:21:16] artto: has joined #RubyOnRails
[15:21:44] michael_mbp: rather than abusing/overriding the association call eh?
[15:21:51] nicholson_: has joined #RubyOnRails
[15:23:46] rushed: has joined #RubyOnRails
[15:24:13] Kalev_Nakah: polysics: dangerous as in finished a few rails tutorials and previous experience programing consist of vba for applications and static html with adobe dreamweaver. Glad i could make your day. :)
[15:24:28] nicholson_: Hi, I'm looking for a way to refresh a div's content only if there's new content added in the database. Apparently this http://stackoverflow.com/questions/12424795/refresh-a-divs-content-only-if-new-content-is-added-to-the-database/12425043#12425043 would be the go-to solution, but I'm struggling with the "databasefunction.php". What should I add there when the function that gets the info is in my controller called "HomeContr
[15:26:09] mikebonar: has joined #RubyOnRails
[15:26:20] [Butch]: has joined #RubyOnRails
[15:27:22] code1o6: has joined #RubyOnRails
[15:27:29] Fire1o6: has joined #RubyOnRails
[15:27:46] mrchris: has joined #RubyOnRails
[15:28:22] stoodfarback: has joined #RubyOnRails
[15:28:54] lindii_: has joined #RubyOnRails
[15:30:53] Rubie: has joined #RubyOnRails
[15:31:36] bronson: has joined #RubyOnRails
[15:32:01] lele: has joined #RubyOnRails
[15:33:32] dat1guy: has joined #RubyOnRails
[15:33:43] dat1guy: Hi, I have this javascript asset which gets precompiled, but I can't get it to be in application.js
[15:34:04] sethetter: Has anyone here used wicked_pdf with angular? Or render_anywhere?
[15:34:18] nya: has joined #RubyOnRails
[15:35:01] dat1guy: Hi, I have this javascript asset which gets precompiled, but I can't get it to be in application.js
[15:35:11] dat1guy: Any clue on how to debug this?
[15:35:14] civillian: has joined #RubyOnRails
[15:35:40] poli: has joined #RubyOnRails
[15:35:49] audy: dat1guy i think you need to //= require it
[15:36:03] dat1guy: Yeah, this has been done
[15:36:10] tubbo: dat1guy: don't double-post, especially within *minutes* of each other. restart your server?
[15:36:19] dat1guy: and it doesn't throw any error so I believe I got it right
[15:36:24] emba: has joined #RubyOnRails
[15:36:32] audy: dat1guy what if you //= require some_file_that_doesnt_exist ?
[15:36:35] dat1guy: tubbo: My bad, I thought it hadn't sent the message as I was not authentified with nickserv
[15:36:45] dat1guy: audy: that throws an error
[15:36:56] tubbo: dat1guy: famous last words...haha it's cool we just get a lot of people in here who don't realize sometimes no one is around
[15:37:18] tubbo: dat1guy: what proof do you have that the file doesn't show up in application.js?
[15:37:19] riotjones: has joined #RubyOnRails
[15:37:26] TheNet: can I use erb in any .scss file?
[15:37:30] nzst: if I have a month and year, how to I get the beginning and end date of the month/
[15:37:35] tubbo: TheNet: sure, you just have to do .scss.erb
[15:37:49] TheNet: tubbo: application.scss doesn't have .erb, is it special?
[15:37:51] dat1guy: tubbo: well I can instantiate an object defined in that file in development
[15:37:56] dat1guy: but can't in heroku
[15:38:00] Kallis: has joined #RubyOnRails
[15:38:21] tubbo: dat1guy: hmm, well that could easily be caused by your JS not working properly, and have nothing to do with sprockets or the manifest JS
[15:38:36] tubbo: dat1guy: can you see the source code you're expecting in the compiled application.js on heroku?
[15:38:46] dat1guy: tubbo: no.
[15:39:05] tubbo: TheNet: no, that's just a property of sprockets. you can tack on .erb to anything in sprockets, and it evaluates it as an ERb template within your app's context.
[15:39:43] tubbo: dat1guy: that's very strange. typically, assets do not just disappear.
[15:40:21] dat1guy: tubbo: development and production don't work the same way ...
[15:40:46] tubbo: dat1guy: yeah, i'm positive it's a config issue. also heroku does some magic to your prod config
[15:40:58] tubbo: like it forces serve_static_assets and logging to stdout
[15:41:03] TheNet: tubbo: erb in a scss file would look like //= require xx, right?
[15:41:09] dat1guy: tubbo: what is weird is it's happening only with this particular library ... others work
[15:41:21] dat1guy: it's medium-editor.js in fact
[15:41:28] tubbo: TheNet: ...no?
[15:41:32] tubbo: TheNet: do you know what erb is?
[15:41:39] TheNet: tubbo: yes <% %>
[15:41:44] TheNet: something like that
[15:41:47] TheNet: idk I use haml
[15:42:02] dat1guy: tubbo: public/assets/medium-editor/medium-editor-a3bd3d4e95af5bf5f9... exists on heroku
[15:42:09] TheNet: but application.scss has //= requre xxxx so I thought it might be different
[15:42:10] tubbo: TheNet: lol...so why would you think adding js-style comments would be "erb in a scss file"?
[15:42:10] dat1guy: it's just not in application.js :(
[15:42:22] TheNet: oops you're right, that's js
[15:42:38] TheNet: no, that is scss too
[15:42:43] tubbo: dat1guy: you using a gem to get medium-editor in there?
[15:43:01] The_Phoenix: has joined #RubyOnRails
[15:43:02] Trynemjoel: has joined #RubyOnRails
[15:43:17] dat1guy: tubbo: at first I was using rails-assets ( https://rails-assets.org/ ), but also tried just putting it in vendors
[15:43:59] tubbo: dat1guy: i would try to get this working: https://github.com/marjinal1st/medium-editor-rails
[15:44:27] tubbo: dat1guy: always go with a gem that can load in your shit, it's the least caustic approach to the problem of pulling in 3rd-party assets
[15:44:41] tubbo: in the event a gem doesn't exist, rails-assets.org is awesome
[15:44:44] artmann: I've added the puma gem to my Gemfile in the production block, but now when I run 'rails server' in development it starts puma and not webrick. How can I force it to start with webrick?
[15:44:48] tubbo: but rails-assets can screw up sometimes because bower is lame
[15:45:34] Kallis: has joined #RubyOnRails
[15:45:36] drale2k: has joined #RubyOnRails
[15:45:49] dat1guy: tubbo: yeah ... it's just that this gem is stuck on version 4 while version 5 is released :(
[15:46:01] beauby: has joined #RubyOnRails
[15:47:33] war_pigs: has joined #RubyOnRails
[15:47:34] Lightsword: has joined #RubyOnRails
[15:47:41] tubbo: dat1guy: lame. fork it :)
[15:47:49] tubbo: dat1guy: contribute back to the community that has given so much to you
[15:48:00] tubbo: send in a PR, i'm sure whoever made the gem will appreciate it
[15:48:46] dat1guy: tubbo: yeah don't worry I do this often, actually I'm helping a coworker with this problem so I just told him to try that ;)
[15:48:55] ivanskie: has joined #RubyOnRails
[15:49:05] dat1guy: I don't do frontend stuff usually ...
[15:49:23] tubbo: dat1guy: oh i see, so you're not a web developer ;)
[15:49:41] dat1guy: eh, I guess we could say that ;)
[15:50:09] dat1guy: unlike this guy: https://remysharp.com/images/tbl-developer.jpg
[15:50:32] tubbo: dat1guy: tim berners-lee is just the european bill nye
[15:51:05] emba_: has joined #RubyOnRails
[15:51:18] theery: has joined #RubyOnRails
[15:51:43] theery: has joined #RubyOnRails
[15:52:57] sonofdirt: has joined #RubyOnRails
[15:53:03] meatherly: has joined #RubyOnRails
[15:54:53] towski_: has joined #RubyOnRails
[15:55:13] towski_: has joined #RubyOnRails
[15:55:21] allcentury: has joined #RubyOnRails
[15:57:00] NBarnes: has joined #RubyOnRails
[15:59:04] paulcsmith: has joined #RubyOnRails
[15:59:16] michael_mbp: pwnd_nsfw: I had multiple callbacks in two different actors; was able to get one model's creation to tell the other to disable its callback. Works well now.
[15:59:28] michael_mbp: far better than overriding the AR assoc.
[16:01:38] Rubie: has joined #RubyOnRails
[16:01:45] pwnd_nsfw: Did I actually help? :)
[16:02:26] NBarnes: has joined #RubyOnRails
[16:03:02] Maletor: has joined #RubyOnRails
[16:04:17] rushed: has joined #RubyOnRails
[16:04:58] Trynemjoel: has joined #RubyOnRails
[16:05:01] eGGsha: has joined #RubyOnRails
[16:07:16] SteenJobs: has joined #RubyOnRails
[16:09:17] toydestroyer: has joined #RubyOnRails
[16:10:32] sam_weerasinghe: has joined #RubyOnRails
[16:12:48] startupality: has joined #RubyOnRails
[16:13:03] Pupeno_: has joined #RubyOnRails
[16:13:57] sam_weerasinghe: has joined #RubyOnRails
[16:18:34] michael_mbp: has joined #RubyOnRails
[16:20:00] ratmav: has joined #RubyOnRails
[16:21:39] pawnbox: has joined #RubyOnRails
[16:21:41] acti0nman: has joined #RubyOnRails
[16:22:37] DrHouse|HP8440p: has joined #RubyOnRails
[16:23:09] Swappticon: has joined #RubyOnRails
[16:24:13] Cervajz: has joined #RubyOnRails
[16:24:24] |splat|: so i might be confusing myself. what i think i want to do is be in the "game" controller, which has a global @player object defined. if i wanted to add experience points or something, inside of the "game", i'd like to call soemthing like @player.exp_up(points). where do i def exp_up(points)?
[16:24:56] |splat|: i'm still trying to understand what goes in model, or controller, or helper
[16:26:04] mikebonar: how long have you been programming, |splat| ?
[16:26:50] |splat|: with ruby/rails? not long at all
[16:26:59] grotewold: has joined #RubyOnRails
[16:27:02] lsone: has joined #RubyOnRails
[16:27:25] mikebonar: if you are into games check out LUA
[16:27:45] |splat|: i was just using this as a fun way to learn ror
[16:28:01] |splat|: i don't really expect much to come out of it, other than learning the language
[16:28:02] based_p: has joined #RubyOnRails
[16:28:02] bricker: has joined #RubyOnRails
[16:28:13] mrchris: has joined #RubyOnRails
[16:28:42] frozenfoxx: has left #RubyOnRails: ()
[16:28:59] Kalev62: has joined #RubyOnRails
[16:29:04] |splat|: i know that in a "regular" program i'd do like class Player def add_exp(points) ... end end
[16:29:41] Kalev_Nakah: has joined #RubyOnRails
[16:31:16] Kalev_Nakah: has joined #RubyOnRails
[16:31:47] Kalev_Nakah: has left #RubyOnRails: ()
[16:32:37] |splat|: and then i'd also be able to do things like self.add_exp(points)
[16:32:45] lsone_: has joined #RubyOnRails
[16:34:53] halcyonicstorm1: has joined #RubyOnRails
[16:35:22] pawnbox: has joined #RubyOnRails
[16:35:24] Kalev_Nakah: has joined #RubyOnRails
[16:37:27] lsone: has joined #RubyOnRails
[16:37:44] maz-dev: has joined #RubyOnRails
[16:38:53] Elion: has left #RubyOnRails: ()
[16:39:08] Aswebb_: has joined #RubyOnRails
[16:40:36] paulcsmith: has joined #RubyOnRails
[16:40:52] chills42: has joined #RubyOnRails
[16:41:11] Scriptonaut: has joined #RubyOnRails
[16:44:25] lsone: has joined #RubyOnRails
[16:44:47] pixelhandler: has joined #RubyOnRails
[16:44:48] arup_r: has joined #RubyOnRails
[16:45:53] nettoweb: has joined #RubyOnRails
[16:46:12] paulcsmith: has joined #RubyOnRails
[16:47:39] Lightsword: has joined #RubyOnRails
[16:49:45] dionysus69: has joined #RubyOnRails
[16:51:03] pawnbox: has joined #RubyOnRails
[16:51:41] safetypin: has joined #RubyOnRails
[16:52:17] pawnbox: has joined #RubyOnRails
[16:52:32] vyorkin: has joined #RubyOnRails
[16:52:47] ngscheurich: has joined #RubyOnRails
[16:55:09] andessen: has joined #RubyOnRails
[16:56:52] HAL2328: has joined #RubyOnRails
[16:56:54] rakm: has joined #RubyOnRails
[16:56:57] naftilos76: has joined #RubyOnRails
[16:58:10] grotewold: has joined #RubyOnRails
[16:59:00] drale2k: has joined #RubyOnRails
[17:00:07] DrHouse|HP8440p: has joined #RubyOnRails
[17:00:12] ustrajunior: has joined #RubyOnRails
[17:00:41] petricore: has joined #RubyOnRails
[17:01:11] petricore: has joined #RubyOnRails
[17:01:54] ledestin: has joined #RubyOnRails
[17:02:50] meoblast001: has joined #RubyOnRails
[17:03:12] wtm0422: has joined #RubyOnRails
[17:03:51] wtm0422: Hello! What's the best way to use Websockets in RoR? I would normally do something like this in Node but I have to use RoR for this
[17:03:56] dopamean_: has joined #RubyOnRails
[17:04:41] mitchless: has joined #RubyOnRails
[17:05:46] mikebonar: |splat|, well the model would control the experience points, so you would put your method in there
[17:06:18] Lightsword: has joined #RubyOnRails
[17:06:28] vipaca: has joined #RubyOnRails
[17:08:56] fgo: has joined #RubyOnRails
[17:09:05] nzst: has joined #RubyOnRails
[17:10:39] wldcordeiro__: has joined #RubyOnRails
[17:12:10] Mendenhall: has joined #RubyOnRails
[17:12:50] cajone: has joined #RubyOnRails
[17:13:34] alex88: has joined #RubyOnRails
[17:13:37] TheNet: has joined #RubyOnRails
[17:14:12] crystal77: has joined #RubyOnRails
[17:14:34] LambdaSource: has joined #RubyOnRails
[17:15:14] jgt: has joined #RubyOnRails
[17:15:50] andessen: has joined #RubyOnRails
[17:16:28] paulcsmith: has joined #RubyOnRails
[17:17:35] TheNet: has joined #RubyOnRails
[17:17:45] HAL2328: anyone here develop on windows 7 64bit? the setup has been a disaster. rails console won't even work. using the latest rubyinstaller 2.2.2p95
[17:17:54] HAL2328: with rails 4.2.4
[17:18:43] Guest38_: has joined #RubyOnRails
[17:18:53] EvilEpoch: has joined #RubyOnRails
[17:19:53] schu: has joined #RubyOnRails
[17:20:25] bricker: HAL2328: spill the deets
[17:21:37] moeabdol: has joined #RubyOnRails
[17:21:49] BecomingCoder: has joined #RubyOnRails
[17:22:54] benhuda: has joined #RubyOnRails
[17:23:41] kegan_: has joined #RubyOnRails
[17:24:02] HAL2328: bricker, one sec, i just uninstalled everything and attempting another install from rubyinstaller 2.1.6 64bit. will keep you posted. thanks
[17:24:41] robbyoconnor: has joined #RubyOnRails
[17:25:29] alex88: has joined #RubyOnRails
[17:28:49] tuelz: has joined #RubyOnRails
[17:29:10] grooveska: has joined #RubyOnRails
[17:29:16] Pupeno: has joined #RubyOnRails
[17:30:12] Synthead: has joined #RubyOnRails
[17:30:49] TheNet: HAL2328: maybe use something like vagrant or docker?
[17:30:56] mary5030: has joined #RubyOnRails
[17:33:13] siaw_: has joined #RubyOnRails
[17:34:38] joshkovach: has joined #RubyOnRails
[17:34:51] HAL2328: TheNet, i'm seriously considering it. never knew it'd be this painful... brb
[17:37:29] tubbo: windows doeeee
[17:37:38] krisquigley: has joined #RubyOnRails
[17:40:55] siaw_: has joined #RubyOnRails
[17:42:34] sininen: has joined #RubyOnRails
[17:43:31] altivection: has joined #RubyOnRails
[17:44:00] NBarnes: has joined #RubyOnRails
[17:46:10] hackeron: any ideas about this? < https://stackoverflow.com/questions/32382254/forcing-mongoid-model-to-a-specific-database-name
[17:46:57] Aswebb_: has joined #RubyOnRails
[17:47:02] smathy: Ha! "Tim Berners-Lee: Web Developer" :)
[17:49:06] HAL2328: has joined #RubyOnRails
[17:49:49] RegulationD: has joined #RubyOnRails
[17:50:30] HAL2328: what version of rails is a good version for windows setup?
[17:51:02] HAL2328: at the moment, im starting over. installed rubyinstaller v2.1.6
[17:51:25] patrick_star: has joined #RubyOnRails
[17:51:39] havenwood: has joined #RubyOnRails
[17:51:59] towski_: how do I require a system gem from a system environment
[17:52:02] cnk: has joined #RubyOnRails
[17:52:05] HAL2328: last time i tried the latest version 4.2.4 and rails console wouldn't even load. just got a bunch of errors
[17:53:30] towski_: er bundler environment
[17:54:05] slava_: has joined #RubyOnRails
[17:54:21] slava_: did somebody have a sudden error in their application libMagickCore.so.2: cannot open shared object file
[17:55:31] ProLoser: has joined #RubyOnRails
[17:56:17] smathy: bricker, in case you were talking to me, it seems traffic has been slow here today - it was a comment from someone two hours ago (that was still on my page)
[17:56:18] baweaver: has joined #RubyOnRails
[17:56:27] _djbkd: has joined #RubyOnRails
[17:56:45] bricker: holiday weekend in USA
[17:57:09] SteenJobs: has joined #RubyOnRails
[17:57:10] smathy: bricker, it was a screen grab from here: https://www.youtube.com/watch?v=Ug6XAw6hzaw
[17:57:46] smathy: bricker, oh, Labor Day. The lamest of all holidays.
[17:57:57] bricker: smathy: but a holiday nonetheless
[17:58:12] Scriptonaut: I don't care what kinda holiday it is as long as we get work off
[17:58:26] smathy: ...the true spirit of Labor Day right there.
[17:58:53] smathy: The It'sBeenTooLongSinceMyLastDayOff Holiday
[17:59:40] drale2k: has joined #RubyOnRails
[17:59:48] bricker: smathy: and we haven't had a holiday since 4th of july
[18:00:08] bricker: and the next one isn't until thanksgiving :(
[18:00:28] Scriptonaut: I dont' remember is halloween a national holiday
[18:00:53] grotewold: has joined #RubyOnRails
[18:01:37] smathy: The concept of "national holiday" is unamerican.
[18:04:11] umgrosscol: has joined #RubyOnRails
[18:05:17] wingedsnake: has joined #RubyOnRails
[18:05:35] dionysus69: has joined #RubyOnRails
[18:06:32] choke: has joined #RubyOnRails
[18:06:36] qejk: has joined #RubyOnRails
[18:07:08] mitchless: has joined #RubyOnRails
[18:08:26] crystal77: has joined #RubyOnRails
[18:08:30] arBmind: has joined #RubyOnRails
[18:09:25] TheNet: has joined #RubyOnRails
[18:09:58] fgo: has joined #RubyOnRails
[18:11:04] Kalev_Nakah: has joined #RubyOnRails
[18:12:04] chills42: has joined #RubyOnRails
[18:13:23] Papierkorb: For a RESTful API, how do I allow Cross-Origin Requests with Rails4.2?
[18:13:23] jholm: has joined #RubyOnRails
[18:14:28] baweaver: has joined #RubyOnRails
[18:14:41] netzfisch: has joined #RubyOnRails
[18:15:06] Lightsword: has joined #RubyOnRails
[18:16:51] tubbo: Papierkorb: i used the rack-cors middleware for that when i had to deal with it
[18:16:56] RegulationD: has joined #RubyOnRails
[18:17:39] alexhartley: has joined #RubyOnRails
[18:20:16] babykosh: has joined #RubyOnRails
[18:22:56] arup_r: pretty boring.. not able to download gems from their repo due to high security.. :/
[18:23:23] arup_r: For every access I have to email..
[18:24:49] manfrin: has joined #RubyOnRails
[18:24:54] moeabdol: has joined #RubyOnRails
[18:25:23] Kalev_Nakah: has joined #RubyOnRails
[18:25:29] toretore: has joined #RubyOnRails
[18:26:33] mrchris: has joined #RubyOnRails
[18:27:10] chills42: has joined #RubyOnRails
[18:27:29] alex88: has joined #RubyOnRails
[18:29:18] Pazician: has joined #RubyOnRails
[18:30:40] arup_r: guys, I saw couple of project to use database.yml.example instead of database.yml.. and they keep database.yml in the .gitignore file. Any idea what is the reason behind it ?
[18:30:55] arup_r: I read some where but now not able to remember it
[18:31:16] DEA7TH_: has joined #RubyOnRails
[18:32:39] yfeldblum: has joined #RubyOnRails
[18:33:47] webdestroya: Does anybody know if it is possible to have a Thing(id, name, user_ids:[]) and be able to do eager loading for all the users of all the things? Thing.includes(:users).each ... ?
[18:33:55] webdestroya: using postgres array type
[18:34:33] arBmind: has joined #RubyOnRails
[18:34:42] meatherly: has joined #RubyOnRails
[18:34:43] maz-dev: has joined #RubyOnRails
[18:35:55] arup_r: Nah it is not what you are thinking. Btw, What is the relationship between User and Thing.
[18:36:15] Lightsword: has joined #RubyOnRails
[18:36:25] webdestroya: I have something like Classroom with an array of teacher_ids
[18:36:35] webdestroya: I want to avoid another join table
[18:36:49] arup_r: Yes. then `includes` is not your tool
[18:37:05] webdestroya: right, but is there something close to that?
[18:37:16] arup_r: what you want to do , BTW ?
[18:37:33] webdestroya: I want to be able to list the classrooms, and not have N+1 queries to also show the teachers
[18:38:20] smathy: arup_r, people do it for one of two reasons - so that developers can customize their own DB settings without having to deal with keeping those changes out of git, and to hide production passwords from people who don't need them.
[18:38:42] arup_r: You ClassRoom.all.each { |c| Techaer.where(id: c.teacher_ids } is not a N + 1 issue..
[18:38:55] dman777_alter: has joined #RubyOnRails
[18:39:08] webdestroya: How is it not?
[18:39:17] webdestroya: if i have 5 classrooms, that will generate 6 queries
[18:39:21] webdestroya: I want 2 queries
[18:39:36] badmadrad: has joined #RubyOnRails
[18:39:36] dman777_alter: get "/api/foo/templates", {}, { "Accept" => "application/json" } is this still a valid way of testing a url? I keep getting route not found
[18:39:56] safety_cut: has joined #RubyOnRails
[18:40:47] lampd1: has joined #RubyOnRails
[18:40:50] smathy: dman777_alter, you sure you didn't want .../templates.json ?
[18:40:50] arup_r: smathy: correct.. I remember now
[18:41:02] dman777_alter: smathy: ya, I set the default on the controller to be json
[18:41:35] smathy: dman777_alter, !gist the output of rake routes
[18:41:35] helpa: dman777_alter: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[18:42:00] dman777_alter: smathy: the path works .... this issue is just me writing the rspec test
[18:42:05] TheNet: has joined #RubyOnRails
[18:42:09] rushed: has joined #RubyOnRails
[18:42:45] tubbo: webdestroya: i can't remember which one does eager-loading of data, but rails provides a couple methods here to retrieve that data, called includes() and joins()
[18:42:59] tubbo: webdestroya: so you can do stuff like Classroom.all.includes(:teacher)
[18:43:02] webdestroya: tubbo: i dont think those work for postgres array types
[18:43:22] tubbo: webdestroya: why isn't Teacher and Classroom related?
[18:43:24] Mendenhall: has joined #RubyOnRails
[18:43:28] webdestroya: tubbo: Classroom(id, name, user_ids[])
[18:43:33] webdestroya: im experimenting, to be honest
[18:43:40] webdestroya: i want to see if i can do it without a jointable
[18:43:42] grotewold: has joined #RubyOnRails
[18:44:08] tubbo: webdestroya: theoretically, yes...but don't expect ActiveRecord to help you
[18:44:31] tubbo: webdestroya: you'd probably have to do a JOIN here WHERE id IN teacher_ids, basically
[18:44:33] webdestroya: i was hoping active record had some hidden `has_many :teachers, use_fancy_array: true`
[18:44:40] arup_r: webdestroya: hum you need to take the association route to get help from AR
[18:44:49] webdestroya: meh, maybe i should just make a join table and call it a day
[18:44:56] tubbo: webdestroya: oh yeah there's has_many :teachers, webdestroya_mode: true
[18:44:59] tubbo: forgot about that
[18:45:19] webdestroya: https://github.com/marshall-lee/has_array_of
[18:45:25] webdestroya: ^ sort of that
[18:46:09] webdestroya: but, i should probably use a join table instead
[18:46:22] arup_r: webdestroya: why join table ?
[18:46:30] TheNet_: has joined #RubyOnRails
[18:46:35] arup_r: it seems simple has_many usecase
[18:46:48] arup_r: 1 to N relationship
[18:46:56] webdestroya: teachers have multiple classrooms
[18:47:12] arup_r: well.. yes
[18:47:32] arup_r: HABTM is your tool
[18:48:09] Lightsword: has joined #RubyOnRails
[18:48:21] webdestroya: HABTM uses a join table
[18:48:26] webdestroya: thats what i meant..
[18:48:34] Pumukel: has joined #RubyOnRails
[18:49:01] webdestroya: arup_r: http://guides.rubyonrails.org/association_basics.html#the-has-and-belongs-to-many-association
[18:49:10] webdestroya: assemblies_parts is a join table
[18:49:11] smathy: I've never successfully shipped a habtm - I've always ended up converting them to hmt
[18:49:22] IrishGringo: has joined #RubyOnRails
[18:49:27] archix9: has joined #RubyOnRails
[18:49:39] arup_r: webdestroya: I didn't say you don't need join table :(
[18:49:51] webdestroya: <arup_r> webdestroya: why join table ?
[18:50:01] arup_r: That's long back
[18:50:03] sinkensabe: has joined #RubyOnRails
[18:50:13] smathy: 4 minutes ago.
[18:50:19] arup_r: When I was thinking 1 to N
[18:50:40] johnflux: has joined #RubyOnRails
[18:50:46] archix9: has left #RubyOnRails: ()
[18:51:01] arup_r: humm.. check the next sentence of that sentence
[18:51:37] NBarnes: has joined #RubyOnRails
[18:51:50] smathy: arup_r, if you want to analyze this - I think the confusion was that you didn't seem at any point to acknowledge that you'd misunderstood. You just said "well.. yes" as if you were confirming your prior understanding.
[18:51:52] arup_r: Thing(id, name, user_ids:[]) had not taste to foresee of N to N .. I
[18:52:11] FCser: has joined #RubyOnRails
[18:58:21] grooveska: has joined #RubyOnRails
[19:00:30] drale2k: has joined #RubyOnRails
[19:01:34] dman777_alter: for rspec, if I wanted to test with get :default ...how would I give a url param of foobar in /api/foo/foobar?
[19:03:19] DEA7TH_: has joined #RubyOnRails
[19:07:20] tubbo: dman777_alter: all params are passed in the 2nd argument of `get` (or post/put/delete), like get :index, test: true
[19:07:27] tubbo: dman777_alter: doesn't matter if they're in the URL or not, params are just params.
[19:08:01] SteenJobs: has joined #RubyOnRails
[19:10:54] emba: has joined #RubyOnRails
[19:11:15] fgo: has joined #RubyOnRails
[19:13:01] emba: has joined #RubyOnRails
[19:13:40] Sylario_: has joined #RubyOnRails
[19:13:46] Sonicrida: has joined #RubyOnRails
[19:14:50] TheNet: has joined #RubyOnRails
[19:15:42] lindii_: why im not able to filter using this boolean online field in this query http://pastie.org/10395126
[19:16:05] webdestroya: lindii_: oh god please dont use that
[19:16:09] Scripore: has joined #RubyOnRails
[19:16:17] webdestroya: thats ripe for some sql injection
[19:16:27] smathy: Holy mother of god.
[19:16:34] emba_: has joined #RubyOnRails
[19:16:35] smathy: ACTION suspects a troll
[19:16:57] negev: has joined #RubyOnRails
[19:17:04] negev: hi, i'm rack to build a simple webapp. i'm not actually using rails but rails must have solved this problem - if i return a response with an enumerable object, in order to stream a large file back to the browser, it calls each on the object and iteratively retrieves chunks of the file. for some reason when i do this, the brower hangs for several seconds before it starts to download the file.
[19:17:17] negev: it feels as if some kind of output buffer isn't being flushed out until it reaches a certain length
[19:17:22] dici: has joined #RubyOnRails
[19:17:29] moeabdol: has joined #RubyOnRails
[19:17:31] negev: s/i'm rack/i'm using rack/ sorry, it's been a long day :|
[19:18:58] dmmoody: has joined #RubyOnRails
[19:19:11] meatherly: has joined #RubyOnRails
[19:19:21] jobewan: has joined #RubyOnRails
[19:23:42] gambl0re: has joined #RubyOnRails
[19:24:16] tubbo: i am rack
[19:24:24] tubbo: you will all give me prima nocta with your rails apps
[19:25:24] tubbo: negev: check out some of what ActionController::Live is doing...IIRC that will support chunked downloading
[19:25:42] tubbo: negev: but remember, you have to also have a static web server which supports HTTP Live Streaming (like nginx)
[19:26:43] emba: has joined #RubyOnRails
[19:26:57] FCser: has joined #RubyOnRails
[19:27:31] baweaver: has joined #RubyOnRails
[19:27:58] yaymukund: has joined #RubyOnRails
[19:29:33] guidohcosta: has joined #RubyOnRails
[19:30:23] bronson: has joined #RubyOnRails
[19:30:24] Grundell_: has joined #RubyOnRails
[19:32:36] HAL2328: bricker: finally got it to work. whew. the 'DL is deprecated, please use Fiddle' message is safe to ignore?
[19:32:48] ProLoser: has joined #RubyOnRails
[19:33:14] ascarter: has joined #RubyOnRails
[19:33:31] bricker: HAL2328: probably, I don't know what DL is but I assume it's similar to Fiddler and that's just a debugger tool
[19:33:38] LambdaSource: has joined #RubyOnRails
[19:34:31] maz-dev: has joined #RubyOnRails
[19:35:10] Aswebb_: has joined #RubyOnRails
[19:35:45] smathy: So lindii_ - everyone's calm now, and you haven't done anything else to suggest you're just trolling, so let me put my kid gloves on and ask - was that really your code?
[19:37:57] Pathfinder: has joined #RubyOnRails
[19:38:00] Lyhue: has joined #RubyOnRails
[19:38:35] krisquigley: has joined #RubyOnRails
[19:39:25] yfeldblum: has joined #RubyOnRails
[19:39:35] LambdaSource: has joined #RubyOnRails
[19:39:49] HAL2328: bricker: thank you. is there any alternatives to the default windows cmd/powershell? for instance, the built in selection/marking does not work well.
[19:40:06] ledestin: has joined #RubyOnRails
[19:40:08] netzfisch: has joined #RubyOnRails
[19:40:18] crankharder: has joined #RubyOnRails
[19:41:02] tubbo: HAL2328: i'd highly recommend not using windows for ruby development. some people have gotten it to work but it's a lot easier to get help if you're on a vagrant VM, mac os x, or linux bare metal.
[19:41:29] bricker: HAL2328: I'm sure there is but haven't done any real development on windows since, I dunno, 1996 so I'm a little out of the loop.
[19:42:07] smathy: Would cygwin count as an alternative? ;)
[19:42:11] emba: has joined #RubyOnRails
[19:42:13] tubbo: does cygwin work for ruby?
[19:42:36] HAL2328: tubbo: yeah its really terrible. i can't even copy and paste error codes from cmd...
[19:42:42] bricker: some people prefer or maybe have to use windows/PC
[19:43:03] dman777_alter: how would I mock a session.get() and assert it's been called? I tried session = double(session); session.stub(:get); expect(session).to receive(:get) but I know I didn't do it right
[19:43:07] bricker: maybe s/he's a .net guy and just needs to modify a ruby script
[19:43:12] negev: has left #RubyOnRails: ()
[19:43:17] bricker: being gender neutral is tedious
[19:43:27] HAL2328: im a machine
[19:43:32] dman777_alter: i just say they
[19:43:33] tubbo: bricker: ...then why didn't they just use the C# DSL for writing SQL querieS? :)
[19:43:37] bricker: dman777_alter: good call
[19:43:44] tubbo: bricker: that's actually a really awesome feature of the newer .net..
[19:43:49] dman777_alter: but it's pretty bad english i think
[19:43:49] baweaver: has joined #RubyOnRails
[19:44:18] bricker: dman777_alter: if you're interested, Tom Scott (programmer/linguist/all-around smart and intersting person) has a great video about that very subject
[19:44:20] tubbo: dman777_alter: "they" is grammatically correct to refer to someone of unknown gender
[19:44:36] guidohcosta: has joined #RubyOnRails
[19:44:36] bePolite: has joined #RubyOnRails
[19:44:36] bePolite: has joined #RubyOnRails
[19:44:41] bricker: dman777_alter: https://www.youtube.com/watch?v=46ehrFk-gLk
[19:45:04] tubbo: dman777_alter: actually call the method and make sure it returns the value you want it to
[19:45:17] tubbo: expect().to receive() is kinda weird imho
[19:45:27] bePolite: has joined #RubyOnRails
[19:45:35] based_pdev: has joined #RubyOnRails
[19:46:24] bricker: opposed to what?
[19:46:33] ratmav: has joined #RubyOnRails
[19:46:44] dman777_alter: tubbo: what about get :default, path: "templates", format: :json to trigger the controller method?
[19:47:25] bruno-: has joined #RubyOnRails
[19:47:37] dman777_alter: tubbo: ya, it is wierd to me
[19:48:39] tubbo: bricker: like the syntax of it i never really understood, never really understood what i was testing, or how to use it. so i just say fuck it and test for the value that i mocked, usually i do that kind of thing through another method. i thought i might be able to do expect { subject.method_that_uses_my_mock }.to receive(:mocked_method) but that didn't work
[19:48:47] moeabdol: has joined #RubyOnRails
[19:48:57] tubbo: i just don't know what is "receiving" the method i'm specifying
[19:49:06] rushed: has joined #RubyOnRails
[19:49:13] tubbo: dman777_alter: not sure what you're getting at here
[19:49:41] VeryBewitching: has joined #RubyOnRails
[19:49:47] lindii_: smathy: its just a query test to check how to use a boolean condition. Not a query im using in practice
[19:49:57] shoelessone: has joined #RubyOnRails
[19:50:05] bricker: tubbo: huh... I'm not sure what you're confused about, you don't seem like you want me to change your mind though
[19:50:37] tubbo: bricker: no, i definitely would...but granted it's been a while since i used the receive matcher
[19:50:38] bricker: expect(@tubbo).to receive(:help!)
[19:50:53] northfurr: has joined #RubyOnRails
[19:51:04] DoubleMalt: has joined #RubyOnRails
[19:51:50] lindii_: smathy: practice im doing http://pastie.org/10395198
[19:51:56] bricker: I don't even remember how to stub (w/o expectation) using the old monkeypatch syntax
[19:52:07] bricker: just .stub() I guess?
[19:53:10] maz-dev: has joined #RubyOnRails
[19:53:36] ivanskie: has joined #RubyOnRails
[19:53:45] DrHouse|HP8440p: has joined #RubyOnRails
[19:53:45] Lightsword: has joined #RubyOnRails
[19:54:58] ivanskie: so.. Suspenders... could someone please explain the Application_Host ENV.. what do I make it if im deploying it to heroku. HOST env is also needed? there is no documentation that I could find..
[19:55:06] Lightsword: has joined #RubyOnRails
[19:55:27] jgt: has joined #RubyOnRails
[19:55:59] ivanskie: I basically am trying to do bin/deploy staging over and over and over again, going through each EVN that its missing..
[19:56:33] manfrin: show channel: www.podgram.com/profiles/mike-manfrin
[19:56:42] emba: has joined #RubyOnRails
[19:56:46] manfrin: http://www.podgram.com/profile/mike-manfrin
[19:56:54] manfrin: changed the design a bit, added 'profiles'
[19:56:57] VeryBewitching: manfrin: That 404s
[19:57:07] manfrin: ye, 2nd link works
[19:57:09] workmad3: has joined #RubyOnRails
[19:57:44] manfrin: I also made a lil blog to put updates
[19:57:49] manfrin: this site is coming together FAST
[19:57:56] manfrin: and I got all next week off of work for a staycation
[19:58:07] manfrin: gonna hit the coffee/adderall and bust out a bunch of new features :D
[19:59:15] VeryBewitching: I like the color choice.
[19:59:41] manfrin: thanks, that was a change last night -- decided i wanted a gradient and just googled 'gradient generator', played around
[20:00:11] VeryBewitching: I have a SaSS mixin somewhere that takes a splat for that.
[20:00:36] grotewold: has joined #RubyOnRails
[20:00:38] manfrin: I just made my first mixin a couple nights ago
[20:00:47] manfrin: 3 years professionally and I had yet to make a mixin
[20:00:56] manfrin: hell, this is the first sideproject that is actually live
[20:01:23] manfrin: so many lil pieces fo stitch together on your own
[20:01:33] VeryBewitching: manfrin: I was never much of a front-end guy, in the 20 years I've been doing this, but when I ran into SCSS 6 months ago I came to enjoy it.
[20:01:37] yfeldblum: has joined #RubyOnRails
[20:01:59] alex88: has joined #RubyOnRails
[20:01:59] manfrin: yeah; last job was like 95% apis, so I never had real cause to exercise my frontend chops
[20:02:00] rhizome: does the google glass help with development? :) i wonder if it can be used to receive notify-send type popups
[20:02:12] manfrin: i should try that
[20:02:19] manfrin: I'm holding out for oculus rift development though
[20:02:28] manfrin: that one video of the guy coding with three.js is amazing
[20:02:46] manfrin: https://www.youtube.com/watch?v=db-7J5OaSag
[20:03:38] tubbo: rift might be hard to program on
[20:03:54] tubbo: like for 8 hours a day? i dunno...it's not the most comfortable thing in the world to be wearing
[20:04:15] tubbo: when i tried one it was a lot of fun, but i was definitely ready to take it off after 30 mins. probably playing a game it would be a couple hours, but that's still not 8 hours a day.
[20:04:37] tubbo: i'm holding out for cheap projectors and minority report-style human input devices :P
[20:04:45] manfrin: yeah, but coding like that would just drop you in to flow
[20:04:57] manfrin: you'd forget you had anything on your head :D
[20:07:01] dmmoody: has joined #RubyOnRails
[20:07:02] Coldblackice: has joined #RubyOnRails
[20:07:16] ascarter: has joined #RubyOnRails
[20:07:22] dnewkerk: has joined #RubyOnRails
[20:07:53] teufelChiCoder: has joined #RubyOnRails
[20:08:15] teufelChiCoder: im looking for something similar in RoR: http://tickera.com/
[20:08:32] teufelChiCoder: anyone know of a gem or where would be a good start for ticket sales?
[20:08:35] husanu: has joined #RubyOnRails
[20:08:47] tubbo: teufelChiCoder: don't think anything pre-made exists...
[20:08:56] tubbo: teufelChiCoder: any reason you don't want to use Eventbrite or something?
[20:09:54] manfrin: a ticketing system would be pretty easy to code
[20:09:59] manfrin: dont think there'd be a gem
[20:10:12] IrishGringo: has joined #RubyOnRails
[20:10:16] manfrin: I mean, there are ecommerce gems that could be hacked to sell tickets easily
[20:10:32] tubbo: or you could just use the stripe gem to take in payments and build all the ticket-taking stuff yourself
[20:10:43] manfrin: but all ticketing is is selling a digital good, keeping a record, and having a 'redemption' that 'uses' the ticket
[20:10:51] Pazician: has joined #RubyOnRails
[20:10:52] manfrin: stripe + building yourself
[20:10:59] tubbo: i was considering this for my own events, but just went with eventbrite because it's got everything i need already
[20:11:01] manfrin: = a daylong project at most for a quick dev
[20:11:09] tubbo: also has the cheapest fees i've seen
[20:11:10] manfrin: yeah, eventbrite works well
[20:11:18] Pazician: has joined #RubyOnRails
[20:11:23] manfrin: i had a thought I would make an eventbrite competitor until i looked at their prices and how they worked
[20:11:36] drupald: has joined #RubyOnRails
[20:11:39] manfrin: they are too reasonably priced and have too many features
[20:12:20] fgo: has joined #RubyOnRails
[20:12:31] emba: has joined #RubyOnRails
[20:12:33] ivanskie: im so confused right now...
[20:12:35] smathy: lindii_, ok, that's *MUCH* better, so, you believe that's not working?
[20:12:36] tubbo: manfrin: eventbrite actually started around the time facebook started their events system
[20:12:59] tubbo: i feel like they used to be a social network for events, then pivoted to also offer ticket sales
[20:13:06] safety_cut: has joined #RubyOnRails
[20:13:06] manfrin: I'm surprised fb doesnt have a native ticketing system
[20:13:06] tubbo: which makes a lot of sense when you think about it
[20:13:21] tubbo: their servers are taxed enough :)
[20:13:40] manfrin: but fb selling tickets would be a nice lil revenue stream for them
[20:13:44] tubbo: plus, they're an advertising company. they stand to make far more money off of your promotion of an eventbrite event than to host the evnet themselves
[20:13:46] manfrin: and invites already go out through fb
[20:14:00] manfrin: instead of clicking 'Attending', you click 'Attending and pay'
[20:14:09] CanTonic: has joined #RubyOnRails
[20:14:26] manfrin: people dont advertise eventbrite tickets though, they just post a link in an event
[20:14:38] manfrin: fb could make the buying-a-ticket experience seamless
[20:14:47] tubbo: but why would they want to? what's the point?
[20:14:54] lindii_: smathy: no problem. I already fix it doing if params[:online].present?
[20:14:55] manfrin: new revenue stream
[20:15:01] manfrin: advertising is a rickety boat
[20:15:05] manfrin: ask google
[20:15:20] manfrin: search is their 800lb gorilla, but it's decreasing
[20:15:36] manfrin: you gotta find something beyond ads to sustain
[20:15:41] tubbo: manfrin: yeah, where do you think the revenue is going? =P
[20:15:53] tubbo: i'll give you 3 guesses, hint...the name starts with "face" and ends with "book"
[20:16:06] tubbo: google advertising is not useful for me
[20:16:14] manfrin: and decreasing clicktru rates
[20:16:20] tubbo: manfrin: i love how you think you know more about facebook's revenue streams than facebook itself
[20:16:25] manfrin: ads are becoming ignored
[20:16:28] smathy: lindii_, good to hear.
[20:16:31] manfrin: i just think about finances
[20:16:37] manfrin: i am a nerd about finances
[20:16:43] atmosx: manfrin: advertisement is what makes the world go round.
[20:16:44] manfrin: also i invest a lot :D
[20:16:58] HAL2328: has joined #RubyOnRails
[20:17:03] manfrin: yeah, but more revenue streams are more revenus streams
[20:17:13] manfrin: google didn't buy nest so they could sell more ads
[20:17:19] manfrin: google bought nest to sell *nests*
[20:17:22] tubbo: manfrin: google only has the freedom to dick around with a bunch of possibly financially devastating projects because of search advertising.
[20:17:28] atmosx: manfrin: that sounds like something deep (well almost).
[20:17:39] smathy: manfrin, actually they bought nest to get into home automation and to learn more about when people are home and out.
[20:17:43] vyorkin: has joined #RubyOnRails
[20:17:46] manfrin: yeah, Its a big revenue stream for them, but they're lookign for more
[20:17:47] dman777_alter: in my controller if I have def default, shouldn't get :default, path: "templates", format: :json call it in the rspec test? Or is that for only def index, etc?
[20:17:56] lagweezle: With a polymorphic association to a class with single table inheritance, why is the referring class show a 'type' that is the base class, even though the record it links to is marked and behaves like the proper subclass? https://gist.github.com/ncolton/a2f4d99b953b48b6ce1d if it helps.
[20:17:57] manfrin: smathy and then to sell home automation items
[20:17:58] manfrin: like onhub
[20:18:01] manfrin: the point stands
[20:18:03] tubbo: manfrin: google bought android so that apple couldn't get in between the user and search
[20:18:09] manfrin: they didnt buy nest to increase search revenue
[20:18:14] tubbo: in fact, android lost money for most of its existence
[20:18:22] Pazician: has joined #RubyOnRails
[20:18:25] tubbo: google wants to know about you
[20:18:29] tubbo: about who you are and what you like
[20:18:32] manfrin: my point is that companies diversify their revenue streams
[20:18:37] tubbo: (contrast this with facebook who wants to know who you know and what you know)
[20:18:39] smathy: manfrin, no, then to better target their advertising based on people's habits. Eg. advertise restaurants to people who leave the house all the time at dinner time.
[20:18:40] atmosx: tubbo: is it on the positive side now? Youtube was on the negative too..
[20:18:44] atmosx: but not anymore IIRC
[20:18:46] manfrin: saying 'why would they do [x], they already make money doing [y]' is naiive
[20:18:52] Pazician: has joined #RubyOnRails
[20:18:53] smathy: manfrin, the automation will just tell them even more about people.
[20:18:58] tubbo: atmosx: there certainly are a lot of android phones out there...
[20:18:59] manfrin: no, smathy
[20:19:11] tubbo: manfrin: yeah but there's also that semblance of "a company's DNA"
[20:19:12] manfrin: it will, but the goal isnt just to increase ad revenue
[20:19:19] manfrin: it's about opening a new market for themselves
[20:19:20] tubbo: and IMHO, selling tickets to events is not in facebook's DNA
[20:19:29] atmosx: tubbo: well, sure it's the dominant layer aslong as installations go.
[20:19:32] manfrin: fb's dna is social, what's more social then events?
[20:19:32] tubbo: in fact, events at all aren't in facebook's DNA...but they probably realized how self-financing events are
[20:19:37] smathy: manfrin, not the only goal, but the primary one.
[20:19:45] manfrin: 100% disagree smathy
[20:19:48] ivanskie: this canonical host is driving me nuts
[20:19:52] manfrin: nest is not about search
[20:19:54] manfrin: nest is about products
[20:19:55] tubbo: manfrin: lol...you are generalizing *way* too much here
[20:19:58] dpm: has joined #RubyOnRails
[20:20:01] alex88: has joined #RubyOnRails
[20:20:06] tubbo: the world cannot be labelled like that
[20:20:08] atmosx: tubbo: I was organizing events in a small town actually and was our main resource (along with radio and other kind of ads) but facebok was no1 way to connect.
[20:20:23] tubbo: but given you're a finance nerd, you're used to pluralized generalizations like "commodities", "futures", etc.
[20:20:25] atmosx: tubbo: I mean, it's extremely powerfull medium... probably the most powerfull come to think of it.
[20:20:39] teufelChiCoder: @ tubbo : we've used eventbrite, but one of the owner's asked if we can build something of our own
[20:20:45] sinkensabe: has joined #RubyOnRails
[20:20:55] teufelChiCoder: i've checked out tikera before - like their check in functionality
[20:20:59] tubbo: so i definitely get what you're saying, but at the same time...business isn't all about finances. i mean, it is...but it's also about creating stuff so that the money will eventually come in, you know what i mean?
[20:21:14] manfrin: 'you're generalziing, let me generalize about your background to explain why'
[20:21:18] jgpawletko: has joined #RubyOnRails
[20:21:26] tubbo: manfrin: eh
[20:21:28] manfrin: "but it's also about creating stuff so that the money will eventually come in, you know what i mean?"
[20:21:32] manfrin: this is exactly what I am saying
[20:21:36] baweaver: has joined #RubyOnRails
[20:21:45] manfrin: [13:19:10] <manfrin> it will, but the goal isnt just to increase ad revenue
[20:21:45] manfrin: [13:19:18] <manfrin> it's about opening a new market for themselves
[20:21:56] teufelChiCoder: so started doing some research on how to build osmething similar in rails
[20:21:56] smathy: manfrin, you're welcome to your opinion.
[20:22:02] manfrin: it's about new markets, new 'stuff' to bring in money
[20:22:20] manfrin: and I'm saying they are investing in revenue outside of search
[20:22:38] smathy: manfrin, my information comes from some people high up in Google, so I trust it more than your opinion.
[20:22:41] tubbo: teufelChiCoder: as long as your ticketing system isn't going to get over-loaded at the time of sale, it's probably pretty easy to build one in rails. just export the guest list as CSV :)
[20:22:48] manfrin: nest might have external benefits of increasing their understanding of a user, but nest is primarily about a new market of thigns to sell (and about hte design chops of the founder of nest)
[20:23:10] teufelChiCoder: yup, that's the plan
[20:23:17] manfrin: smathy, what you just said was completely pointless in this discussion 'you can have your opinion but you are wrong because i know people at google'
[20:24:35] michael_mbp: has joined #RubyOnRails
[20:26:25] Lightsword_: has joined #RubyOnRails
[20:26:30] smathy: manfrin, probably seems pointless to you, I'm not sure that the point isn't entirely opaque to everyone else though.
[20:27:04] rakm: i'm trying to quickly dump some db rows into a csv file, and I'm doing something like `csv_string = Story.all.map { |s| [s.body, s.title].join(",") }.join("\n")`. How do should I account for "\n" in the body column of story records?
[20:27:26] manfrin: smathy you make the assumption that I dont know people at google, and that because of the assumption you can jsut nullify my argument by saying I'm wrong, prima facie
[20:27:38] manfrin: I'm giving examples of why I believe my point, whereas you have said 'no, you're wrong, i know'
[20:27:47] manfrin: it's unhelpful and arrogant
[20:27:53] smathy: manfrin, that's not an assumption, I base that conclusion on your opinion - which is very wrong.
[20:27:55] krisquigley: has joined #RubyOnRails
[20:28:15] manfrin: that's fine, but I'm gonna stop arguing with you because your entire point is 'you're wrong'
[20:28:18] rushed: has joined #RubyOnRails
[20:28:21] smathy: manfrin, if you knew people high up in google then you wouldn't be arguing that the nest move wasn't about advertising - because it was.
[20:28:25] manfrin: which is like arguing god with an evangelist
[20:28:37] sdwrage: has joined #RubyOnRails
[20:28:49] smathy: manfrin, I was never arguing with you, I was informing you of your mistake.
[20:28:52] ChanServ: +o baweaver
[20:29:09] baweaver: As much as I love a good debate, can we not pollute the Rails channel with it?
[20:29:19] baweaver: we have ruby-offtopic for it
[20:29:30] baweaver: (and hangman, but anyways)
[20:29:43] alexhartley: has joined #RubyOnRails
[20:30:01] manfrin: yeah, I'm done with the conversation anyway
[20:30:12] smathy: rakm, why not use the CSV stdlib?
[20:30:30] ChanServ: -o baweaver
[20:30:42] craysiii: has joined #RubyOnRails
[20:30:44] rakm: i thought this would be easier
[20:30:49] NBarnes: has joined #RubyOnRails
[20:31:01] rakm: looking it up
[20:31:09] craysiii: good aftereveningday
[20:33:06] northfurr: has joined #RubyOnRails
[20:34:07] rakm: worked great, thanks smathy
[20:35:34] jenrzzz: has joined #RubyOnRails
[20:37:09] barce: has joined #RubyOnRails
[20:37:22] Jardayn: has joined #RubyOnRails
[20:37:24] ipstatic: has joined #RubyOnRails
[20:37:36] michael_mbp: has joined #RubyOnRails
[20:39:18] drale2k: has joined #RubyOnRails
[20:39:37] blackmesa: has joined #RubyOnRails
[20:40:02] lagweezle: With a polymorphic association to a class with single table inheritance, why is the referring class show a 'type' that is the base class, even though the record it links to is marked and behaves like the proper subclass? Did I do something wrong? https://gist.github.com/ncolton/a2f4d99b953b48b6ce1d if it helps.
[20:41:30] johnflux: /usr/local/bin/rails:23:in `load': cannot load such file -- /usr/share/rubygems-integration/all/gems/railties-4.1.8/bin/rails (LoadError)
[20:41:35] neanderslob: has joined #RubyOnRails
[20:41:38] johnflux: I keep getting this error
[20:42:06] johnflux: i caused it by doing: sudo bundle clean --force
[20:42:58] bejar37: has joined #RubyOnRails
[20:44:13] bejar37: I'm seeing invalid serializations of ActiveSupport::TimeWithZone in 4.1.7
[20:44:21] bejar37: has anyone seen something like this?
[20:44:32] bejar37: it comes out like: 2015-09-02T23:32:39-02-30
[20:44:33] moei: has joined #RubyOnRails
[20:44:38] toretore: has joined #RubyOnRails
[20:44:48] bejar37: I think the last part needs to be 02:30
[20:44:49] smathy: rakm, you're welcome.
[20:45:10] TheNet_: has joined #RubyOnRails
[20:45:56] CanTonic: has joined #RubyOnRails
[20:47:50] bejar37: assuming that the last bit is time zone offset
[20:47:56] netzfisch: has joined #RubyOnRails
[20:50:25] ipstatic: has joined #RubyOnRails
[20:52:55] baweaver: has joined #RubyOnRails
[20:53:34] TheNet: has joined #RubyOnRails
[20:54:47] Lightsword: has joined #RubyOnRails
[20:55:30] tvw: has joined #RubyOnRails
[20:55:58] workmad3: has joined #RubyOnRails
[20:56:06] rhizome: is it possible to use respond_to in an action that has a guard using redirect_to? display a cart if it has items, redirect to store if empty
[20:56:11] x-light: has joined #RubyOnRails
[20:56:17] rhizome: sorry, respond_with
[20:56:33] Rubie: has joined #RubyOnRails
[20:57:10] dan0034001: has joined #RubyOnRails
[20:57:39] rhizome: oh blah, respond_with is removed in 4.2 anyway, might as well tear it out now
[20:57:41] dpm: has joined #RubyOnRails
[20:57:57] siddart_: has joined #RubyOnRails
[20:58:08] dan0034001: I have a many to many relationship (has_and_belongs_to_many) is there anyway i can order them within the has_and_belongs_to_many?
[20:58:18] maz-dev: has joined #RubyOnRails
[20:58:27] dan0034001: similar functionality to acts_as_list gem
[20:58:36] dpm_: has joined #RubyOnRails
[20:58:48] dan0034001: or simply put a position column in the join table?
[20:59:00] smathy: lagweezle, that's just how it works, Rails needs that so the class name matches the `belongs_to` name for joins and the like.
[20:59:10] Pupeno: has joined #RubyOnRails
[20:59:22] lagweezle: smathy: Okay! Awesome. Was hoping I didn't do something horribad.
[20:59:32] smathy: lagweezle, in fact, you used to have to override the token_type= method to set it to the right thing - Rails does that for us now.
[20:59:35] dpm__: has joined #RubyOnRails
[20:59:49] lagweezle: It's great, living in the future, smathy. ;)
[20:59:52] rushed: has joined #RubyOnRails
[21:00:09] smathy: rhizome, we've all switched to using the responders gem.
[21:00:20] maz-dev: has joined #RubyOnRails
[21:00:24] dpm___: has joined #RubyOnRails
[21:00:56] codenapper: has joined #RubyOnRails
[21:00:56] rhizome: that doesn't make me as happy
[21:01:17] dpm____: has joined #RubyOnRails
[21:02:13] dpm_____: has joined #RubyOnRails
[21:03:05] dpm: has joined #RubyOnRails
[21:04:00] dpm_: has joined #RubyOnRails
[21:04:18] smathy: I prefer having rails lean, just add the gems you want.
[21:04:57] dpm__: has joined #RubyOnRails
[21:05:48] dpm___: has joined #RubyOnRails
[21:06:41] dpm____: has joined #RubyOnRails
[21:07:36] dpm_____: has joined #RubyOnRails
[21:07:38] safety_cut: has joined #RubyOnRails
[21:08:32] dpm: has joined #RubyOnRails
[21:09:04] TheNet_: has joined #RubyOnRails
[21:09:22] dpm: has joined #RubyOnRails
[21:10:05] michael_mbp: has joined #RubyOnRails
[21:10:20] Pupeno_: has joined #RubyOnRails
[21:10:20] dpm_: has joined #RubyOnRails
[21:11:11] dpm__: has joined #RubyOnRails
[21:12:05] dpm___: has joined #RubyOnRails
[21:12:58] annlewis: has joined #RubyOnRails
[21:12:59] dpm____: has joined #RubyOnRails
[21:13:25] fgo: has joined #RubyOnRails
[21:13:54] dpm_____: has joined #RubyOnRails
[21:14:23] havenwood: has joined #RubyOnRails
[21:14:46] dpm: has joined #RubyOnRails
[21:15:19] kies: has joined #RubyOnRails
[21:15:45] dpm_: has joined #RubyOnRails
[21:16:21] DoctorMonocular: has joined #RubyOnRails
[21:16:35] dpm_: has joined #RubyOnRails
[21:17:22] Scripore: has joined #RubyOnRails
[21:17:30] dpm__: has joined #RubyOnRails
[21:18:23] dpm___: has joined #RubyOnRails
[21:18:24] dan0034001: has joined #RubyOnRails
[21:19:27] dpm: has joined #RubyOnRails
[21:20:12] dpm____: has joined #RubyOnRails
[21:21:05] andessen: has joined #RubyOnRails
[21:21:06] dpm_____: has joined #RubyOnRails
[21:21:53] Maletor: has joined #RubyOnRails
[21:22:10] dpm_: has joined #RubyOnRails
[21:23:04] dpm__: has joined #RubyOnRails
[21:23:37] ur5us: has joined #RubyOnRails
[21:23:48] dpm___: has joined #RubyOnRails
[21:24:41] dpm: has joined #RubyOnRails
[21:25:23] Doddlin: has joined #RubyOnRails
[21:25:37] sonofdirt: has joined #RubyOnRails
[21:25:37] dpm____: has joined #RubyOnRails
[21:25:40] Scripore: has joined #RubyOnRails
[21:26:08] Radar: good morning
[21:26:28] macq: has joined #RubyOnRails
[21:26:31] dpm_____: has joined #RubyOnRails
[21:27:11] jenrzzz: has joined #RubyOnRails
[21:27:26] slash_nick: Good morning, Radar
[21:27:26] dpm_: has joined #RubyOnRails
[21:27:29] andessen: has joined #RubyOnRails
[21:27:39] newdan: has joined #RubyOnRails
[21:28:07] newdan: Hi all, what's the best way to render simple text/plain from a controller method? E.g. I want a route to just say "Hello world"
[21:28:19] newdan: No layout or anything
[21:28:19] dpm__: has joined #RubyOnRails
[21:28:43] TheNet: has joined #RubyOnRails
[21:29:13] dpm___: has joined #RubyOnRails
[21:30:06] dpm: has joined #RubyOnRails
[21:30:10] slash_nick: newdan: render plain: "Hello world"
[21:30:16] Lightsword: has joined #RubyOnRails
[21:30:23] smathy: newdan, http://guides.rubyonrails.org/layouts_and_rendering.html - search for "rendering text"
[21:30:27] Jasaka: has joined #RubyOnRails
[21:31:01] dpm____: has joined #RubyOnRails
[21:31:18] BecomingCoder: has joined #RubyOnRails
[21:31:38] newdan: slash_nick: smathy ah thank you!
[21:31:56] dpm_____: has joined #RubyOnRails
[21:32:04] abhishekvasisht: has joined #RubyOnRails
[21:32:26] benybuds: has joined #RubyOnRails
[21:32:41] DrHouse|M6500: has joined #RubyOnRails
[21:32:42] benybuds: How do I create a new RoR bundle?
[21:32:49] dpm_: has joined #RubyOnRails
[21:33:27] smathy: benybuds, what's a RoR bundle?
[21:33:29] slash_nick: benybuds: not sure what you mean... you want to start with a fresh set of gems?
[21:33:43] dpm__: has joined #RubyOnRails
[21:33:58] Pupeno: has joined #RubyOnRails
[21:34:37] dpm___: has joined #RubyOnRails
[21:34:38] Aswebb_: has joined #RubyOnRails
[21:34:49] slash_nick: there's a handful of ways... rvm gemset empty; gem install bundler; bundle... another way would be to create a new gemset, then install gems to that (https://rvm.io/gemsets/using)
[21:34:52] LambdaSource: has joined #RubyOnRails
[21:35:41] dpm: has joined #RubyOnRails
[21:36:01] Jardayn: Yo guys, when I initialize backbone i get a "newline" error on a line of code that worked before
[21:36:27] dpm____: has joined #RubyOnRails
[21:37:04] Pupeno_W: has joined #RubyOnRails
[21:37:20] dpm_____: has joined #RubyOnRails
[21:37:51] finnnnnnnnnnn: has joined #RubyOnRails
[21:38:23] dpm_: has joined #RubyOnRails
[21:39:08] dpm__: has joined #RubyOnRails
[21:40:01] dpm: has joined #RubyOnRails
[21:40:51] altivection: has joined #RubyOnRails
[21:40:56] dpm___: has joined #RubyOnRails
[21:41:51] dpm____: has joined #RubyOnRails
[21:41:54] banister: has joined #RubyOnRails
[21:42:45] dpm_____: has joined #RubyOnRails
[21:42:48] daed: has joined #RubyOnRails
[21:43:38] dpm_: has joined #RubyOnRails
[21:43:41] smathy: Jardayn, are you in the right channel?
[21:43:56] Jardayn: Yes, cos it's a RoR issue it seems
[21:44:14] Jardayn: Using RoR+bb
[21:44:28] Pupeno: has joined #RubyOnRails
[21:44:32] dpm__: has joined #RubyOnRails
[21:44:59] crote: has joined #RubyOnRails
[21:45:26] dpm: has joined #RubyOnRails
[21:46:10] smathy: Jardayn, ok, so you're minimizing the BB file or, pushing it through the asset pipeline, or something? Explain your setup.
[21:46:14] macq: has joined #RubyOnRails
[21:46:21] dpm___: has joined #RubyOnRails
[21:46:28] Jardayn: smathy, i'm trying to setup backbone
[21:46:39] Jardayn: on a rails install, on windows
[21:46:50] SteenJobs: has joined #RubyOnRails
[21:46:56] Jardayn: when i add "# routes:
[21:46:57] Jardayn: # '/':'index' " to the backbone router - i get a "newline" error
[21:47:06] Jardayn: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
[21:47:07] Jardayn: from this line
[21:47:25] dpm____: has joined #RubyOnRails
[21:48:09] dpm_____: has joined #RubyOnRails
[21:49:10] dpm_: has joined #RubyOnRails
[21:49:57] dpm__: has joined #RubyOnRails
[21:50:18] crote: Quick question about ActiveRecord: Given a class with both a `has_many` and a `has_many: :through` association to a polymorphic class, how do I union the results of both associations while still being able to scope the result (i.e., without converting to an array) ?
[21:50:33] rhizome: ugh, current_foo was creating a new foo with every request, but tests were passing. fml, how do i test that, say, a session cookie doesn't change between requests?
[21:51:01] dpm: has joined #RubyOnRails
[21:51:10] smathy: Jardayn, !gist your code and the error you're getting.
[21:51:10] helpa: Jardayn: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[21:51:14] paulcsmith: has joined #RubyOnRails
[21:51:39] Jardayn: smathy, which code exactly?
[21:51:45] dpm___: has joined #RubyOnRails
[21:51:47] smathy: rhizome, not sure what I'm missing in your question here: set it, make the request, test it.
[21:52:00] rhizome: crote: if it's similar to something i've done that i'd describe similarly, not easily
[21:52:05] smathy: Jardayn, the error, and the code from the file that the error says it's in.
[21:52:07] rhizome: smathy: functional?
[21:52:11] smathy: rhizome, yeah.
[21:52:18] rhizome: cool, thanks
[21:52:23] smathy: (or I think they're now called "controller tests")
[21:52:30] dpm____: has joined #RubyOnRails
[21:52:30] Jardayn: it's 2 lines..
[21:52:31] Jardayn: <%= javascript_include_tag 'application', 'data-turbolinks-track' => false %>
[21:52:34] meatherly: has joined #RubyOnRails
[21:52:40] Jardayn: SyntaxError: [stdin]:2:9: unexpected newline
[21:53:17] crote: rhizome: damn, I thought I was missing something incredibly obvious :-/
[21:53:19] smathy: Jardayn, ok, well there are no routes mentioned on either of those two lines, so sorry - I have no idea why you'd be getting any error or why you were talking adding routes previously.
[21:54:52] meatherly: has joined #RubyOnRails
[21:55:02] TheNet_: has joined #RubyOnRails
[21:55:05] michael_mbp: has joined #RubyOnRails
[21:55:32] iateadonut: has joined #RubyOnRails
[21:56:15] wethu: has joined #RubyOnRails
[21:56:35] macq: has joined #RubyOnRails
[21:57:56] Aswebb_: has joined #RubyOnRails
[21:58:19] Radar: Jardayn: steps to reproduce in a new app plzkthx
[21:58:32] Jardayn: It's on windows
[21:58:36] havenwood: has joined #RubyOnRails
[21:59:13] Jardayn: But install rails -> install node -> scaffold basic users table -> scaffold users with the backbone extension -> add route : '': index to the backbone router
[21:59:22] Jardayn: I'll test it out on a ubuntu vm
[21:59:26] Jardayn: so don't worry for now )
[22:00:13] sonofdirt: has joined #RubyOnRails
[22:04:07] benybuds: can anyone tell me why rails tell me makefile:165
[22:04:30] benybuds: *** target pattern contains no `%'. Stop.
[22:04:30] yfeldblum: has joined #RubyOnRails
[22:04:52] grotewold: has joined #RubyOnRails
[22:05:09] havenn: has joined #RubyOnRails
[22:05:51] Exuma: has joined #RubyOnRails
[22:06:33] Lyhue: has joined #RubyOnRails
[22:08:06] smathy: ACTION ties his hands behind his back to avoid giving a smart ass answer
[22:08:32] smathy: benybuds, tell us what you're doing, and the gist the full error you're seeing.
[22:08:51] smathy: (I'm much more reasonable when typing with my nose)
[22:09:02] dopie: has joined #RubyOnRails
[22:09:12] Jasaka|NA: has joined #RubyOnRails
[22:09:29] rhizome: crote: do you happen to have an erd of your setup, or i guess gist your models
[22:09:45] baweaver: has joined #RubyOnRails
[22:09:50] Coldblackice: has joined #RubyOnRails
[22:09:52] rhizome: smathy: doesn't change in test, but does in the browser :/
[22:09:55] craysiii: can you paste on gist the entire stack trace
[22:12:29] ror15: has joined #RubyOnRails
[22:12:56] _djbkd: has joined #RubyOnRails
[22:13:13] smathy: rhizome, byebug
[22:13:32] ror15: anyone use Shoppe gem?
[22:13:35] annlewis: has joined #RubyOnRails
[22:13:55] altivection: has joined #RubyOnRails
[22:14:33] fgo: has joined #RubyOnRails
[22:14:35] smathy: ror15, just ask the question.
[22:15:01] rhizome: i know where the error is, and how to fix it, so it's fixed in browser, but i can't make it fail in test
[22:15:18] gambl0re: how long does it take to learn haml
[22:15:46] rhizome: 1 day should get you going
[22:16:12] rhizome: it's not that different than ERB for the most part
[22:16:35] gambl0re: its different
[22:17:03] bronson: has joined #RubyOnRails
[22:17:27] civillian: has left #RubyOnRails: ()
[22:18:18] ror15: getting a nomethoderror 'orderable?'
[22:18:37] MartinElvar: has joined #RubyOnRails
[22:19:13] rhizome: it's different, but not that different
[22:19:13] ror15: i know that's vague..
[22:22:11] ror15: it's an ecommerce gem - when saving a new product i save permalink as the route id, then when adding (perams[:permalink]) to the shopping cart i get the nomethoderror 'orderable?' for nilclass
[22:22:51] jenrzzz: has joined #RubyOnRails
[22:24:42] pwnd_nsfw: got any code ror15?
[22:25:03] Palsson: has joined #RubyOnRails
[22:25:08] theery: has joined #RubyOnRails
[22:25:14] sonofdirt: has joined #RubyOnRails
[22:25:17] gambl0re: so basically you use % in th beginning of every line?
[22:25:22] smathy: rhizome, so maybe you've not set the situation up properly - missing some session info, or some context. Maybe try using an integration test instead.
[22:25:40] annlewis: has joined #RubyOnRails
[22:26:03] ror15: https://gist.github.com/a9f74e1efe08c7073255.git
[22:26:25] ror15: it's caught on line 4
[22:26:28] gambl0re: why do people create stuff like haml...it just makes it more complicated and more things to learn that is unnecessary
[22:26:53] ror15: the methods are defined in the model
[22:27:07] sam_weerasinghe: haml is great btw
[22:27:28] drale2k: has joined #RubyOnRails
[22:27:36] gambl0re: great in what way exactly
[22:27:44] pwnd_nsfw: haml makes everything so clean and yummy
[22:28:05] ror15: that link is broken isnt it
[22:28:07] sonofdirt: has joined #RubyOnRails
[22:28:47] smathy: ror15, for next time, just copy the link from your browser's address bar, not the clone URL.
[22:28:56] smathy: Ie.: https://gist.github.com/a9f74e1efe08c7073255
[22:29:25] workmad3: has joined #RubyOnRails
[22:29:32] ror15: it just removes the .git
[22:29:42] smathy: ror15, right, so product_path is expecting just the @product (or @product.id) not the permalink string.
[22:29:49] sonofdirt: has joined #RubyOnRails
[22:29:49] Encapsulation: has joined #RubyOnRails
[22:30:19] smathy: ror15, it's a helper method for generating a path.
[22:30:26] smathy: ror15, which is what redirect_to expects.
[22:30:31] gambl0re: is rails still in development?
[22:30:40] gambl0re: when was its most major upgrade?
[22:31:00] rhizome: TFW blog posts have bad code rendering
[22:31:02] smathy: gambl0re, https://rubygems.org/gems/rails/versions
[22:31:24] gambl0re: do rails devs generally get paid more than php devs?
[22:31:30] grotewold: has joined #RubyOnRails
[22:32:20] smathy: gambl0re, https://goo.gl/n3edH1
[22:32:28] gambl0re: is there going to be a rails 5 coming out?
[22:32:39] gambl0re: or did they stop developing rails?
[22:32:53] smathy: gambl0re, I don't really know what you're asking, the most major upgrade in terms of API change was probably 2 -> 3
[22:33:10] Pathfinder: has joined #RubyOnRails
[22:33:37] ror15: yeah but isn't the @product defined by the param permalink?
[22:34:03] smathy: gambl0re, no, feature development continues, and Rails 5 is under development now: http://weblog.rubyonrails.org/
[22:34:30] gambl0re: i never heard of aws language
[22:34:42] smathy: ror15, only if your DB is very unusual and you manually overrode the Rails defaults and set the permalink as the primary key.
[22:34:59] gambl0re: and why is python paid so much?
[22:35:50] smathy: gambl0re, heh, yeah, many of those articles aren't written by very technical people.
[22:35:57] smathy: gambl0re, market forces.
[22:36:09] smathy: What are we up to now? It's gotta be close to 20.
[22:36:16] smathy: I hope I win a trip somewhere.
[22:39:16] dnewkerk_: has joined #RubyOnRails
[22:41:36] michael_mbp: has joined #RubyOnRails
[22:42:27] neanderslob: has joined #RubyOnRails
[22:43:08] Aswebb_: has joined #RubyOnRails
[22:43:58] nertzy: has joined #RubyOnRails
[22:45:34] Aswebb_: has joined #RubyOnRails
[22:45:45] northfurr: has joined #RubyOnRails
[22:47:31] theery: has joined #RubyOnRails
[22:50:10] Lightsword: has joined #RubyOnRails
[22:51:00] gambl0re: when you use form_for html:{multipart: true_
[22:51:05] gambl0re: when you use form_for html:{multipart: true}
[22:51:10] gambl0re: what does that do
[22:51:52] Radar: http://guides.rubyonrails.org/form_helpers.html#uploading-files
[22:51:55] helpa: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[22:52:32] hifriends: has joined #RubyOnRails
[22:52:43] alexhartley: has joined #RubyOnRails
[22:54:40] bricker: 5 day weekend ahead
[22:54:42] bricker: be jealous
[22:54:56] northfurr: has joined #RubyOnRails
[22:55:02] Radar: 3 weeks paid vacation in a little over a week. be jealouser
[22:55:30] hifriends: Radar: going anywhere sweet?
[22:55:38] Radar: hifriends: just Canada. Nothing special </trollface>
[22:55:41] dnewkerk: hey Radar - I finally got Sidekiq running in production, woo hoo!
[22:55:52] Radar: Montreal, Quebec City and up the St. Laurence
[22:56:03] Radar: dnewkerk: great :) How's it treating you?
[22:56:35] Pazician_: has joined #RubyOnRails
[22:56:36] michael_mbp: has joined #RubyOnRails
[22:56:53] glennt: has joined #RubyOnRails
[22:56:59] hifriends: so Im getting this error in a very strange situation. https://gist.github.com/anonymous/08dfda2158acd43b8d8e any idea how I can work through this. Im tying to build a vagrant box with a git check out of the code to test with. the production boxes with this rails app working dont have that gem installed. its just in the vendor/cache. how ever when I start the app from the code base vs the installed rpm like prod im geting that
[22:57:05] hifriends: The gem IS in the vendor/cache of the checkout as well
[22:57:22] dnewkerk: Radar: love it??? I had a heck of a time due to some misleading AWS documentation (we currently use OpsWorks)??? but on the other hand I learned a lot about writing Chef cookbooks and troubleshooting on ec2 instances :P
[22:57:35] Radar: dnewkerk: heh
[22:58:06] Radar: hifriends: what does .bundle/config contain?
[22:58:23] hifriends: Radar: on the vagrant box or production?
[22:58:32] rushed: has joined #RubyOnRails
[22:58:33] Radar: hifriends: wherever the issue is happenign
[22:58:47] Radar: Excuse the shocking typing today. I have an injured finger
[22:59:19] hifriends: Radar: it doesnt exist :| let me copy that. thank you
[22:59:24] Radar: hifriends: hm
[22:59:30] Radar: hifriends: I am not sure what could be happening then, sorry.
[22:59:36] dnewkerk: Radar: I couldn???t for the life of me get a connection to redis in production, AWS documentation had me generate a redis.yml config file, but eventually I realized it was never even being read - OpsWorks starts Rails before the config file was actually generated. I finally scrapped their recommended way and used my own REDIS_URL env variable, and viola!
[22:59:38] hifriends: maybe its that it doesnt exist
[22:59:40] hifriends: it does exist in prod
[22:59:43] Radar: hifriends: yeah, that could be it
[22:59:52] Radar: hifriends: If it doesn't exist then Bundler would look for them on the system.
[22:59:54] Radar: them == gems
[23:00:06] Radar: dnewkerk: nice :)
[23:00:11] hifriends: k, that might be it. testing
[23:00:48] hifriends: Radar: thank you!
[23:00:52] hifriends: that was it
[23:01:48] ProLoser: has joined #RubyOnRails
[23:03:23] mary5030: has joined #RubyOnRails
[23:03:31] dnewkerk: Radar: ended up using upstart like you recommended??? I used an existing cookbook I found but it didn???t have the latest version of sidekiq???s upstart scripts, so I figured out how to upgrade the cookbook to use them, fun fun
[23:03:42] dnewkerk: https://github.com/dnewkerk/opsworks-sidekiq
[23:04:37] EvilEpoch: has joined #RubyOnRails
[23:05:18] jesterfraud: has joined #RubyOnRails
[23:06:56] JoshL: has joined #RubyOnRails
[23:11:06] michael_mbp: has joined #RubyOnRails
[23:12:09] Radar: hifriends: Also great :)
[23:15:40] fgo: has joined #RubyOnRails
[23:16:52] rushed: has joined #RubyOnRails
[23:17:21] startupality: has joined #RubyOnRails
[23:17:23] grotewold: has joined #RubyOnRails
[23:17:35] existensil: has joined #RubyOnRails
[23:19:53] baweaver: has joined #RubyOnRails
[23:23:07] theery: has joined #RubyOnRails
[23:25:06] michael_mbp: has joined #RubyOnRails
[23:25:38] pwnd_nsfw: GIBBON Y U GIEV ME ISSUES
[23:25:47] ngscheur1: has joined #RubyOnRails
[23:25:51] LambdaSource: has joined #RubyOnRails
[23:25:57] pwnd_nsfw: Got it to work once, deleted data to retry, and now I can't seem to get it together lol
[23:27:19] Radar: ACTION has had an entire week of pebkac
[23:27:30] daed: Radar: have you rebooted yourself with a dose of LSD yet?
[23:27:45] Radar: daed: Can't say I have.
[23:27:52] pwnd_nsfw: Radar, that's my guess.
[23:28:11] drale2k: has joined #RubyOnRails
[23:28:12] pwnd_nsfw: LSD sounds like an interesting way to reboot
[23:28:23] pwnd_nsfw: Sit one week in startup
[23:28:38] Radar: craysiii: !rule1
[23:28:38] helpa: craysiii: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[23:28:51] craysiii: oh *that* LSD
[23:29:16] Pathfinder: has joined #RubyOnRails
[23:29:22] pwnd_nsfw: "The resource 'ThrowsExceptions_Instance' could not be found."
[23:29:25] pwnd_nsfw: That doesn't even make sense.
[23:29:26] daed: radar doesn't often take doses of limited slip differentials
[23:29:30] ProLoser: has joined #RubyOnRails
[23:29:44] Radar: pwnd_nsfw: I'm sure it makes sense to someone :D
[23:29:50] pwnd_nsfw: Radar, you're probably right
[23:30:01] pwnd_nsfw: I'm not searching for a damn exception though.
[23:31:37] ariedler: has joined #RubyOnRails
[23:32:44] paulcsmith: has joined #RubyOnRails
[23:33:06] pwnd_nsfw: Da hell... I disable gibbon's throwing of exceptions, and then it works.
[23:33:14] nzst: has joined #RubyOnRails
[23:33:53] meatherly: has joined #RubyOnRails
[23:36:22] Radar: What even is gibbon?
[23:36:37] pwnd_nsfw: Mailchimp api wrapper
[23:36:44] meatherly: has joined #RubyOnRails
[23:37:03] baweaver: has joined #RubyOnRails
[23:37:12] craysiii: Radar you should have googled that, come on now.
[23:37:27] existensil: has joined #RubyOnRails
[23:37:28] helpa: PEDANT DETECTED. DISPERSING CUPS OF CALM THE FUCK DOWN.
[23:37:38] Radar: Wasn't sure if it was a gem or something else.
[23:37:47] baweaver: They're right Radar, you should have googled that
[23:37:54] baweaver: which that are we talking about now?
[23:38:07] michael_mbp: has joined #RubyOnRails
[23:38:13] JohnDotHR: has joined #RubyOnRails
[23:38:18] sandy___: has joined #RubyOnRails
[23:38:22] pwnd_nsfw: Googling gibbon would give you a bird
[23:38:26] pwnd_nsfw: right off the bat
[23:38:50] pwnd_nsfw: HOWEVER, if you know the magic of google... you'd just say gibbon rails/ruby etc
[23:38:52] craysiii: wheres the bing command :)
[23:39:00] Radar: Bird? I get monkeys
[23:39:06] chipotle: has joined #RubyOnRails
[23:39:06] Radar: Sorry, apes
[23:39:10] pwnd_nsfw: Radar, oh right. yes, apes
[23:39:12] Radar: ACTION ducks the incoming pedanticness
[23:39:30] jesterfraud: has joined #RubyOnRails
[23:39:32] Radar: craysiii: I see what you did there.
[23:39:33] craysiii: ACTION fulfills the prophecy
[23:39:57] existensil: has joined #RubyOnRails
[23:40:07] helpa: we do not like the term monkeys here as certain primates prefer specific names
[23:42:35] pwnd_nsfw: I didn't know they made IRC for primates
[23:42:42] pwnd_nsfw: I think we're in the clear
[23:43:15] craysiii: they chill on banananode
[23:44:09] chipotle: Radar: are you arounmd?
[23:44:23] baweaver: probably best to just ask your question.
[23:44:25] Radar: chipotle: !g time in melbourne
[23:44:31] chipotle: we spoke earlier, but i ended up having to go to the ER as i had severe head pain and nausea. i'm still in the hospita... i just got admitted
[23:44:40] chipotle: but i wasnted to say i am not ignoring you
[23:44:41] paulcsmith: has joined #RubyOnRails
[23:44:44] Radar: chipotle: If that shows between 9am and 5:30pm on a Monday - Friday you can basically guarantee that I am around.
[23:44:46] NBarnes: I like 'East African Plains Ape'.
[23:44:53] NBarnes: It has dignity as well as accuracy.
[23:45:01] Radar: chipotle: Oh. I guess that was the _wrong_ voodoo doll. My bad.
[23:45:01] chipotle: it's just since being in the hospital, i've gotten morphine 10mg iv every 45 minutes, lots of benadryl, versed, and valium and i can barely keep my eyes open
[23:45:18] chipotle: voodoo doll?
[23:45:27] Radar: I am just kidding around.
[23:45:28] chipotle: oh and they gave me a slow ketamine drip, so i'm a bit spacey too
[23:45:35] Radar: I hadn't noticed.
[23:45:46] NBarnes: Ketamine usually doesn't result in a 'bit' of spaciness.
[23:45:52] NBarnes: It's a relatively powerful disassociant.
[23:45:54] chipotle: i really appreciate you reaching out the other day. i feel so overwhelmed and lost i felt like you saying hi was really helpful and grounded me
[23:46:04] chipotle: Radar: well i'm not in a bona fide k hole, if i was, i woulsdn't be typing now
[23:46:21] chipotle: it's just a slow drip, 20mg per hour. for a k hole, i need 150mg in 30 minutes or 200mg IM
[23:46:21] Radar: chipotle: heh :) I am glad that just saying hi could help.
[23:46:32] chipotle: nbarnes: depends on the dose
[23:46:41] chipotle: i'm getting a very very slow drip IV
[23:46:51] NBarnes: Probably so, I suppose.
[23:46:51] dnewkerk: chipotle: hope you feel better
[23:46:55] pwnd_nsfw: chipotle, damn you must be on a crazy nod with all of that going on
[23:46:55] chipotle: 20mg per hour for someone who isn't tolerant might get them close to a k hole
[23:47:10] chipotle: but i've been on ketamine ever since the second month i was diagnosed with brain cancer so i'm used to the medicine
[23:47:11] craysiii: so you're saying you're tolerant? ;)
[23:47:14] theery: has joined #RubyOnRails
[23:47:15] NBarnes: And, yes, Jesus, whatever happened to make you need that much advanced pharmacology, get better soon.
[23:47:21] pwnd_nsfw: I wouldn't compare ket to opiates
[23:47:25] beauby: has joined #RubyOnRails
[23:47:38] greengriminal: has joined #RubyOnRails
[23:47:55] NBarnes: Ket isn't a bit like opiates except that you can use them both for pain. It's not even a 'pain killer' in the normal sense; you just stop caring so much about your body's pain.
[23:47:59] rhizome: anesthetics are different than pain killers
[23:48:10] pwnd_nsfw: dissociative drugs are fun
[23:48:15] EvilEpoch: Warm Greetings to all, I am The EvilEpoch.
[23:48:33] pwnd_nsfw: I don't see a "The" in your nick
[23:48:34] NBarnes: I say you to, EvilEpoch, KNOCK OFF ALL THAT EVIL!
[23:48:36] robbyoconnor: has joined #RubyOnRails
[23:48:46] robbyoconnor: has joined #RubyOnRails
[23:49:02] EvilEpoch: The EvilEpoch is merely an EvilEpoch.
[23:49:09] EvilEpoch: Greetings to nbarnes from The EvilEpoch.
[23:49:09] Radar: The EvilEpoch must exist to balance the MINASWAN for one cannot exist without the other.
[23:49:18] pwnd_nsfw: chipotle, where are you that they put you on ket? I didn't think that was a normal thing for humans
[23:49:20] EvilEpoch: Greetings to Radar from The EvilEpoch.
[23:49:22] pwnd_nsfw: maybe he's a monkey
[23:49:30] Radar: Greetings to The EvilEpoch.
[23:50:07] chipotle: pwnd_nsfw: do i look out of it here? this is when they gave me a loading dose of 75mg IV of ketamine after 1mg of versed, 1mg of ativan and 10mg of morphine
[23:50:08] chipotle: https://scontent.forf1-2.fna.fbcdn.net/hphotos-xap1/t31.0-8/1517746_10152917610437132_5842378868141517391_o.jpg
[23:50:14] chipotle: pwnd_nsfw: nyc
[23:50:57] pwnd_nsfw: Interesting. They've got you on a ton of stuff.
[23:51:04] chipotle: my dr is an expert in ketamine used IV and intranasally for pain and LSD (he just published a paper on the effects of LSD and pain). i also have a medical marijuana card from massachusetts it allows me 10 ounces a month. i have never had weed before, so i don't know if that's a lot or not
[23:51:13] pwnd_nsfw: Are you at like... the trap hospital (as opposed to house)
[23:51:18] chipotle: i have a port because i have a genetic clotting disorder
[23:51:24] chipotle: i have no IV access otherwise
[23:51:27] chipotle: that's what that thing is in my chest
[23:51:34] pwnd_nsfw: That's pretty badass
[23:51:37] chipotle: i'm at NY presbyterian Cornell medical center
[23:51:40] NBarnes: Ket isn't a normal part of pain management. But it's useful for some things. Like, if you're in so freaking much pain that more of the mainstream painkillers will make your liver wave the white flag. Or eat a hole in your stomach. More of one, at least.
[23:51:41] craysiii: i couldnt get through 10 ounces a month and i have my medicinal card, but then again i only have neck/back pain.
[23:52:00] pwnd_nsfw: 10 ounces a month haha
[23:52:16] craysiii: 2 ounces a week about
[23:52:26] NBarnes: I should ask my wife what her usage is. I don't actually know (and I don't, myself).
[23:52:35] pwnd_nsfw: A q would satisfy me for at least 4 days
[23:52:43] pwnd_nsfw: But that's with friends
[23:53:00] craysiii: a quarter lasts me 3 weeks alone
[23:53:09] pwnd_nsfw: Do you push your leftovers? :P
[23:53:16] pwnd_nsfw: Personal question
[23:53:26] chipotle: nbarnes: ketamine is used often for cancer pts and cluster headaches
[23:53:28] chipotle: it works well
[23:53:36] chipotle: either as an adjunct to opioids or alone
[23:53:54] pwnd_nsfw: Will all of the stuff you're on, I'd just ask them for med grade heroin
[23:53:55] chipotle: i use it intranasally 1-2x a day when i have little flare ups, i get about 20-40mg which has a 50% bioavailbility
[23:54:09] chipotle: and twice a week i do a k hole dose which requires me IMing 200mg in my thigh
[23:54:15] NBarnes: chipolte; as a 'not even compares to your story', I had a _delightful_ conversation with my sleep doc a few weeks ago. 'I want you to take this referral and go to an ear, nose, and throat specialist I know. It's almost certainly not lymphoma.'
[23:54:20] NBarnes: Thanks, doc.
[23:54:33] babykosh: has joined #RubyOnRails
[23:54:37] alexhartley: has joined #RubyOnRails
[23:54:48] chipotle: since doing that, i've cut down ms contin (morphine extended release) usage from 180mg a day (60 x 3) to 40mg a day (20mg x 2)
[23:54:48] NBarnes: I hadn't heard of key for cluster headaches, but it makes sense, hearing of it.
[23:55:06] patrick_star: has joined #RubyOnRails
[23:55:14] pwnd_nsfw: Slippery slope chipotle lol
[23:55:20] craysiii: headaches can be the worst. i had a debilitating headache for 2 weeks straight, couldn't function.
[23:55:25] chipotle: what's a q?
[23:55:27] pwnd_nsfw: Opiate tolerance is terrible. Opiate withdrawal is infinitely worse.
[23:55:33] craysiii: 1/4 of an ounce
[23:55:37] michael_mbp: has joined #RubyOnRails
[23:55:49] chipotle: pwnd_nsfw: heroin isn't legal in the US for pain
[23:55:55] pwnd_nsfw: I know, it was a joke.
[23:56:01] chipotle: i find morphine works better than dilaudid which according to heroin addicts is pretty close
[23:56:03] pwnd_nsfw: I used to live close to you, in NJ. In NC now.
[23:56:11] NBarnes: Morphine and heroine are more than kissing cousins....
[23:56:12] chipotle: i use fentanayl intranasal too
[23:56:14] pwnd_nsfw: dilaudid has a better rush, I hear haha
[23:56:18] chipotle: i try to save ketamine for when the pain is super bad
[23:56:28] craysiii: but have you ever tried it... on RAILS?
[23:56:38] circ-user-yT5k4: has joined #RubyOnRails
[23:56:55] NBarnes: gem install morphine_ruby
[23:57:16] chipotle: yeah, i have horrible constipation. in a good week, i go to the bathroom once. in a bad week, i go every 8-10 days :/
[23:57:24] NBarnes: I did that once and my computer locked up and didn't do anything for an hour or so. And it was really sluggish for a while afterwards. Ever since, it just types that command in all on its own every once in a while.
[23:57:33] chipotle: i don't know what they mean by a rush of opioids
[23:57:37] chipotle: i haven't felt it i don't think
[23:57:44] jholm: has joined #RubyOnRails
[23:57:47] quazimodo: has joined #RubyOnRails
[23:57:53] NBarnes: You don't usually get it when using it for pain.
[23:58:45] benybuds: okay, i need some help. i have Rails off of RailsInstaller 2.2.2
[23:58:49] pwnd_nsfw: When I was a user, I'd go like.. all month without a bowel movement. That's basically when I would take a day or two off to do just that. Was rough passing a damn football
[23:59:04] Radar: pwnd_nsfw: nbarnes: chipotle: craysiii: could you take this to #ruby-offtopic?
[23:59:15] pwnd_nsfw: Yeah, sorry, was going to say "shhh, a ruby question"
[23:59:23] Radar: Thanks all :)
[23:59:24] benybuds: I try to install a new project: 'rails new prjkt'
[23:59:24] NBarnes: Yes, beny?