« Back to channel list

#RubyOnRails - 26 April 2016

« Back 1 day Forward 1 day »
[00:03:33] Sawbones_: has joined #RubyOnRails
[00:04:28] rickmasta: has joined #RubyOnRails
[00:11:47] smathy: Radar, heh, no - just didn't look at timestamps, it was a few hours ago - but unanswered and just half a screen back ;)
[00:14:09] moeabdol1: has joined #RubyOnRails
[00:15:02] delgiudices: has joined #RubyOnRails
[00:20:01] siaW: i get this https://gist.github.com/siaw23/d27d2596155dacd466a6114a375744b3
[00:20:08] siaW: when i start foreman, any ideas how to fix it?
[00:22:27] jhack: has joined #RubyOnRails
[00:23:39] baweaver: has joined #RubyOnRails
[00:25:35] Radar: siaw: you didn't add the gdbm gem to your Gemfile and something in your app is depending on it, by the looks of things.
[00:27:13] pawnbox: has joined #RubyOnRails
[00:31:37] GriffinHeart: has joined #RubyOnRails
[00:34:12] rahult_: has joined #RubyOnRails
[00:37:20] Ropeney: has joined #RubyOnRails
[00:38:17] chipotle: has joined #RubyOnRails
[00:38:21] macsteps: has joined #RubyOnRails
[00:38:59] Sawbones: has joined #RubyOnRails
[00:39:07] Jasaka|NA: has joined #RubyOnRails
[00:39:17] roamingdog: has joined #RubyOnRails
[00:39:29] mfilipe: I have a category model which belongs to a company model and I want the name attribute to be uniqueness when compared with the names of other categories of a same company. how could I do that?
[00:39:33] joshkovach: has joined #RubyOnRails
[00:39:55] Radar: mfilipe: ^
[00:40:03] mfilipe: Radar, thanks! :D
[00:42:55] roamingdog: has joined #RubyOnRails
[00:45:25] dev2: has left #RubyOnRails: ()
[00:46:43] superlou: has joined #RubyOnRails
[00:47:52] pawnbox: has joined #RubyOnRails
[00:49:28] TSCHAK: has left #RubyOnRails: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[00:51:09] blackmesa: has joined #RubyOnRails
[00:55:08] GriffinHeart: has joined #RubyOnRails
[00:58:05] allcentury: has joined #RubyOnRails
[00:58:20] Disavowed: has joined #RubyOnRails
[00:59:58] sevenseacat: has joined #RubyOnRails
[01:02:09] DragonPunch: has joined #RubyOnRails
[01:02:11] RahulT: has joined #RubyOnRails
[01:02:15] bronson: has joined #RubyOnRails
[01:03:16] htmldrum: has joined #RubyOnRails
[01:05:48] w1lson: has joined #RubyOnRails
[01:06:39] speakingcode: has joined #RubyOnRails
[01:07:29] King_Rex: has joined #RubyOnRails
[01:10:11] Darmani: Radar: Hey
[01:10:28] Radar: Darmani: hi
[01:10:51] Darmani: Radar: How are you man?
[01:11:00] Radar: That is not your usual kind of question.
[01:11:10] RahulT: has joined #RubyOnRails
[01:11:32] Darmani: Haha that's a bit sad to be honest.
[01:11:52] Radar: For you or for me?
[01:12:17] Darmani: I should at least show some kindness before asking for help or advice lol
[01:12:37] sevenseacat: the best thing would be if you paid it forward a bit
[01:12:47] sevenseacat: help others out, and get help yourself too
[01:13:15] Darmani: sevenseacat: Duly noted.
[01:13:49] Radar: Is that empathy I see peeking out there
[01:14:04] Radar: this is the internet. Please lock your empathy away in a box and then throw it into the ocean.
[01:14:16] Darmani: Radar: Ha.
[01:14:24] Jasaka|NA: has joined #RubyOnRails
[01:14:30] Darmani: How is your wife Radar?
[01:15:01] Radar: We're both doing well, thanks for asking :)
[01:15:31] Darmani: Good to hear ^.^
[01:16:29] cnk: GRRRRRRRRRRRRRRR
[01:16:44] cnk: how do I get rbenv to actually find things bundler installed?
[01:16:57] morenoh149: has joined #RubyOnRails
[01:17:08] morenoh149: in ror you don't test database interactions do you?
[01:17:23] morenoh149: you typically mock out the db altogether
[01:17:56] fryguy: cnk: how did you install bundler
[01:17:57] cnk: bundle install shows long list of installed stuff; gem list, not so much; bundle exec gem list complains about the spec file for the repo that had the Gemfile
[01:18:15] bradleyprice: has joined #RubyOnRails
[01:18:28] cnk: that may be my issue - that appears ot be /usr/bin/bundle
[01:18:36] fryguy: yah that's not right
[01:19:15] cnk: damn I had assumed bundler came in when I installed the ruby
[01:19:15] Radar: [11:17:23] <morenoh149> you typically mock out the db altogether
[01:19:18] cnk: it does with RVM
[01:19:38] Radar: cnk: RVM also installed a new kitchen sink in my house which intersects in ways physics can not yet explain with the old sink.
[01:19:41] morenoh149: Radar: got any reading material?
[01:19:50] Radar: morenoh149: !r4ia
[01:19:50] helpa: morenoh149: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[01:20:23] cnk: Ya there's a lotta hate around for RVM. That's why I am prototyping an rbenv install for my collegues
[01:20:48] Radar: rbenv is good
[01:21:05] Radar: I use chruby+ruby-install and recommend it in several blog posts
[01:21:35] cnk: that's the 3rd one I didn't remember the name of
[01:21:41] Radar: morenoh149: In every app I've built, we've never stubbed out database interaction because database interaction is a critical part to making a production environment work
[01:22:19] |splat|: has joined #RubyOnRails
[01:22:49] morenoh149: must be I heard that advice for getting the test suite to run under a minute. But then we should also have a comprehensive test suite mode with db interactions as well as selenium testing.
[01:23:30] GriffinHeart: Hi everyone, in rails c when I do Rails.logger.debug 'something' I get something twice in the output, how would I start debugging this?
[01:24:20] GriffinHeart: Config seems ok, with just a tagged logger going to a logger for the STDOUT
[01:24:51] |splat|: hey guys, got a newbie question. i thought it'd be fun to learn rails by making a rpg-ish game. so i've gone thru a bunch of tutorials and got most of the website things up and running but i'm at the part where i actually make the game and such. so i was thinking my character model would have the main details like name, level, type. and it would pull in a stats model that had things like
[01:24:51] |splat|: health and mana in it.
[01:24:56] Radar: GriffinHeart: Because Rails outputs whatever's output to the logs, in the console by dfault.
[01:25:02] morenoh149: GriffinHeart: I only know python C
[01:25:17] morenoh149: oh console nvm
[01:25:20] GriffinHeart: morenoh149: rails console
[01:25:52] GriffinHeart: Radar: Even when you set it to the stdout?
[01:26:02] Radar: GriffinHeart: console is stdout.
[01:26:08] |splat|: i'm unsure if it makes sense to break out the stats into its own model. i was thinking it'd be best so i can just do something like 'stats.each do |key, var| ... ' for things like leveling up
[01:26:13] Radar: It's behaving correctly.
[01:26:58] GriffinHeart: Radar: Yeah sure, I'm just saying like if you already have the logs going to STDOUT (by logger configuration) seems a bit redundant to also log again there
[01:27:26] Radar: GriffinHeart: ...
[01:27:32] Radar: GriffinHeart: The console output is usually STDOUT
[01:27:38] Radar: GriffinHeart: By logging to STDOUT, you are logging to the same place
[01:27:48] Radar: So of course it's going to show it up twice!
[01:27:51] GriffinHeart: Radar: I understand the behaviour in other outputs, like file, it would be a pain to always have to open
[01:29:20] GriffinHeart: Radar: I understand why it's logging twice since you said it outputs whatever goes into the logger to the console, just wondering if a change would be accepted
[01:29:37] Radar: to fix a bug which isn't there?
[01:29:44] Radar: because this is expected behaviour?
[01:30:21] GriffinHeart: I didn't call it a bug, I would call it an improvement? Detect if the logger outputs to the stdout, if it does and we're in the console then don't output again
[01:30:35] GriffinHeart: tada no more double output :P
[01:31:57] GriffinHeart: actually thought it was a bug or some gem messing up my logger, didn't find the article that talks about the logger console output.
[01:33:26] GriffinHeart: Radar: Thanks for the quick clarification, it has been bugging me for quite a while
[01:34:45] one_zero: has joined #RubyOnRails
[01:35:48] DragonPunch: has joined #RubyOnRails
[01:37:06] |splat|: i'm also kind of unsure of the character creation process if i do break it out. i do have character_controller which has def new, which calls @character = Character.new. so i guess i'd do a @stat = Stat.new there too. then when i have 'def create ... if @character.save ...' i'd need to save @stat at the same time, so i'd do 'def create ... if @character.save and @stat.save ... ' ?
[01:38:00] bradleyprice: has joined #RubyOnRails
[01:38:16] jhack: has joined #RubyOnRails
[01:39:48] meinside: has joined #RubyOnRails
[01:41:08] one_zero: has joined #RubyOnRails
[01:45:16] roamingd_: has joined #RubyOnRails
[01:48:59] GriffinHeart: Radar: Would you say this is the place where that behaviour is being turned on? https://github.com/rails/rails/blob/4-2-stable/railties/lib/rails/commands/server.rb#L14
[01:49:17] Radar: That's the Rails server ("rails s")
[01:50:43] GriffinHeart: hmmm...was trying to follow the rails c command but get lost in https://github.com/rails/rails/blob/4-2-stable/railties/lib/rails/engine.rb#L435
[01:52:04] Radar: Well if the server command is at rails/commands/server, where would the console one be?
[01:53:47] GriffinHeart: Oh yes, I've found that and calls app.load_console (in the engine)
[01:53:56] brendan-: has joined #RubyOnRails
[01:56:38] EasyCo: has joined #RubyOnRails
[01:56:43] pwnd_nsfw: psht, /console
[01:57:04] SteenJobs: has joined #RubyOnRails
[01:57:44] Radar: GriffinHeart: I can't find the spot where Rails is configured to read from the log into the console
[01:59:03] GriffinHeart: Radar: Thank you, guess I'll keep looking when I have more time. I want to get more familiar with the internals of Rails
[02:01:53] The_Phoenix: has joined #RubyOnRails
[02:02:34] moeabdol1: has joined #RubyOnRails
[02:05:05] rahult_: has joined #RubyOnRails
[02:18:52] GriffinHeart: has joined #RubyOnRails
[02:19:04] jenrzzz: has joined #RubyOnRails
[02:24:42] Ropeney: has joined #RubyOnRails
[02:28:09] htmldrum: has joined #RubyOnRails
[02:28:50] agent_white: has joined #RubyOnRails
[02:30:15] Darmani: agent_white: Hey friend ^.^
[02:30:19] Darmani: long time no see
[02:30:20] Ropeney: morning :D
[02:30:43] agent_white: Darmani: \o How goes it?
[02:31:35] Darmani: agent_white: it goes.
[02:31:40] Darmani: painfully.
[02:32:00] Dreamer3: has joined #RubyOnRails
[02:33:48] Darmani: ACTION sighs
[02:34:10] Darmani: agent_white: why is life so hard.
[02:34:16] Darmani: tell me why.
[02:34:36] agent_white: To teach us what the opposite of hard is
[02:34:58] Darmani: that one went over my head
[02:35:00] Darmani: and hit the wall.
[02:35:23] agent_white: You can only tell what hard is, if you know what hard isn't.
[02:35:50] Darmani: agent_white: That sounds like something you would find on a fortune cookie.
[02:36:16] agent_white: ACTION <- PhD in fortunes
[02:36:38] Darmani: ACTION <- is overly sarcastic and can make people laugh
[02:36:47] Darmani: ACTION <- some people anyway
[02:39:55] joshkovach: has joined #RubyOnRails
[02:40:06] braincra-: has joined #RubyOnRails
[02:40:55] bradleyprice: has joined #RubyOnRails
[02:46:11] ishamo: has joined #RubyOnRails
[02:48:06] zave: has joined #RubyOnRails
[02:58:27] bob434: has joined #RubyOnRails
[03:04:06] berserk_ren: has joined #RubyOnRails
[03:04:12] bronson: has joined #RubyOnRails
[03:04:37] Spami: has joined #RubyOnRails
[03:05:08] pawnbox: has joined #RubyOnRails
[03:07:35] SeanLazer: has joined #RubyOnRails
[03:11:47] braincrash: has joined #RubyOnRails
[03:13:19] twilling: has joined #RubyOnRails
[03:16:31] p1k: has joined #RubyOnRails
[03:22:53] webdestroya: has joined #RubyOnRails
[03:28:51] fedexo: has joined #RubyOnRails
[03:29:05] baweaver: has joined #RubyOnRails
[03:30:54] yfeldblum: has joined #RubyOnRails
[03:34:21] bradleyprice: has joined #RubyOnRails
[03:37:26] droptone: Question: I have a table, "patients". It belongs_to User. I simply want to load the contents of "patients" to an array in as few SQL queries as possible. I've been researching eager loading but I can't seem to determine how exactly to accomplish this.
[03:37:46] sevenseacat: droptone: Patient.all
[03:37:48] sevenseacat: you're welcome
[03:39:07] droptone: Ok, so to be clear, I have user = User.find_by_email("myemail@here.com");
[03:39:27] sevenseacat: clarity is always appreciated.
[03:39:29] droptone: Then I want to perform patients = []; patients = Patient.?
[03:39:45] droptone: patients belongs_to user
[03:40:06] sevenseacat: droptone: http://guides.rubyonrails.org/association_basics.html#has-many-association-reference
[03:40:09] droptone: And I want to eager load all patients with a user_id value matching user.id into the patients array
[03:40:38] droptone: So that I can then iterate over patients and it not perform SQL queries to get individual record values
[03:41:11] sevenseacat: you would have to be doing something special for it to do that
[03:41:18] sevenseacat: perform individual queries, that is
[03:41:21] droptone: huh, so that's it, simply patients = user.patients?
[03:41:24] droptone: or user.patients.all rather
[03:41:37] sevenseacat: droptone: !gettingstarted
[03:41:38] helpa: droptone: http://guides.rubyonrails.org/getting_started.html - Getting started with Ruby on Rails guide written by Mike Gunderloy and Ryan Bigg
[03:41:41] Sawbones: has joined #RubyOnRails
[03:41:48] droptone: haha, ok man, thanks
[03:43:50] Spami: has joined #RubyOnRails
[03:47:42] pawnbox: has joined #RubyOnRails
[03:47:53] wethu: has joined #RubyOnRails
[03:48:06] Radar: You can eager load patiences when loading the user
[03:48:25] Radar: User.includes(:patients).find_by(email: "myemail@here.com")
[03:49:41] Devalo: has joined #RubyOnRails
[03:50:08] RahulT: has joined #RubyOnRails
[03:50:42] moeabdol1: has joined #RubyOnRails
[03:51:49] agent_white: has joined #RubyOnRails
[03:52:58] bradleyprice: has joined #RubyOnRails
[03:53:59] Radar: droptone: ^
[03:54:01] w1lson: has joined #RubyOnRails
[03:54:38] Bloomer: has joined #RubyOnRails
[03:55:16] GriffinHeart: has joined #RubyOnRails
[03:56:28] joshkovach: has joined #RubyOnRails
[03:58:19] Bloomer: has joined #RubyOnRails
[03:58:41] tildes: has joined #RubyOnRails
[04:00:10] RegulationD: has joined #RubyOnRails
[04:00:16] GriffinHeart: has joined #RubyOnRails
[04:01:05] droptone: Radar: thank you.
[04:05:56] droptone: Ok, so, here's the issue. I'll give it a shot.
[04:06:57] droptone: My app, which leverages AR like Rails which is why I'm asking in here, is getting more customers and I need to speed it up. Right now, I'm trying to minimize the number of SQL queries by dumping the contents of a given table to an object.
[04:08:02] droptone: If I simply leverage a .all as suggested, that's an AR relation, so say I do something simple, patients = User.patients, and then I execute patients.find_by_product_id(1235)
[04:08:20] droptone: I can see that it's still executing a SQL query for that find statement
[04:08:25] droptone: This is what I'm trying to avoid
[04:08:32] sevenseacat: the full story comes out
[04:08:58] droptone: Having said this, I'm not familiar with eager loading, and I've been reading quite a bit on it, but I'm still not entirely sure how to perform what should be a simple action.
[04:09:27] droptone: I'm using the simplified schema users and patients belongs_to :user
[04:09:41] Radar: This sounds like a complete hack
[04:09:45] Radar: Why is it slow in the first place?
[04:09:48] droptone: But if I simply want to eager load all patients with a user_id column that matches user.id
[04:10:02] sevenseacat: ah, and its fake code on top of things
[04:10:10] droptone: Never mind, thank you.
[04:10:19] sevenseacat: you're welcome.
[04:10:22] Sawbones: has joined #RubyOnRails
[04:10:38] sevenseacat: i told you yesterday that with fake stories you wouldn't get much help here.
[04:11:26] Radar: droptone: You really should just hire a consultant. This has been a multi-day thing that definitely could be sorted out by your hiring a consultant who can sit with you and go through the code.
[04:12:23] Bloomer: has joined #RubyOnRails
[04:13:44] Radar: +q droptone!*@*
[04:15:34] roamingdog: has joined #RubyOnRails
[04:16:15] etiago: has joined #RubyOnRails
[04:16:28] b-: has joined #RubyOnRails
[04:16:56] droptone: has left #RubyOnRails: ()
[04:16:57] stardiviner: has joined #RubyOnRails
[04:17:02] b-: Hi guys!
[04:17:05] DragonPunch: has joined #RubyOnRails
[04:18:22] b-: I'm not particularly successful and don't make much money, so I like to hang out on IRC giving vauge responses instead of actually answering questions that are of any level of complexity.
[04:18:26] b-: Is this a good spot?
[04:18:36] Radar: b-: hi droptone
[04:19:18] Radar: b-: Please drop the attitude.
[04:19:21] sevenseacat: b-: I wouldn't suggest making him any grumpier.
[04:20:11] Radar: You're asking for help with an extremely complicated issue and IRC is not the place to do that. There's a lot about communicating about complex things that's lost in text. It'd be better to hire a consultant, as I've said already.
[04:20:46] Radar: b-: The personal attacks are also quite immature and I'd ask that you refrain from them in the future.
[04:21:38] Radar: FTR: We give a lot of great, accurate, free help here with questions that I'd say can be answered in under 15 minutes. I don't think you have one of those at the moment, which is why I am suggesting to hire a consultant.
[04:23:12] Coldblackice_: has joined #RubyOnRails
[04:23:23] sevenseacat: not to mention a lot of the great guides out there on the internet were written by people like Radar
[04:23:49] Radar: b-: Do you have anything to say or are you content to just take potshots?
[04:24:21] tildes: good <current-time-of-the-day> everyone
[04:25:23] sevenseacat: tildes: good afternoon
[04:26:26] moeabdol1: has joined #RubyOnRails
[04:27:00] tildes: I wrote this sudoku validator, for practice. it works, but when I look at the tests, they look repetitive and ... somewhat airy. how can I make it look / read better? http://pastie.org/private/kyhig12yf7gjsanbctiba
[04:27:52] tildes: sevenseacat: thanks in advance, it is still morning here. :)
[04:28:05] Radar: tildes: Seems alright to me. I don't mind the repetition too much.
[04:28:28] DZj091231kld: has joined #RubyOnRails
[04:31:06] tildes: Radar: allright, thanks. perhaps I will leave it as it is then
[04:32:58] rickmasta: has joined #RubyOnRails
[04:33:22] sevenseacat: tests should be dumb and not-very-magical - after all - you don't have tests to cover your tests
[04:33:45] delgiudices: has joined #RubyOnRails
[04:34:18] sevenseacat: I probably wouldnt write out the descriptions longhand like that, but i wouldnt complain if i saw it
[04:35:17] tildes: sevenseacat: well, I changed method names twice actually, and each time doing all the changes by hand felt rather irritating :D
[04:35:42] tildes: and it is because of the repetition and perhaps unnecessary boiler plate (if that term fits here)
[04:36:01] tildes: so I figured maybe there's a way to make the tests more DRY
[04:36:25] tildes: but then if you do, you kind of introduce a new dependency to the tests?
[04:36:43] sevenseacat: and when i say 'wouldnt write out the descriptions' i mean something like this https://gist.github.com/sevenseacat/47ac8a97938db0fb8973cb4b2d38229c
[04:36:51] tildes: the tests will depend on something that's not tested, is perhaps slower to write than just replacing text ...
[04:37:25] tildes: sevenseacat: a new matcher, I like it. thanks!
[04:38:26] sevenseacat: though I'd also prefer to have the declaration of invalid_rows_sudoku *very* close to that spec
[04:38:59] tildes: saves me 16 lines which is huge
[04:39:25] tildes: sevenseacat: they are just regular method calls to fixtures at the bottom of the spec
[04:41:44] tildes: (btw I recall asking something about a very nested spec some time back, and yes, I could get it work eventually, but with the next feature, changing it was a pain, and in fact I chose to flatten it first)
[04:42:11] Radar: -q droptone!*@*
[04:43:05] GriffinHeart: has joined #RubyOnRails
[04:44:36] chipotle: has joined #RubyOnRails
[04:45:31] GriffinHeart: has joined #RubyOnRails
[04:47:12] caudill: has joined #RubyOnRails
[04:48:11] Devalo: has joined #RubyOnRails
[04:52:15] tildes: (rspec) 'it' and 'specify' are identical, and I should choose whichever reads better?
[04:52:27] Radar: 'example' is also an alias :)
[04:52:40] Radar: From what I've seen, everyone sticks with "it"
[04:54:24] sevenseacat: i use "it" when the description is a sentence that makes sense following "it" :)
[04:55:10] tildes: I couldn't make my sudoku examples read nicely with 'it', they sound better with specify or example
[04:55:38] tildes: I wasn't aware of the alternatives really
[04:56:11] qejk: has joined #RubyOnRails
[04:56:11] sam300: has joined #RubyOnRails
[04:56:11] tildes: it { expect ... } sounds kind of Russian, which is charming of course :D
[04:57:11] tildes: what do you think about service objects? http://brewhouse.io/blog/2014/04/30/gourmet-service-objects.html
[04:58:01] tildes: to me, they look tiny, and I find it strange to make a class out of an object, that will never be instantiated
[04:58:12] tildes: but maybe it is not so strange
[05:03:07] pawnbox: has joined #RubyOnRails
[05:06:05] bronson: has joined #RubyOnRails
[05:11:26] jenrzzz: has joined #RubyOnRails
[05:13:16] GriffinHeart: has joined #RubyOnRails
[05:16:41] Pupeno: has joined #RubyOnRails
[05:17:01] moeabdol1: has joined #RubyOnRails
[05:18:31] djbkd: has joined #RubyOnRails
[05:20:26] yfeldblum: has joined #RubyOnRails
[05:21:02] yfeldblum: has joined #RubyOnRails
[05:25:22] djbkd: has joined #RubyOnRails
[05:28:43] tvw: has joined #RubyOnRails
[05:34:27] reber: has joined #RubyOnRails
[05:37:27] dionysus69: has joined #RubyOnRails
[05:39:49] srinidhi: has joined #RubyOnRails
[05:40:01] reber: has joined #RubyOnRails
[05:42:58] navneet: has joined #RubyOnRails
[05:43:29] raunicolae: has joined #RubyOnRails
[05:45:20] w1lson: has joined #RubyOnRails
[05:45:28] Macaveli: has joined #RubyOnRails
[05:47:06] Pupeno: has joined #RubyOnRails
[05:48:30] Jimmy1_: has joined #RubyOnRails
[05:49:05] Jimmy1_: hello, I am trying to use the gem forem and it is literally the most broken gem I have ever used
[05:49:20] sevenseacat: ouch. what issues are you having?
[05:49:25] Jimmy1_: does anyone work with forem?
[05:49:36] Radar: Jimmy1_: Hi, I am the creator of Forem.
[05:49:45] b-_: has joined #RubyOnRails
[05:50:53] Jimmy1_: I am getting our errors one second
[05:51:05] Radar: Proof: https://twitter.com/ryanbigg/status/724838153731870721
[05:51:59] Radar: Jimmy1_: It has been multiple seconds. I have never felt so betrayed.
[05:52:12] Radar: (I can use hyperbole too!)
[05:52:33] sevenseacat: yeah that was kinda a harsh opening statement :P
[05:52:56] Jimmy1_: it is true, my coworker is sending me the error logs
[05:53:07] Radar: mmm it was. Best not to take these things personally.
[05:53:13] Jimmy1_: i am sorry for the delay
[05:53:29] Radar: Jimmy1_ is clearly frustrated with the state of things and is very close to making a valuable open source contribution back to Forem to fix whatever bug(s) they are encountering.
[05:53:30] jowiar: has joined #RubyOnRails
[05:55:08] Jimmy1_: I am sorry, my coworker is sending me the logs but its going to be a second, but yes our whole development team was marveling at the broken nature of this gem, I did not know you made it radar
[05:55:12] Jimmy1_: sorry for harshness
[05:55:14] Jimmy1_: i will be right back
[05:55:37] sevenseacat: Jimmy1_: so what constructiveness is going to come out of this marveling?
[05:55:53] sevenseacat: i suspect troll.
[05:55:55] Radar: I'd say it's a pretty good gem considering it was written by one guy. It has its warts.
[05:56:16] Radar: https://github.com/rubysherpas/forem/graphs/contributors well, more than 1 guy but you get the idea.
[05:56:30] sevenseacat: "this gem sucks and is broken!" "can you tell me what problem you're having?" "uh... soon.... be right back"
[05:56:34] dionysus69: has joined #RubyOnRails
[05:56:46] Radar: What ever happened to cold. hard. facts, eh?
[05:56:54] sevenseacat: not enough F A C T S
[05:58:26] GriffinHeart: has joined #RubyOnRails
[06:00:56] RegulationD: has joined #RubyOnRails
[06:01:55] navneet: has joined #RubyOnRails
[06:02:55] moeabdol1: has joined #RubyOnRails
[06:03:28] sp1rs: has joined #RubyOnRails
[06:04:59] moeabdol: has joined #RubyOnRails
[06:06:12] rvanlieshout: has joined #RubyOnRails
[06:06:35] Radar: Well that was fun.
[06:07:18] roamingdog: i think amurica has gone to bed
[06:07:26] roamingdog: 'll be quiet for a while now
[06:07:27] Radar: tbqh I am a little sad that it's now over.
[06:07:35] Radar: Euros will be waking up soon.
[06:07:36] roamingdog: addiction is hard
[06:08:00] sevenseacat: the hardcore aussies are always awake.
[06:08:13] roamingdog: an' i'm glad of it
[06:09:01] Pupeno: has joined #RubyOnRails
[06:10:35] Devalo: has joined #RubyOnRails
[06:12:31] solars: has joined #RubyOnRails
[06:12:39] Technodrome: has joined #RubyOnRails
[06:12:53] sp1rs: has joined #RubyOnRails
[06:13:21] roamingdog: again, "fatal: Could not read from remote repository." oh what, what ye gods i ask ye' am i doing wrong?
[06:14:30] marcdel: has joined #RubyOnRails
[06:15:23] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[06:15:43] Radar: who knows
[06:15:59] jstransky: has joined #RubyOnRails
[06:17:39] GriffinHeart: has joined #RubyOnRails
[06:23:58] darutoko: has joined #RubyOnRails
[06:24:54] yardenbar: has joined #RubyOnRails
[06:25:57] jstransky: has joined #RubyOnRails
[06:26:55] aganov: has joined #RubyOnRails
[06:29:07] blindMoe: has joined #RubyOnRails
[06:30:54] Disavowed: has joined #RubyOnRails
[06:31:17] blindMoe: Trying to save an array of "type_settings" in my postgres jsonb field and everything works great with the exception of this one field in the form: <%= f.select :type_settings["animateIn"], grouped_options_for_select(@animateInOptions) %> .. It throws this error: undefined method `' for #<Lookbook:0x007f9ae8fd6670>
[06:31:48] blindMoe: I have plenty of other fields in the form that save to the type_settings array just fine but this one throws that error
[06:32:03] pawnbox: has joined #RubyOnRails
[06:32:14] navneet_: has joined #RubyOnRails
[06:32:28] tildes: has joined #RubyOnRails
[06:32:28] blindMoe: also, the grouped_options_for_select() returns what you would expect .. I tested it outside of the f.select and it was perfect markup
[06:42:47] konsolebox: has joined #RubyOnRails
[06:47:00] rvanlieshout: why are you using a jsonb column?
[06:47:28] RahulT: has joined #RubyOnRails
[06:48:14] GriffinHeart: has joined #RubyOnRails
[06:49:42] jstransky: has joined #RubyOnRails
[06:52:11] BigFatty: has joined #RubyOnRails
[06:52:12] moeabdol: has joined #RubyOnRails
[06:53:21] BigFatty: hi there, i'm a girl who uses rails
[06:53:23] blindMoe: rvanlieshout: seemed like the best way to be able to store settings for many different types of "models" .. not normal ORM models
[06:53:37] Pazician: has joined #RubyOnRails
[06:53:38] pawnbox: has joined #RubyOnRails
[06:53:53] rvanlieshout: but it kinda collides with those normal form helpers
[06:53:58] BigFatty: i noticed that most girls who spend all day on irc are blue-haired whales, is this true??
[06:54:14] rvanlieshout: sevenseacat? :)
[06:54:21] sevenseacat: BigFatty: excuse me?
[06:54:31] blindMoe: rvanlieshout: I am realizing that now but I don't see why.. it should not be difficult in my mind since it is basically just setting the name and checking a value
[06:54:41] comrad: has joined #RubyOnRails
[06:54:45] dionysus69: has joined #RubyOnRails
[06:55:09] BigFatty: sevenseacat - i said that i am a girl who uses rails and i noticed most girls who live on irc are blue-haired whales, i was wondering if this was true
[06:55:10] rvanlieshout: why not just convert it to a normal column?
[06:55:13] rvanlieshout: only benefits :)
[06:55:23] sevenseacat: BigFatty: are you one?
[06:55:43] BigFatty: this is why i am wondering if i am not alone
[06:55:54] rvanlieshout: i hardly see people talking about themselves like that
[06:56:04] sevenseacat: BigFatty: this isn't the time or place for that kind of conversation.
[06:56:12] kareeoleez: has joined #RubyOnRails
[06:56:16] blindMoe: rvanlieshout: you mean just store the json as a string?
[06:56:20] sevenseacat: BigFatty: I'm giving you the benefit of the doubt
[06:56:26] rvanlieshout: no just use the db in how it's intended
[06:56:38] blindMoe: rvanlieshout: because the columns are dynamic
[06:56:59] rvanlieshout: then don't try to use a form helper that is designed for static columns
[06:57:17] kareeoleez: how can I execute a User.create(email: something@somewhere.com) from inside a script ? Should I create a rake task? This is for production, setting up the default admin user
[06:57:24] blindMoe: hrmm I can just about guarantee there is a way to do this that is not complicated
[06:57:38] rvanlieshout: kareeoleez: you could use rails runner
[06:57:41] sevenseacat: kareeoleez: sounds like seed data
[06:57:57] kareeoleez: isn't seed only for non-production ?
[06:58:08] kareeoleez: or RAILS_ENV=production rake db:seed works ?
[06:58:18] kareeoleez: that could be fine
[06:58:28] sevenseacat: seed is for data required for your app to function
[06:58:39] ChanServ: +b *!*@162.216.46.75
[06:58:39] ChanServ: ChanServ kicked b-_: Blue haired whales comment
[06:58:39] ChanServ: ChanServ kicked BigFatty: Blue haired whales comment
[06:58:44] kareeoleez: isn't rake going to be replaced with "rails" in 5.0 ?
[06:58:55] sevenseacat: otherwise you could just open a rails console and create your user
[06:59:01] sevenseacat: I believe so, just to add confusion
[06:59:06] rvanlieshout: kareeoleez: the command name is changed
[06:59:09] rvanlieshout: the whole idea isn't
[06:59:14] kareeoleez: as an alias ?
[06:59:17] rvanlieshout: it won't be rails console, rake db:migrate
[06:59:20] Radar: Oh look it was b- too.
[06:59:30] rvanlieshout: i don't know what exactly changed
[06:59:39] rvanlieshout: so don't know if it's just an alias for some arguments
[06:59:39] sevenseacat: Radar: why am I not surprised by this?
[06:59:43] Radar: Two birds one stone.
[06:59:46] kareeoleez: thank you people
[06:59:53] rvanlieshout: should we know b-?
[07:00:02] Radar: rvanlieshout: I thought it was originally droptone but now I am not so sure.
[07:00:15] Radar: http://logs.ryanbigg.com/p/b-
[07:00:36] Radar: http://logs.ryanbigg.com/RubyOnRails?date=2016-04-26#5584010
[07:00:43] Radar: Notice that it happened right after I muted droptone there.
[07:00:53] sevenseacat: *checks* its even Tuesday, too
[07:01:07] snowy: has joined #RubyOnRails
[07:01:15] sevenseacat: for some people, being harrassed by people online is an extraordinary event. for IRC, we call it tuesday
[07:01:49] Radar: Looking forward to when droptone returns.
[07:04:43] artto: has joined #RubyOnRails
[07:07:00] arBmind: has joined #RubyOnRails
[07:08:19] DZj091231kld: has joined #RubyOnRails
[07:10:50] Pupeno: has joined #RubyOnRails
[07:11:16] Devalo: has joined #RubyOnRails
[07:14:20] antgel: has joined #RubyOnRails
[07:18:25] maasha: has joined #RubyOnRails
[07:18:32] maasha: hi, do something exists in Rails that lets users construct forms?
[07:18:45] AzaToth: has joined #RubyOnRails
[07:19:14] sevenseacat: users as in end-users? not that I know of
[07:19:38] Pupeno: has joined #RubyOnRails
[07:19:40] RahulT: has joined #RubyOnRails
[07:20:05] maasha: yeah, client users
[07:20:55] maasha: OK, what is the most simple and robust way to produce forms according to user specs?
[07:21:50] maasha: now that it appears users can't create forms on their own
[07:22:23] sevenseacat: whats the use case?
[07:23:07] maasha: a rather generic collection of scientific data which is currently picked up in Excel sheets which is awful
[07:24:30] PedramT: has joined #RubyOnRails
[07:24:42] renegadeandy: has joined #RubyOnRails
[07:25:25] kitsuneyo: has joined #RubyOnRails
[07:25:45] maasha: http://django-forms-builder.readthedocs.org/en/latest/
[07:26:07] Ropeney: do i hear active admin?
[07:26:36] Ropeney: prob won't give you that much control though
[07:27:12] AlexJakeGreen: has joined #RubyOnRails
[07:27:19] Sawbones: has joined #RubyOnRails
[07:27:32] sevenseacat: cool, at least you've found a tool to do it.
[07:27:38] mikecmpbll: has joined #RubyOnRails
[07:29:51] dionysus69: has joined #RubyOnRails
[07:31:51] tagaulap: has joined #RubyOnRails
[07:33:46] Coldblackice_: has joined #RubyOnRails
[07:34:14] ur5us: has joined #RubyOnRails
[07:34:59] yfeldblum: has joined #RubyOnRails
[07:39:48] moeabdol: has joined #RubyOnRails
[07:39:55] Pupeno: has joined #RubyOnRails
[07:44:19] mikecmpbll: has joined #RubyOnRails
[07:44:46] ur5us: has joined #RubyOnRails
[07:46:06] navneet: has joined #RubyOnRails
[07:46:41] bruce_lee: has joined #RubyOnRails
[07:47:25] stardiviner: has joined #RubyOnRails
[07:48:59] navneet_: has joined #RubyOnRails
[07:49:18] PedramT: has joined #RubyOnRails
[07:50:09] navneet: has joined #RubyOnRails
[07:52:29] Macaveli: OFFTOPIC: Guys do you think a 55 inch tv with 2m60 distance is okay or should I got for 50 inch?
[07:53:41] phaza_: has joined #RubyOnRails
[07:55:49] Macaveli: I gave an offtopic warning :p
[07:55:57] edwinvdgraaf: has joined #RubyOnRails
[07:56:30] Pupeno: has joined #RubyOnRails
[07:56:40] GriffinHeart: has joined #RubyOnRails
[07:57:16] mikecmpbll: has joined #RubyOnRails
[07:57:57] sp1rs: has joined #RubyOnRails
[08:00:47] xcesariox: has joined #RubyOnRails
[08:00:56] SteenJobs: has joined #RubyOnRails
[08:01:42] RegulationD: has joined #RubyOnRails
[08:02:00] mark_66: has joined #RubyOnRails
[08:05:50] finnnnnnnnnnn: has joined #RubyOnRails
[08:05:53] n008f4g_: has joined #RubyOnRails
[08:07:53] pawnbox: has joined #RubyOnRails
[08:09:25] jsrn: has joined #RubyOnRails
[08:10:15] franzip: has joined #RubyOnRails
[08:17:47] navneet: has joined #RubyOnRails
[08:21:16] ferr: has joined #RubyOnRails
[08:22:16] PedramT: has joined #RubyOnRails
[08:22:44] TvL2386: has joined #RubyOnRails
[08:23:28] pwnd_nsfw: has joined #RubyOnRails
[08:23:48] TvL2386: has joined #RubyOnRails
[08:24:17] marr: has joined #RubyOnRails
[08:26:45] marcdel: has joined #RubyOnRails
[08:27:21] finnnnnnnnnnn: has joined #RubyOnRails
[08:28:25] pawnbox: has joined #RubyOnRails
[08:28:46] marcdel_: has joined #RubyOnRails
[08:30:11] jottr: has joined #RubyOnRails
[08:31:56] jottr: has joined #RubyOnRails
[08:33:21] skroon: has joined #RubyOnRails
[08:38:54] tildes: I have been using ruby threads in some places, perhaps naively, with just Thread.new { do_something }, and that's it, not using Thread#join or Thread#exit, and things seem to have 'just worked'. however, looking at the ruby documentation, I am starting to wonder if this approach is really off, and if there is something that could go wrong
[08:39:45] tildes: would be good to hear what are the caveats if any
[08:42:01] skislak: has joined #RubyOnRails
[08:42:04] dgncn: has joined #RubyOnRails
[08:43:25] ReBa_: has joined #RubyOnRails
[08:46:01] robbyoconnor: has joined #RubyOnRails
[08:46:11] Talltree: do you guys know of a fast paced tutorial about active record association?
[08:47:33] arthurnn: has joined #RubyOnRails
[08:47:48] artto: has joined #RubyOnRails
[08:48:09] Palsson: has joined #RubyOnRails
[08:52:41] PedramT: has joined #RubyOnRails
[08:52:41] Macaveli: has joined #RubyOnRails
[08:53:34] pawnbox: has joined #RubyOnRails
[08:53:53] moep: has joined #RubyOnRails
[08:54:25] navneet: has joined #RubyOnRails
[08:55:13] pawnbox: has joined #RubyOnRails
[08:56:17] navneet: has joined #RubyOnRails
[08:59:05] tildes: Talltree: pretty much any rails tutorial will cover active record to some extent. rails guides are also a useful read.
[09:00:54] lubekpl: has joined #RubyOnRails
[09:01:51] finnnnnnnnnnn_: has joined #RubyOnRails
[09:02:18] Cork: is there a reliable way to convert a model into a controller class?
[09:02:43] Cork: something like [ :scope, @user ] => Scope::UserController
[09:04:08] moei: has joined #RubyOnRails
[09:04:14] sp1rs: has joined #RubyOnRails
[09:04:14] Talltree: tildes they seem to mention it, but not to a extent that i find usefull
[09:04:30] tildes: Talltree: what is your use case then? what do you want to learn/build?
[09:04:55] Talltree: i got a character table and a exp table
[09:05:01] Talltree: exp values belong the character
[09:05:06] Talltree: character has many exp values
[09:05:20] tildes: and what does fast-paced mean? :D
[09:05:52] Talltree: many tutorials are written for people with absoloutly no knowledge about computers i think
[09:06:00] helpa: http://i.imgur.com/m9m3wr9.gif
[09:06:29] sevenseacat: yes, tutorials are generally written for people who don't know about the subject of the tutorial
[09:06:47] sevenseacat: otherwise why are you even reading it?
[09:07:26] tildes_: has joined #RubyOnRails
[09:07:49] Talltree: do you really want to discuss this? it will be annoying as hell and in the end we will agree to disagree that the quality of tutorials hugely differs.
[09:07:53] weckl: has joined #RubyOnRails
[09:08:07] sevenseacat: oh of course the quality differs
[09:08:41] Talltree: this is like the start of any annoying discussion on IRC ever, you disagree and are bored and want to argue with me about it because you got 10 minutes to spare. sorry, not intrested...
[09:09:02] sevenseacat: however, it's impossible to cover an in-depth subject like ActiveRecord association, assuming you already know all the other facts of Rails
[09:09:45] sevenseacat: because good tutorials will cover a wide range of Rails-related topics, including associations
[09:10:05] sevenseacat: if you just want a guide to associations, http://guides.rubyonrails.org/association_basics.html have at it
[09:10:42] Ropeney: Talltree, https://github.com/rails/rails/tree/master/activerecord since tutorials cover too much
[09:11:11] Talltree: wait, do you have a copy of that in binary?
[09:11:48] Macaveli: has joined #RubyOnRails
[09:11:51] Devalo: has joined #RubyOnRails
[09:13:04] kimegede: has joined #RubyOnRails
[09:13:09] tildes_: Talltree: so you want to have a model for Character and a model for Exp (I would perhaps call if ExperiencePoint if that's what it is), and Character will have many Exps?
[09:13:46] Talltree: i want to make a ladder website
[09:13:49] tildes_: Talltree: but the tutorials you have found are not good for this use case?
[09:13:54] sevenseacat: ACTION notes that tildes_ referenced the Rails guides 20 minutes ago
[09:14:10] tildes_: that's right :D
[09:14:21] Talltree: maybe i am just too dumb to get what i need after the has_many belongs_to
[09:14:52] sevenseacat: that depends on what exactly you're trying to do
[09:14:53] tildes_: if you show code and/or explain the use case, it will be easier to help you out
[09:15:18] sevenseacat: ps. tutorials generally cover this kind of stuff too - linking different types of data while building an interface to manage them
[09:16:26] Talltree: i'm just going to watch this video now. maybe i just had a brainfart
[09:17:01] Ergo: has joined #RubyOnRails
[09:17:41] thebastl: has joined #RubyOnRails
[09:19:03] Weavel: has joined #RubyOnRails
[09:20:05] techsethi: has joined #RubyOnRails
[09:20:46] workmad3: has joined #RubyOnRails
[09:22:03] tildes: has joined #RubyOnRails
[09:22:16] 6JTAAEH3L: has joined #RubyOnRails
[09:22:17] quazimodo: has joined #RubyOnRails
[09:22:24] AimlessRAven: has joined #RubyOnRails
[09:22:41] xall: has joined #RubyOnRails
[09:27:30] quazimod1: has joined #RubyOnRails
[09:28:25] Sawbones: has joined #RubyOnRails
[09:31:30] AimlessRAven: https://gist.github.com/anonymous/296f59ede436d412140845e7d8f211d8
[09:31:33] Talltree: i really like this guides tutorials: https://www.youtube.com/watch?v=eY1HCqe9MBc fast paced. simplified and intresting :D
[09:31:35] AimlessRAven: i wanna show my modal when i click on link
[09:31:40] Talltree: ACTION prepares to get flamed for that
[09:32:40] sevenseacat: havent watched it. long-ass videos really aren't my forte.
[09:33:04] patrick_star_2: has joined #RubyOnRails
[09:34:46] mikecmpb_: has joined #RubyOnRails
[09:36:18] blackmesa: has joined #RubyOnRails
[09:37:28] mdw: has joined #RubyOnRails
[09:38:50] redasus2: has joined #RubyOnRails
[09:42:55] iamvery: has joined #RubyOnRails
[09:43:46] blackmesa: has joined #RubyOnRails
[09:43:54] yfeldblum: has joined #RubyOnRails
[09:44:33] lubekpl: has joined #RubyOnRails
[09:46:22] blackhuey: has joined #RubyOnRails
[09:47:26] GriffinHeart: has joined #RubyOnRails
[09:49:27] Olipro: has joined #RubyOnRails
[09:50:06] htmldrum: has joined #RubyOnRails
[09:51:48] artto: has joined #RubyOnRails
[09:51:56] montagne_goat: has joined #RubyOnRails
[10:00:06] arBmind: has joined #RubyOnRails
[10:00:22] artto: has joined #RubyOnRails
[10:02:31] RegulationD: has joined #RubyOnRails
[10:03:12] n008f4g_: has joined #RubyOnRails
[10:05:09] pLaToOn: has joined #RubyOnRails
[10:06:17] htmldrum: has joined #RubyOnRails
[10:06:29] baweaver: has joined #RubyOnRails
[10:07:08] Technodrome: has joined #RubyOnRails
[10:10:38] bronson: has joined #RubyOnRails
[10:10:49] navneet: has joined #RubyOnRails
[10:14:46] flashpoint9: has joined #RubyOnRails
[10:16:26] mikecmpb_: [offtopic] i know you can have multiple dns records for the same domain with different IPs, can you do the same with wildcard dns?
[10:17:28] finnnnnnnnnnn: has joined #RubyOnRails
[10:22:15] srinidhi: has joined #RubyOnRails
[10:22:55] moeabdol: has joined #RubyOnRails
[10:24:11] Anubix: has joined #RubyOnRails
[10:24:33] mdw: has joined #RubyOnRails
[10:25:00] Anubix: Does somebody using gem https://github.com/lassebunk/dynamic_sitemaps ? I have problems with setting up HTTPS protocol.
[10:27:27] glaksmono: has joined #RubyOnRails
[10:27:29] glaksmono: Anyone experience issue where all sudden the CSS that i got from compiled SCSS removed all of my semi-colons (;)? Thoughts about that?
[10:28:17] Anubix: here is pastie of config and error -> http://pastie.org/private/r8ak2fa9ftxvzgwqp7drdg
[10:29:52] oqui: has joined #RubyOnRails
[10:32:18] ur5us: has joined #RubyOnRails
[10:36:34] redasus2: has joined #RubyOnRails
[10:37:36] yaw: has joined #RubyOnRails
[10:37:48] yaw: hello everyone
[10:38:09] delgiudices: has joined #RubyOnRails
[10:38:31] yaw: I'm looking for a guide/blogpost on how Rails routing works
[10:38:54] yaw: in terms of the data structures and algorithms it uses for conversion and matching
[10:40:08] fox_mulder_cp: mikecmpb_: muptiple a used for dns balancing, also may use cname etc
[10:40:26] mikecmpb_: fox_mulder_cp : kk
[10:40:39] fox_mulder_cp: yaw: read official rails guides
[10:41:03] fox_mulder_cp: ACTION hostmaster@ at two small hosting
[10:41:58] yaw: fox_mulder_cp: they talk about how to use the Rails router. No details about how it's implemented :(
[10:41:59] _3by8: has joined #RubyOnRails
[10:42:24] yaw: that's perfectly fine
[10:42:32] fox_mulder_cp: yaw: good way to knows how works some opensource software - read it's sources $)
[10:42:58] _3by8: I assumed that I'd be able to do this in a method: self.date || self.created_at where self.date is a user-defined date. My thinking was that it would return date if it were there and created_at if it wasn't. Obviously, that doesn't work. How should that work?
[10:43:27] yaw: fox_mulder_cp: true, and I have Rails source open in GitHub now (https://github.com/rails/rails/tree/master/actionpack/lib/action_dispatch)
[10:44:21] fox_mulder_cp: _3by8: i think, that date - only date, so if it validates as date - on problems. but we don't know, wthat are you want to do with this dae
[10:44:34] yaw: but that's even tricky to navigate. I've been clicking around
[10:45:55] _3by8: fox_mulder_cp: it's a valid date. If the date exists in the database the code works as expect but if it returns nil then we have problems. I think I lack the understanding of how the Ruby || operator works.
[10:46:27] yaw: fox_mulder_cp: I'd read through mapper.rb (https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/mapper.rb) and see if I can work my way backwards
[10:46:55] Detch: has joined #RubyOnRails
[10:49:05] _3by8: fox_mulder_cp: https://gist.github.com/threebyeight/9a0dac17a6df299e345f01c994f2e5a6
[10:49:45] n008f4g_: has joined #RubyOnRails
[10:50:00] Spami: has joined #RubyOnRails
[10:50:48] oqui: Hey guys, I need some help running an existing rails app. by default when you use "rails generate controller Sessions new create destroy", rails creates everything under app/ for instance app/views/session, app/controllers/session_controller etc. However, the structure of this existing project am trying to run on localhost is different. the controllers/helper/views are not under app/ but at the project root itself. How can I make rails to recogn
[10:50:48] oqui: ize this? Thanks a lot
[10:51:17] fox_mulder_cp: I'm sick and not very adequate for today
[10:52:09] fox_mulder_cp: oqui: why? rails has a besy practice design and code agreement
[10:53:02] oqui: fox_mulder_cp: i didn't design the app, it's by another developer and am importing it to my localhost for further development.
[10:53:12] tildes: why not ask the person who developed it?
[10:53:28] oqui: tildes: i can't trace him
[10:53:51] fox_mulder_cp: oqui: dirt hack - create symlinks
[10:54:02] tildes: oqui: ok. what happens when you start rails server?
[10:54:17] oqui: fox_mulder_cp: that's interesting. will try it out
[10:54:45] oqui: tildes: it says "Routing error: uninitialized constant SessionsController"
[10:54:52] Technodrome: has joined #RubyOnRails
[10:55:01] fox_mulder_cp: oqui: i some years ago use project, which has 1k+ symlinks
[10:55:26] fox_mulder_cp: becouse developer's team disagree with framework politic
[10:55:35] lxsameer: has joined #RubyOnRails
[10:55:48] oqui: tildes: then gives me a whole list of Routes match in priority from top to bottom
[10:56:29] yaw: fox_mulder_cp: and you can't restructure the app to be compliant?
[10:56:35] fox_mulder_cp: Rails.root.join('app', 'assets', 'images', 'logo.png')
[10:56:51] fox_mulder_cp: may be add path's here?
[10:57:03] yaw: oops, I meant oqui instead
[10:57:09] adre: has joined #RubyOnRails
[10:57:27] yaw: oqui: you're not allowed to restructure the app?
[10:57:31] sevenseacat: oqui: so exactly what list of folders to you have in your app?
[10:57:48] sevenseacat: whats the output of `ls` or equivalent
[10:57:49] fox_mulder_cp: yaw: i research this app and document it. i'm wan't dev at this time
[10:58:44] oqui: sevenseacat: assets/ controllers/ helpers/ mailers/ models/ views/ . But they are all almost empty. There's nothing in there. everything else is in ../
[10:59:10] sevenseacat: so... thats your app folder then? am i missing something?
[10:59:46] sevenseacat: if your project root is one folder up, and everything else is there, thats normal
[10:59:54] kareeoleez: Can I execute /usr/local/bin/puma -C /etc/deploy/puma.rb and let the application in another folder ?
[11:00:10] kareeoleez: or should puma be ran inside the application folder ?
[11:00:23] oqui: sevenseacat: yes that's the app folder, but not the project folder. Project folder is one step up
[11:00:32] sevenseacat: ok, so thats perfectly normal then
[11:00:42] sevenseacat: whats the problem?
[11:00:57] allcentury: has joined #RubyOnRails
[11:01:42] oqui: sevenseacat: am getting routing errors: Routing Error: uninitialized constant SessionsController for instance
[11:01:43] fox_mulder_cp: kareeoleez: root_path/bin/puma
[11:01:54] sevenseacat: oqui: when you do what?
[11:02:03] PedramT: has joined #RubyOnRails
[11:02:35] kareeoleez: fox_mulder_cp: I am running it on an openBSD machine so it's fine
[11:02:35] fox_mulder_cp: oqui: apt-get|yum install tree and copypaste tree of dirs to gist.github.com
[11:02:40] ZerGabriel: has joined #RubyOnRails
[11:02:49] kareeoleez: fox_mulder_cp: I just keep getting [13998] ERROR: No application configured, nothing to run
[11:03:13] kareeoleez: but If I execute puma inside the app's folder it does fine
[11:03:14] fox_mulder_cp: kareeoleez: open is live now? i think, that it's died, as not popular
[11:03:32] kareeoleez: fox_mulder_cp: not died but stronger than ever
[11:03:48] fox_mulder_cp: kareeoleez: export RAILS_ENV=development; rails server
[11:04:16] p1k: has joined #RubyOnRails
[11:04:33] fox_mulder_cp: last open, that i viewed in 2007
[11:04:48] kareeoleez: fox_mulder_cp: what has this do with my issue running puma ?
[11:05:24] kareeoleez: my problem is that I can't trigger a puma service that will pick a config file from some other folder than the app's one
[11:05:44] fox_mulder_cp: kareeoleez: it's a default way to run app server with predefined environment (dev, stage, prod) etc
[11:06:06] kareeoleez: I know that, I am asking something different
[11:06:08] sevenseacat: fox_mulder_cp: you shouldnt use webrick in development. stop trying to derail the conversation.
[11:06:15] sevenseacat: fox_mulder_cp: answer the questions that are asked.
[11:06:56] oqui: fox_mulder_cp: here https://gist.github.com/oquidave/944291fbb66718f786ae9542a7555607
[11:06:58] fox_mulder_cp: sevenseacat: hm. i use puma
[11:07:03] Ropeney: has joined #RubyOnRails
[11:07:17] sevenseacat: fox_mulder_cp: again, not relevant to the question.
[11:07:22] fox_mulder_cp: sevenseacat: and it's started as app server, in rails 4, and r5
[11:07:38] Anubix: Can u look eye on my problem with https in dynamic_sitemaps gem? http://pastie.org/private/r8ak2fa9ftxvzgwqp7drdg thanks
[11:07:53] fox_mulder_cp: sevenseacat: in containerized evnironments suck as docker ideology - app must me all in one plece
[11:08:03] fox_mulder_cp: with it's config too
[11:08:29] sevenseacat: oqui: yeah thats... not normal
[11:08:59] GodFather: has joined #RubyOnRails
[11:09:14] SteenJobs: has joined #RubyOnRails
[11:09:31] sevenseacat: i'd start by rearranging everything into a sensible folder structure, if you can't contact the original developer and figure out wtf they were doing
[11:09:39] oqui: sevenseacat: but the app works in production right now. I've updated the paste with routes.rb too.
[11:10:06] sevenseacat: I didnt say it didnt work, there's probably some arcane config that lets you do it, but its not good
[11:10:09] fox_mulder_cp: oqui: it's opensource project or private app?
[11:10:32] oqui: fox_mulder_cp: it's private, i'll delete after
[11:10:44] ur5us: has joined #RubyOnRails
[11:10:45] sevenseacat: the routes are also.... not greatly written
[11:11:04] fox_mulder_cp: oqui: i'm hostmaster@ in two hosning, and now write my own hosting control panel, which controls registration of domains, billing, hosting of apps, mail and dns
[11:11:38] sevenseacat: I really hope this isn't a publicly-accessible webapp, based on these routes
[11:12:04] tildes: oqui: how about looking at the command history on the production machine, to see how they start it?
[11:12:16] oqui: sevenseacat: then i've no choice but to re-arrange the app
[11:12:20] navneet: has joined #RubyOnRails
[11:12:27] fox_mulder_cp: becouse plesk, cpanel, and some other php-based panels and billings, which i try - has very bad code and code-style, support and pricing politic
[11:12:38] weckl: has joined #RubyOnRails
[11:13:07] fox_mulder_cp: oqui: i think, that u can make a new app, move conrollers, views, model and assets to itr
[11:13:12] rodfersou: has joined #RubyOnRails
[11:13:17] fox_mulder_cp: and check it by tests
[11:13:18] Devalo: has joined #RubyOnRails
[11:13:26] sevenseacat: oqui: i would have serious reservations about whoever wrote this app.
[11:13:40] sevenseacat: given routes like `get "admin/destroy"`
[11:13:57] fox_mulder_cp: sevenseacat: psycho-clinic?^)
[11:14:50] fox_mulder_cp: sevenseacat: may be a good idea to create new app, move existing code to it on properly places and testing it
[11:15:08] moeabdol: has joined #RubyOnRails
[11:15:14] sevenseacat: fox_mulder_cp: i dont think so, but whatever floats your boat.
[11:15:19] oqui: am kind of new to rails, but you guys raise key points. am taking time to learn rails, so i'll re-structure once i've gained confidence.
[11:15:27] mdw7: has joined #RubyOnRails
[11:15:30] baash05: has joined #RubyOnRails
[11:15:33] sevenseacat: oqui: this is not a good app to learn from.
[11:15:49] fox_mulder_cp: i think this too
[11:15:51] sevenseacat: also, we're not all guys here.
[11:16:09] baash05: I forget how.. but I seem to remember there was a way to bundle install to a local directory. Anyone know how to do that?
[11:16:12] hello9: has joined #RubyOnRails
[11:16:26] fox_mulder_cp: sevenseacat: but remaking this existing code in new app give some experience
[11:16:35] kareeoleez: can someone help with my issue please ?
[11:16:39] sevenseacat: fox_mulder_cp: i would not recommend that for someone learning rails.
[11:16:40] baash05: I don't want my second app to clash gems
[11:16:45] fox_mulder_cp: sevenseacat: yep
[11:16:53] baash05: kareeoleez: What you need?
[11:16:53] oqui: okay great. i'll do that
[11:16:54] fox_mulder_cp: only after some applications
[11:18:01] fox_mulder_cp: oqui: if u newbee in rails, as me - read official guides for small blog app, after it - read Rails 4 in actions and read agile web development with rails 4
[11:18:14] kareeoleez: baash05: I have my rails app folder in /home/me and the puma executable is located in /usr/local/bin/puma. Also the puma.rb config file is inside /etc/aaa/puma.rb
[11:18:40] kareeoleez: baash05: so I want to run puma inside a script/service with a command like puma -C /etc/aaa/puma.rb
[11:18:56] kareeoleez: baash05: actually execute it anywhere, it should pick up the application folder
[11:18:59] fox_mulder_cp: u write your own small blog engine, small ticket task system and small store with cart
[11:20:21] kareeoleez: baash05: but now If I run it inside the app folder, everything is ok. If I run it "outside" this folder, ERROR: No application configured, nothing to run
[11:21:33] baash05: Humm.. you might have to change the PWD.
[11:22:26] baash05: I'm not sure how puma works.. Back in my windowz past dlls could either be local to the app or global to the system.
[11:22:35] fox_mulder_cp: kareeoleez: --dir DIR for puma option?
[11:23:01] baash05: Sometimes the dlls couldn't be found if the were in different folders.
[11:23:03] arBmind: has joined #RubyOnRails
[11:23:17] kareeoleez: fox_mulder_cp: works but not for the service
[11:23:20] Pupeno: has joined #RubyOnRails
[11:23:30] kareeoleez: possibly I must ask another room
[11:23:33] PedramT: has joined #RubyOnRails
[11:23:34] fox_mulder_cp: kareeoleez: what is a 'service' mean
[11:23:57] oqui: fox_mulder_cp: thanks, i've been following https://www.railstutorial.org/ but now i'll look at your recommendations too
[11:23:58] ur5us: has joined #RubyOnRails
[11:24:11] oliver___: has joined #RubyOnRails
[11:24:20] fox_mulder_cp: systemd service? but i can't think, that systemd exists in openbsd
[11:24:20] baash05: so.. anyone ever install the gems into a local folder?
[11:24:34] kareeoleez: hmmm mostly rc.d
[11:25:21] fox_mulder_cp: kareeoleez: cd $app_root %% rails_env && rails server...
[11:25:21] sevenseacat: baash05: what problem are you trying to solve?
[11:25:44] fox_mulder_cp: kareeoleez: i't s a my rc.d start scripts
[11:25:56] wethu: has joined #RubyOnRails
[11:25:58] baash05: I have two apps. I want the gems for one to be in one folder.
[11:26:33] baash05: So they don't clash.
[11:26:36] fox_mulder_cp: baash05: as i think this ideology - all gems instaled in one path, but bundle - is configure gem sets defferent for all apps
[11:26:40] sevenseacat: they wont. thats the point of using bundler
[11:26:46] sevenseacat: whatevers in your bundle is what gets used
[11:26:56] fox_mulder_cp: with version defined too
[11:26:57] sevenseacat: and whats in your bundle comes from your Gemfile
[11:28:39] baash05: There was another reason.. I like being able to grep one folder for content.
[11:28:53] baash05: well grep -r..
[11:29:01] sp1rs: has joined #RubyOnRails
[11:29:39] moeabdol: has joined #RubyOnRails
[11:29:42] sevenseacat: huh? do you often grep through gem sources?
[11:30:32] baash05: Sadly I find I do.
[11:31:06] ldnunes: has joined #RubyOnRails
[11:31:24] baash05: There are (surprise surprise) not all that many accurate documents on rails gems.
[11:31:36] baash05: ruby gems :)
[11:32:16] baash05: I picked apart the use of arel tables and learned heaps about how active record works.. Made my code (in a few edge cases) way simpler.
[11:32:39] baash05: Same for url overrides in mailers.
[11:34:13] kareeoleez: I have setup a pair of SSL keys and use ssl_bind in puma but when loading the homapage of my app, it never loads and the log shows I, [2016-04-26T01:09:29.097608 #16950] INFO -- : Started GET "/" for 192.168.40.1 at 2016-04-26 01:09:29 +0000
[11:34:42] kareeoleez: I added also config.force_ssl = true for the current env
[11:34:55] kareeoleez: it just loads and loads forever
[11:36:10] baash05: Anyway.. I suppose it won't happen :(
[11:36:14] baash05: I can live.
[11:36:15] Guest_: has joined #RubyOnRails
[11:38:56] dionysus69: has joined #RubyOnRails
[11:40:24] Ergo^: has joined #RubyOnRails
[11:40:48] sevenseacat: baash05: then use something like `bundle install --path` and install them somewhere else?
[11:40:53] pawnbox: has joined #RubyOnRails
[11:41:09] roshanavand: has joined #RubyOnRails
[11:41:23] brendan-: has joined #RubyOnRails
[11:43:04] moeabdol: has joined #RubyOnRails
[11:50:20] mikecmpb_: has joined #RubyOnRails
[11:50:35] oqui: Hey guys, I've restructure my app as earlier adviced. However, when I load my home page it displays "Sessions#new . Find me in app/views/sessions/new.html.erb". I've double checked and new.html.erb actually is in directory app/views/sessions/. Am i still missing something? Please advice, thanks
[11:53:16] tbuehlmann: oqui: what exactly is the problem with that?
[11:54:17] oqui: tbuehlmann: it should render the page new.html.erb, but it instead displays "Find me in app/views/sessions/new.html.erb"
[11:54:20] kristofferR: has joined #RubyOnRails
[11:54:33] King_Rex: has joined #RubyOnRails
[11:54:37] tbuehlmann: is that the content of the file and all is correct?
[11:54:46] kareeoleez: anyone please ?
[11:55:37] mdw: has joined #RubyOnRails
[11:55:59] oqui: tbuehlmann: that's not the content of the file. It's a login page with the usual login form
[11:56:16] moeabdol: has joined #RubyOnRails
[11:56:17] tbuehlmann: oqui: hard to say remotely. is that app online anywhere so we can have a glance?
[11:56:22] PedramT: has joined #RubyOnRails
[11:57:33] artto: has joined #RubyOnRails
[11:58:46] Pupeno: has joined #RubyOnRails
[11:59:01] bbrowning: has joined #RubyOnRails
[11:59:36] oqui: tbuehlmann: unfortunately, it's a private app. I've to be discrete to a certain extent. But trust me on that one. although it's a symbolic link. Am assuming rails doesn't have a problem following symb links
[12:00:15] tbuehlmann: if you grep your files for "Find me in app/views/sessions/new.html.erb", do you find anything?
[12:01:49] hello9: has joined #RubyOnRails
[12:02:08] oqui: tbuehlmann: grep -ir "app/views/sessions/new.html.erb" . doesn't produce anything.
[12:02:15] rickmasta: has joined #RubyOnRails
[12:05:00] sevenseacat: look at your app logs to see what its rendering
[12:05:14] godzillaenlacasa: has joined #RubyOnRails
[12:05:31] oqui: tbuehlmann: look at the debug https://codetidy.com/8271/
[12:07:28] chipotle: has joined #RubyOnRails
[12:09:02] tbuehlmann: SessionsController#new rendering sessions/new.html.erb looks really okay to me, I think I can't help you
[12:09:05] baweaver: has joined #RubyOnRails
[12:10:58] fox_mulder_cp: kareeoleez: use app server without nginx or apache or another proxy in the wild - bad idea
[12:12:21] fox_mulder_cp: kareeoleez: and use app server to serve static files - twice bad idea
[12:12:35] bronson: has joined #RubyOnRails
[12:14:09] kareeoleez: fox_mulder_cp: I guess you're out of subject completely
[12:14:44] Pupeno: has joined #RubyOnRails
[12:16:01] fox_mulder_cp: kareeoleez: yes, i agree. but i really work with many teams, and have lot of best practices and reading guides for rails, deployment and some other topics
[12:16:17] sp1rs: has joined #RubyOnRails
[12:17:03] fox_mulder_cp: and using django, rails app without nginx - recommended for only testing purposes.
[12:18:01] tbuehlmann: that is so BS
[12:18:41] fox_mulder_cp: tbuehlmann: what are you mean?
[12:18:43] sevenseacat: I'm not surprised
[12:19:21] moeabdol: has joined #RubyOnRails
[12:22:16] Ropeney: has joined #RubyOnRails
[12:24:16] bob434: has joined #RubyOnRails
[12:24:45] navneet: has joined #RubyOnRails
[12:28:42] solars: has joined #RubyOnRails
[12:28:43] Spami: has joined #RubyOnRails
[12:32:05] solars: quick question, I've got a translation file cpc.en.yml but rails does not find the translations in there - I thought it loads all the .yml files in config/locales?
[12:32:38] hello9: has joined #RubyOnRails
[12:33:57] solars: nevermind was something else
[12:36:25] stennowork: has joined #RubyOnRails
[12:36:45] navneet: has joined #RubyOnRails
[12:37:10] stennowork: goot day, how can i change the default port rails is running on? using rails 4.2.5.2, and trying to set up redmine with mod_passenger
[12:37:37] stennowork: i last used rails when it was still 2.3, so i am a bit rusty
[12:37:45] stennowork: well actually i am not up to date at all
[12:39:24] Sawbones: has joined #RubyOnRails
[12:40:03] epochwolf: stennowork: rails server -p 3001
[12:40:28] epochwolf: for development, in production, look up the settings for your app server.
[12:40:46] stennowork: yes, i am in production
[12:40:51] stennowork: where are the settings for my app server
[12:41:00] epochwolf: stennowork: then rtfm for your app server.
[12:41:02] stennowork: rails server uses webrick
[12:41:16] epochwolf: ... don't use webrick in production.
[12:41:28] stennowork: thats why i don't use rails server
[12:41:34] stennowork: because rails server uses webrick
[12:41:40] stennowork: and i am in production
[12:41:47] stennowork: and i don't want to use webrick in production
[12:41:51] stennowork: that is the problem
[12:41:56] stennowork: thats why i mentioned passenger
[12:42:35] stennowork: so its not a config or something i have to change in the rails app? good to know
[12:42:38] epochwolf: Well, then read the documentation. If you're using it as an internal module, you don't bother setting ports, if you're using standalone, you read the documentation.
[12:42:52] artto: has joined #RubyOnRails
[12:43:04] epochwolf: No matter what you use, it comes back to reading the documentation.
[12:43:33] stennowork: good, i thought i had to tell rails somehow that it had to use passenger instead of webrick or something
[12:44:30] epochwolf: stennowork: um.. I think you still need the gem loaded for passenger in production.
[12:44:39] epochwolf: I could be wrong though, see documentation.
[12:47:10] Ropeney: has joined #RubyOnRails
[12:47:21] finnnnnnnnnnn: has joined #RubyOnRails
[12:47:23] srinidhi: has joined #RubyOnRails
[12:50:29] GodFather: has joined #RubyOnRails
[12:51:00] arup_r: has joined #RubyOnRails
[12:53:27] macsteps: has joined #RubyOnRails
[12:54:08] tildes: stennowork: there are several application server options. if it's enough for your app, and you don't want to spend time reading documentation, you could try thin, which is easy to setup
[12:54:19] quazimodo: has joined #RubyOnRails
[12:54:29] stennowork: i am willing to read documentation of course
[12:54:42] quazimod1: has joined #RubyOnRails
[12:54:46] quazimod2: has joined #RubyOnRails
[12:54:49] flashpoint9: has joined #RubyOnRails
[12:55:04] tildes: stennowork: the point is, that there are several options. for thin you just require the gem, and wham, it's in use
[12:55:10] sp1rs: has joined #RubyOnRails
[12:55:13] tildes: (if I remember right)
[12:55:28] stennowork: note that it has to be deployed on apache
[12:56:10] PedramT: has joined #RubyOnRails
[12:56:29] stennowork: i guess in the end i am just disappointed that i thought it was straightforward but it is
[12:56:36] xall: has joined #RubyOnRails
[12:57:10] stennowork: its a whole clusterfuck of bullshit, and about any redmine documentation being outdated doesn't help
[12:58:36] navneet: has joined #RubyOnRails
[12:59:24] w1lson: has joined #RubyOnRails
[12:59:44] JakFrist: has joined #RubyOnRails
[13:01:44] ramortegui: has joined #RubyOnRails
[13:02:48] navneet_: has joined #RubyOnRails
[13:03:58] stennowork: how can i generally tell rails to start in production
[13:04:22] crameth: has joined #RubyOnRails
[13:05:01] stennowork: ah, with RAILS_ENV=production rails s
[13:05:11] newjersey: has joined #RubyOnRails
[13:05:27] stennowork: uses webrick
[13:06:05] itsmeduncan: has joined #RubyOnRails
[13:06:44] yaw: stennowork: uses whatever application server you use in production
[13:07:01] stennowork: how can i tell rails which application server to use in production
[13:07:24] stennowork: this is rails 4
[13:07:59] yaw: stennowork: bin/app_server_cmd
[13:08:35] yaw: but I think putting the gem in the :production group should be enough
[13:08:48] stennowork: where do i put it in the :production group
[13:09:20] yaw: group :production do; gem 'app_server_gem'; end
[13:09:48] yaw: e.g. for the Thin app server, group :production do; gem 'thin'; end in your Gemfile should do
[13:09:54] w1lson: has joined #RubyOnRails
[13:10:06] stennowork: in my gemfile
[13:10:12] stennowork: yes, that is what i wanted to know
[13:11:44] n008f4g_: has joined #RubyOnRails
[13:13:43] grn: has joined #RubyOnRails
[13:13:45] moeabdol: has joined #RubyOnRails
[13:13:53] blackmesa: has joined #RubyOnRails
[13:14:53] IrishGringo: has joined #RubyOnRails
[13:14:58] Devalo: has joined #RubyOnRails
[13:16:24] artto: has joined #RubyOnRails
[13:16:28] diegoaguilar: has joined #RubyOnRails
[13:18:45] SeanLazer: has joined #RubyOnRails
[13:19:48] oqui: fox_mulder_cp: tbuehlmann i finally got it running. Somehow closing all terminal sessions, restarting the server worked. How, i don't know
[13:22:19] sp1rs: has joined #RubyOnRails
[13:22:49] Macaveli: has joined #RubyOnRails
[13:26:09] jds_: has joined #RubyOnRails
[13:26:15] akshat: has joined #RubyOnRails
[13:27:17] pyemkey: hello. How to use params.except on array param e.g location[]=London&location[]=Manchester ?
[13:29:44] DragonPunch: has joined #RubyOnRails
[13:30:09] rvanlieshout: pyemkey: except what?
[13:30:17] Ergo: has joined #RubyOnRails
[13:30:23] pyemkey: location[]=London
[13:31:20] PedramT: has joined #RubyOnRails
[13:32:22] lxsameer: has joined #RubyOnRails
[13:32:44] bob434: has joined #RubyOnRails
[13:32:46] pyemkey: rvanlieshout: I would like to make except on key - value pair. For example, look for key location[] and remove value London
[13:33:19] rvanlieshout: params[:location].delete('London')
[13:33:21] htmldrum: has joined #RubyOnRails
[13:37:32] pyemkey: rvanlieshout: oh it looks like I tried overhelmed this one.
[13:38:21] UglyVendetta: has joined #RubyOnRails
[13:38:49] pyemkey: I would like to ask you about different one. I would appreciate for getting hint, because I don't have idea how to bite this one. Let's say I would like to build similar mechanism to the one which use Linkedin in his search. When you click on the checkbox e.g location USA, then you will see above search result kind of token/tab with the name of checked checkbox. https://www.evernote.com/l/AZMuUusze3xJEY5TUCoPZ9e3QpXf9dy
[13:39:03] pyemkey: https://www.evernote.com/l/AZMuUusze3xJEY5TUCoPZ9e3QpXf9dyH4cw
[13:40:22] joshkovach: has joined #RubyOnRails
[13:40:58] douglascorrea: has joined #RubyOnRails
[13:41:58] bonswouar: has joined #RubyOnRails
[13:42:38] Macaveli: has joined #RubyOnRails
[13:48:34] marcules: has joined #RubyOnRails
[13:48:39] marcules: has joined #RubyOnRails
[13:49:22] solars: has joined #RubyOnRails
[13:49:28] macsteps: has joined #RubyOnRails
[13:51:55] fox_mulder_cp: oqui: good luck, bro, at last summer i was newbie in rails too )
[13:53:58] finnnnnnnnnnn: has joined #RubyOnRails
[13:55:25] jlebrech: has joined #RubyOnRails
[13:56:39] jlebrech: I have a frontend in a separate repo, how do I slap this in a rails app?
[13:57:02] finnnnnnnnnnn: has joined #RubyOnRails
[13:58:45] fryguy: put it somewhere where your webserver can serve it?
[13:58:56] fmcgeough: has joined #RubyOnRails
[13:59:08] p1k: has joined #RubyOnRails
[13:59:09] jacobat_: has joined #RubyOnRails
[13:59:09] rvanlieshout: or a s a submodule
[13:59:19] jlebrech: atm i'm deploy both the backend and frontend separately
[13:59:27] alfie_max15: has joined #RubyOnRails
[14:00:04] finnnnnnnnnnn: has joined #RubyOnRails
[14:00:25] stennowork: finally i got it running
[14:00:33] stennowork: and i can't even blame rails for it
[14:00:50] jlebrech: i was looking at the submodule option, should I run gulp through capistrano. I'd like to use ruby to switch stuff out based on rails_env
[14:00:52] stennowork: has left #RubyOnRails: ("Verlassend")
[14:02:35] artto: has joined #RubyOnRails
[14:03:09] rvanlieshout: there are ruby wrappers for git :)
[14:03:15] rvanlieshout: also it has all the thing you need built in
[14:03:40] jlebrech: there are so many solutions tho
[14:03:58] jlebrech: lots of out of date stuff too
[14:03:59] stannard: has joined #RubyOnRails
[14:04:48] rvanlieshout: so git submodule :)
[14:04:51] jlebrech: this is probably what i'm looking for https://thinkster.io/angular-rails
[14:05:13] jlebrech: but with a submodule
[14:05:28] rvanlieshout: if you just want to include angular
[14:05:39] rvanlieshout: just use the angular-rails gem?
[14:05:43] rvanlieshout: angularjs-rails
[14:05:55] theunraveler: has joined #RubyOnRails
[14:05:59] jlebrech: mhh, i already have the whole angularjs app built
[14:06:14] w1lson: has joined #RubyOnRails
[14:06:30] macsteps: has joined #RubyOnRails
[14:07:26] OTORelic: has joined #RubyOnRails
[14:07:50] jlebrech: maybe I should keep deploying backend and frontend separately, but do something like this http://railsware.com/blog/2011/11/18/caphub-multiple-applications-deployment-with-capistrano/
[14:07:50] rvanlieshout: if done right it shouldn't matter where angular is served from
[14:08:03] rvanlieshout: so you could just include the view stuff
[14:08:06] rvanlieshout: add angular and done
[14:08:13] alfie_max15: hi guys, can anyone please help me out with writing a query, this is what i am trying to achieve, @location.reviews.group(:directory)
[14:08:23] alfie_max15: and i'm getting the error PG::GroupingError: ERROR: column "reviews.id" must appear in the GROUP BY clause or be used in an aggregate function
[14:08:48] rvanlieshout: alfie_max15: that's cause you have to tell the db what it should do with those columns
[14:08:54] rvanlieshout: if you group, you have multiple records per column
[14:08:59] rvanlieshout: so you can't just ask for reviews.id
[14:09:02] rvanlieshout: as it's not just one
[14:09:09] alfie_max15: i want to get average of the `rating` column
[14:09:17] yaw: has joined #RubyOnRails
[14:09:18] alfie_max15: should i use select?
[14:09:19] rvanlieshout: .pluck('AVERAGE(rating)')
[14:09:27] rvanlieshout: or whatever postgres uses for average
[14:09:28] jlebrech: rvanlieshout: i'd like to get rails to grab my files and vendor files from a frontend/ submodule and include a myapp.js and vendors.js in the asset pipeline
[14:09:35] fn2187: has joined #RubyOnRails
[14:09:44] rvanlieshout: jlebrech: then include those files from the asset pipeline
[14:11:48] jlebrech: not liking gulp I'd rather rails managed the source files from the frontend directory, i think that's possible.
[14:11:56] rvanlieshout: anyway. signing off
[14:12:03] jlebrech: it should be able to handle files in a submodule?
[14:12:05] rvanlieshout: why not? you can just include them from the app.js
[14:12:19] rvanlieshout: when you checked out your submodule files are just local
[14:12:22] jlebrech: ok, I'll around with that
[14:12:32] rvanlieshout: and cya. back thurs
[14:13:55] alfie_max15: got it, but the rating is in int, how can i get the average as a float?
[14:14:23] bronson: has joined #RubyOnRails
[14:15:07] lxsameer: has joined #RubyOnRails
[14:15:07] lxsameer: has joined #RubyOnRails
[14:15:41] blue_lizzard: has joined #RubyOnRails
[14:21:30] akshat: has joined #RubyOnRails
[14:21:38] Hardik_: has joined #RubyOnRails
[14:23:29] ferr: has joined #RubyOnRails
[14:23:47] moeabdol: has joined #RubyOnRails
[14:26:50] jokke: maybe someone here can help me out
[14:26:52] kiddorails: has joined #RubyOnRails
[14:27:06] jokke: i'm using sidekiq to run some rake tasks in background
[14:27:17] jokke: i get an undefined constant Rake error however
[14:27:26] jokke: should i explicitly require rake?
[14:27:45] alfie_max15: i don't think so
[14:27:55] yellow5: has joined #RubyOnRails
[14:28:12] stardiviner: has joined #RubyOnRails
[14:28:14] jokke: the tasks aren't triggered from rails but via sidekiq-scheduler
[14:29:26] hardy12: has joined #RubyOnRails
[14:30:12] arup_r: has joined #RubyOnRails
[14:30:31] kiddorails: Hey, I have some test/development group's gems installed on production machine. Now, even if I run bundle install --without test development, the test's gem still remains installed in system. How can I automatically remove such gems?
[14:30:46] kiddorails: bundle clean command is present. But it doesn't take environment name as argument.
[14:31:05] edwinvdgraaf: has joined #RubyOnRails
[14:31:15] thehardikjoshi: has joined #RubyOnRails
[14:32:56] universa1: kiddorails: in production use the --deployment option, which will install the gems locally to the app
[14:33:18] universa1: kiddorails: globally you basically only need to have whatever comes with ruby + bundler installed.
[14:34:38] Hardik_: has joined #RubyOnRails
[14:34:53] allcentury: has joined #RubyOnRails
[14:35:12] Detch: has joined #RubyOnRails
[14:35:43] Hardik_: has joined #RubyOnRails
[14:39:01] kiddorails: universa1: you mean, --deployment with bundle install or bundle clean? Also, will that automatically uninstall the previously installed gems from development/test group?
[14:39:47] kiddorails: universa1: removal of those gems is necessary :)
[14:40:02] Sawbones_: has joined #RubyOnRails
[14:40:20] glaksmono: has joined #RubyOnRails
[14:41:51] jhack: has joined #RubyOnRails
[14:43:30] rashkov: has joined #RubyOnRails
[14:44:00] crystal77: has joined #RubyOnRails
[14:44:40] rickmasta: has joined #RubyOnRails
[14:44:58] universa1: ok.. already gone...
[14:45:03] smathy: has joined #RubyOnRails
[14:45:27] RegulationD: has joined #RubyOnRails
[14:45:42] jokke: if i require rake the error is replaced by rake not finding my rake task
[14:46:17] jokke: and i can't seem to be able to require it wirth require 'lib/tasks/meso/import_jobs.rake'
[14:46:24] bob434: has joined #RubyOnRails
[14:46:31] rashkov: I've got a controller method that chews through a bit of data using ActiveRecord, but it shows Completed 200 OK in 787ms. Benchmarking that procedure in the console shows only .22 seconds. However, when the controller logs that 200 OK, it usually has my CPUs pegged pretty high. It takes another two seconds for the CPUs to come back down, and only then does the client receive a response, for a
[14:46:35] Devalo: has joined #RubyOnRails
[14:46:35] jokke: `require': No such file to load -- lib/tasks/meso/import_jobs.rake (LoadError)
[14:46:37] universa1: jokke: http://stackoverflow.com/questions/29833695/loading-rails-environment-when-running-rake-tasks-using-rufus-scheduler-and-side ??
[14:46:37] rashkov: round-trip time of 3.5 seconds. The data send over the wire is less than 1Kb. Any idea what could be going on, and how to improve performance on this?
[14:46:46] jokke: universa1: ah!
[14:46:46] crystal77: is rake supposed to be the ruby version of make?
[14:46:49] jokke: thank you
[14:46:56] alfie_max15: has left #RubyOnRails: ("Ex-Chat")
[14:47:03] universa1: crystal77: no.
[14:47:18] universa1: crystal77: though the initial name might have borrowed frmo it ;)
[14:47:19] AoifeOToole: has joined #RubyOnRails
[14:47:20] crystal77: oh, haha. I thought that was what they were going for :p
[14:47:27] universa1: crystal77: so actually maybe ;)
[14:48:02] hobodave: has joined #RubyOnRails
[14:48:18] patrick_star_2: has joined #RubyOnRails
[14:48:25] JakFrist: has joined #RubyOnRails
[14:48:41] sp1rs: has joined #RubyOnRails
[14:49:25] deavid: has joined #RubyOnRails
[14:50:02] mostlybadfly: has joined #RubyOnRails
[14:52:55] zave: has joined #RubyOnRails
[14:54:13] stannard: has joined #RubyOnRails
[14:54:47] alfie_max15: has joined #RubyOnRails
[14:55:08] alfie_max15: This is the query i have so far, @location.reviews.group(:name, :directory).select('name, directory, CAST(AVG(rating) AS DECIMAL(10,2)) as rating')
[14:55:21] alfie_max15: how can i get the count also in it?
[14:55:38] universa1: alfie_max15: count(rating) as count?!
[14:55:53] alfie_max15: not the count of rating
[14:56:06] alfie_max15: count of the group, i.e how many in the group
[14:56:58] universa1: alfie_max15: what happens if you do count(rating) ?
[14:58:13] smathy: crystal77, conceptually, yes.
[14:58:42] universa1: alfie_max15: or count(id)
[14:59:43] alfie_max15: but, nothing comes in the output
[14:59:53] universa1: alfie_max15: show!
[14:59:55] alfie_max15: i remember using something like this sometime back
[14:59:57] alfie_max15: @location.reviews.group(:name, :directory).select('name, directory, CAST(AVG(rating) AS DECIMAL(10,2)) as rating, COUNT(*) as total')
[15:00:00] bob434: has joined #RubyOnRails
[15:00:08] glaksmono: has joined #RubyOnRails
[15:00:26] alfie_max15: but rating, directory and name are the only fields in the result
[15:00:44] alfie_max15: i expected `total` field to be present
[15:01:37] alfie_max15: example : #<Review:0x007fec808b4e70> {
[15:01:37] alfie_max15: :rating => 4.75,
[15:01:37] alfie_max15: :directory => "yelp",
[15:01:37] alfie_max15: :name => "Yelp"
[15:01:46] kiddorails: has joined #RubyOnRails
[15:03:39] universa1: alfie_max15: your_query.map(&:total)
[15:03:49] finnnnnnnnnnn: has joined #RubyOnRails
[15:06:03] berserk_ren: has joined #RubyOnRails
[15:06:46] alfie_max15: oh, i see it now. it was because the field total wasn't actually an attribute of the review model
[15:07:09] stardiviner: has joined #RubyOnRails
[15:08:06] smathy: alfie_max15, !rule7 please
[15:08:06] helpa: alfie_max15: Anything more than 2 lines goes in a Gist (http://gist.github.com) or a Pastie (http://pastie.org). Spamming the channel with walls of text is not welcome.
[15:09:18] alfie_max15: smathy, helpa sorry guys, i'll keep it in mind the next time
[15:11:30] antgel: has joined #RubyOnRails
[15:11:38] mdw: has joined #RubyOnRails
[15:12:33] disgrntld: has joined #RubyOnRails
[15:14:03] akshat: has joined #RubyOnRails
[15:14:14] beauby: has joined #RubyOnRails
[15:14:19] PedramT: has joined #RubyOnRails
[15:16:13] smathy: rashkov, after your "Completed" line in your logs you should see a breakdown for time taken in Views and time taken in ActiveRecord. The views are the biggest additional thing for a request vs in your rails console and are likely to be the difference in the times between each.
[15:16:55] solars: has joined #RubyOnRails
[15:17:17] agent_white: has joined #RubyOnRails
[15:19:06] universa1: rashkov: adding to what smathy said: times in dev mode are an indication, but if you want to really test it, run in production mode.
[15:19:49] allcentury: has joined #RubyOnRails
[15:21:46] redasus2: has joined #RubyOnRails
[15:23:54] ur5us: has joined #RubyOnRails
[15:25:08] bob434: has joined #RubyOnRails
[15:25:53] IrishGringo: has joined #RubyOnRails
[15:26:48] berserk_ren: has joined #RubyOnRails
[15:26:49] akshat_: has joined #RubyOnRails
[15:28:37] berserk_ren: has joined #RubyOnRails
[15:29:02] RegulationD: has joined #RubyOnRails
[15:33:24] Ropeney: has joined #RubyOnRails
[15:33:34] AoifeOToole: has joined #RubyOnRails
[15:34:04] htmldrum: has joined #RubyOnRails
[15:38:40] dopie: has joined #RubyOnRails
[15:39:40] JakFrist: has joined #RubyOnRails
[15:39:44] Macaveli: has joined #RubyOnRails
[15:40:58] finnnnnnnnnnn: has joined #RubyOnRails
[15:41:35] solars: has joined #RubyOnRails
[15:43:36] Pupeno: has joined #RubyOnRails
[15:43:36] Pupeno: has joined #RubyOnRails
[15:43:56] alfie_max15: has joined #RubyOnRails
[15:45:03] tildes: has joined #RubyOnRails
[15:46:31] lxsameer: has joined #RubyOnRails
[15:46:31] lxsameer: has joined #RubyOnRails
[15:47:31] diegoaguilar: has joined #RubyOnRails
[15:48:13] Coldblackice_: has joined #RubyOnRails
[15:48:37] pawnbox: has joined #RubyOnRails
[15:48:45] dici: has joined #RubyOnRails
[15:50:18] Macaveli: has joined #RubyOnRails
[15:51:16] macsteps: has joined #RubyOnRails
[15:51:25] Devalo: has joined #RubyOnRails
[15:53:37] bonswouar: has joined #RubyOnRails
[15:53:51] arup_r1: has joined #RubyOnRails
[15:54:12] [Butch]: has joined #RubyOnRails
[15:55:50] Regulati_: has joined #RubyOnRails
[15:59:03] DoubleMalt: has joined #RubyOnRails
[16:01:44] norc: has joined #RubyOnRails
[16:02:28] armyriad: has joined #RubyOnRails
[16:03:51] daivyk: has joined #RubyOnRails
[16:06:41] nozpheratu: has joined #RubyOnRails
[16:07:33] stannard: has joined #RubyOnRails
[16:07:38] Pupeno: Is there a way to redirect to a different page for sign in on devise?
[16:07:41] navneet: has joined #RubyOnRails
[16:07:49] davidw: has joined #RubyOnRails
[16:08:04] speakingcode: has joined #RubyOnRails
[16:08:21] smathy: Pupeno, !g Is there a way to redirect to a different page for sign in on devise?
[16:10:21] girlydev: has joined #RubyOnRails
[16:10:23] baweaver: has joined #RubyOnRails
[16:10:29] arup_r1: Is there any tool, by which I can produce a report which will show how many test failed and passed for each groups like controllers, models, features etc as per my folders..
[16:11:04] baweaver: has joined #RubyOnRails
[16:11:30] arup_r1: I can run tests from each group manually 1 by 1. But asking if there is something available which can give me the information when I run like `rspec spec/` all tests in one go.
[16:11:33] smathy: arup___, just run each folder separately.
[16:15:20] Pumukel: has joined #RubyOnRails
[16:15:52] girlydev: On my sendgrid account, I have some designed templates, and I’m using the gem "sendgrid-ruby” to use that template to email to a user. When i execute the code, it sends the “text” version of the template. How can I ensure that the designed template is sent instead?
[16:16:12] bronson: has joined #RubyOnRails
[16:16:43] smathy: girlydev, that's a paid service, with support, and you're using the official gem - talk to them.
[16:17:42] Devalo: has joined #RubyOnRails
[16:18:17] girlydev: ah thanks smathy
[16:18:59] rashkov: smathy & universa1: just saw your responses, thanks for the suggestions
[16:19:26] smathy: rashkov, you're welcome.
[16:26:08] theunraveler: has joined #RubyOnRails
[16:27:30] alfie_max15: has joined #RubyOnRails
[16:29:24] sandelius: has joined #RubyOnRails
[16:32:14] fryguy: what effect does compiling the pg gem against different versions of libpq have? for example, if I'm running postgres 9.5 but I compile pg against a 9.2 version of libpq, what happens?
[16:33:24] smathy: Any apps linked to that libpq will either not work at all with your running pg, or will have random and impossible to debug bugs.
[16:33:48] workmad3: fryguy: tl;dr; don't do that
[16:34:14] fryguy: smathy: i'm pretty sure that's a bit overdramatic. older versions of psql can connect to newer versions of postgres without problems
[16:34:31] jowiar: has joined #RubyOnRails
[16:34:36] smathy: fryguy, cool, enjoy.
[16:35:11] yardenbar: has joined #RubyOnRails
[16:35:57] blackmesa: has joined #RubyOnRails
[16:36:39] marr: has joined #RubyOnRails
[16:38:59] armyriad: has joined #RubyOnRails
[16:41:35] benlieb: has joined #RubyOnRails
[16:45:54] armyriad: has joined #RubyOnRails
[16:46:45] VeryBewitching: has joined #RubyOnRails
[16:47:02] manfrin: has joined #RubyOnRails
[16:48:41] Spami: has joined #RubyOnRails
[16:48:50] armyriad: has joined #RubyOnRails
[16:50:21] godzillaenlacasa: has joined #RubyOnRails
[16:50:22] Ropeney: has joined #RubyOnRails
[16:50:49] akshat_: has joined #RubyOnRails
[16:50:56] Gizmokid2005: has joined #RubyOnRails
[16:52:26] dionysus69: has joined #RubyOnRails
[16:52:30] DragonPunch: has joined #RubyOnRails
[16:52:37] aloneintheworld: has joined #RubyOnRails
[16:53:35] solars: has joined #RubyOnRails
[16:55:36] moeabdol: has joined #RubyOnRails
[16:55:58] rafaelfranca: has joined #RubyOnRails
[16:55:58] rafaelfranca: has joined #RubyOnRails
[16:55:59] Cohedrin: has joined #RubyOnRails
[16:58:33] benlieb: has joined #RubyOnRails
[17:00:05] bradleyprice: has joined #RubyOnRails
[17:00:13] weaksauce: has joined #RubyOnRails
[17:01:32] yardenbar: has joined #RubyOnRails
[17:01:59] Cohedrin_: has joined #RubyOnRails
[17:03:09] Synthead: has joined #RubyOnRails
[17:03:41] Devalo: has joined #RubyOnRails
[17:04:02] bradleyp_: has joined #RubyOnRails
[17:05:53] Mia: has joined #RubyOnRails
[17:05:53] Mia: has joined #RubyOnRails
[17:06:45] n008f4g_: has joined #RubyOnRails
[17:09:27] Detch: has joined #RubyOnRails
[17:12:05] PedramT: has joined #RubyOnRails
[17:14:34] blackmesa: has joined #RubyOnRails
[17:15:52] sleungcy: has joined #RubyOnRails
[17:16:03] macsteps: has joined #RubyOnRails
[17:17:27] sleungcy: Hi, is having lots of cache hits going to be a performance issue? Is it worth some time to look into putting some memoization?
[17:18:43] smathy: sleungcy, they can be ignored from the DB perspective, but often it means that you're (re)constructing a lot of view over and over where you might be able to cache that.
[17:19:34] sleungcy: hmm that sounds really bad
[17:20:21] cschneid: has joined #RubyOnRails
[17:22:46] jowiar: has joined #RubyOnRails
[17:23:23] SteenJobs: has joined #RubyOnRails
[17:24:28] mdw: has joined #RubyOnRails
[17:25:00] jhack: has joined #RubyOnRails
[17:26:08] replay: has joined #RubyOnRails
[17:27:51] fernandomm: has joined #RubyOnRails
[17:29:19] Macaveli: has joined #RubyOnRails
[17:30:19] djbkd: has joined #RubyOnRails
[17:30:51] arup_r: has joined #RubyOnRails
[17:31:07] djbkd: has joined #RubyOnRails
[17:34:17] Detch: has joined #RubyOnRails
[17:37:38] baweaver: has joined #RubyOnRails
[17:38:34] pvertenten: has joined #RubyOnRails
[17:39:29] Detch: has joined #RubyOnRails
[17:40:38] p8m: has joined #RubyOnRails
[17:41:36] mikecmpbll: has joined #RubyOnRails
[17:48:58] yardenbar: has joined #RubyOnRails
[17:50:38] MEATCHICKEN: How do I redirect to sign-up page when user is not authenticated [devise]
[17:50:56] MEATCHICKEN: I tried overriding authenticate_user filter and it resulted in a loop
[17:50:56] alfie_max15: `before_filter :authenticate_user!`
[17:51:12] smathy: meatchicken, !g How do I redirect to sign-up page when user is not authenticated [devise]
[17:51:42] MEATCHICKEN: I want to customize that behaviour - I've looked at all the Stackoverflows
[17:51:56] alfie_max15: customize? in what way?
[17:52:40] sbarg: has joined #RubyOnRails
[17:52:47] djbkd: has joined #RubyOnRails
[17:52:50] MEATCHICKEN: A non-logged in user will be redirected to signup instead of signin
[17:52:55] MEATCHICKEN: devise default is signin
[17:53:55] MEATCHICKEN: I've tried rewriting it like so
[17:53:56] MEATCHICKEN: https://gist.github.com/anonymous/33562548e2bfdb0d618c07309725d9d5
[17:54:01] MEATCHICKEN: but it results in a loop
[17:54:09] RegulationD: has joined #RubyOnRails
[17:54:11] MEATCHICKEN: I am guessing because the registration page
[17:54:16] MEATCHICKEN: runs the filter too
[17:56:46] JakFrist: has joined #RubyOnRails
[17:57:22] smathy: The SECOND google result was "redirect to registration page if user not signed in"
[17:57:23] artto: has joined #RubyOnRails
[17:59:34] alfie_max15: devise has it in their wiki
[17:59:35] alfie_max15: https://github.com/plataformatec/devise/wiki/How-To%3A-Redirect-to-a-specific-page-when-the-user-can-not-be-authenticated
[18:01:32] arup_r: has joined #RubyOnRails
[18:01:39] emachnic: has joined #RubyOnRails
[18:01:47] greengriminal: has joined #RubyOnRails
[18:04:22] pawnbox: has joined #RubyOnRails
[18:04:29] macsteps: has joined #RubyOnRails
[18:04:32] n008f4g_: has joined #RubyOnRails
[18:04:49] tildes: has joined #RubyOnRails
[18:05:02] tvw: has joined #RubyOnRails
[18:05:04] AoifeOToole: has joined #RubyOnRails
[18:06:00] baweaver: has joined #RubyOnRails
[18:06:42] Devalo: has joined #RubyOnRails
[18:11:34] chouhoulis: has joined #RubyOnRails
[18:12:48] yellow5: has joined #RubyOnRails
[18:12:54] pawnbox: has joined #RubyOnRails
[18:12:56] tildes: has joined #RubyOnRails
[18:16:35] chouhoul_: has joined #RubyOnRails
[18:16:46] Martyn: has joined #RubyOnRails
[18:17:25] manfrin: has joined #RubyOnRails
[18:18:09] bronson: has joined #RubyOnRails
[18:18:21] Talltree: how do i make a association with something other then the ID?
[18:19:03] alfie_max15: Talltree, could you care to give an example
[18:19:34] Talltree: experience_points belong to character via char_name and not ID
[18:20:00] akshat: has joined #RubyOnRails
[18:20:09] alfie_max15: and why not use id?
[18:20:57] Talltree: couse i dont like the 1..1000 thingy, should be more rnd..
[18:21:08] baweaver: has joined #RubyOnRails
[18:21:47] alfie_max15: then just obfuscate the id, https://github.com/namick/obfuscate_id
[18:22:18] Talltree: also the id wont be present via the posted information
[18:22:33] Talltree: means when i ever new exp i have the char name, but would have to look up the id
[18:22:50] Talltree: to align it. so why not just use the name?
[18:23:00] Talltree: just a thought i had...
[18:23:08] bob434: has joined #RubyOnRails
[18:23:30] alfie_max15: id is used as it can't get more unique than that
[18:23:34] alfie_max15: but i get your point
[18:23:54] Talltree: wont be a problem either if i know how to look up the id, which i dont
[18:24:07] girlydev: has left #RubyOnRails: ()
[18:24:08] Talltree: haha, fml learning this is not easy...
[18:24:23] alfie_max15: can you give an actual example, like real data
[18:24:27] Spami: has joined #RubyOnRails
[18:24:50] rails750: has joined #RubyOnRails
[18:25:22] alfie_max15: no, forget it. can you put up a gist with the model and associations
[18:25:48] rails750: There are designed templates in my free sendgrid account, and I would like to use them to send with my RoR app. What is the best way to do so?
[18:28:42] Talltree: i dont even have a git account, i got a excel table which i used to plan the associacions etc, can you use that?
[18:29:15] Oliphaunte: has joined #RubyOnRails
[18:29:17] alfie_max15: http://pastie.org
[18:29:17] Talltree: (i use my own gitlab install)
[18:30:53] Talltree: https://i.imgur.com/58wJdhM.png <- is better i think
[18:31:23] Talltree: i am using a SecureRandom.base64 on the char_expkey
[18:31:34] Talltree: as assosiation
[18:31:36] Talltree: but nvm that
[18:31:58] Talltree: i will clear that up
[18:32:24] alfie_max15: what about charfkey
[18:32:35] Khrums: has joined #RubyOnRails
[18:32:39] alfie_max15: *char_expfkey
[18:32:41] Talltree: the foreign key, i wanted to bind them with the base64 string...
[18:32:46] Khrums: has left #RubyOnRails: ()
[18:32:47] Talltree: which is stupid i know now
[18:32:53] moei: has joined #RubyOnRails
[18:33:30] artto: has joined #RubyOnRails
[18:33:45] joshkovach: has joined #RubyOnRails
[18:34:32] roshanavand: has joined #RubyOnRails
[18:35:07] epochwolf: Talltree: why don't you just use uuids for primary keys?
[18:35:15] jstransky: has joined #RubyOnRails
[18:35:20] newjersey: has joined #RubyOnRails
[18:36:38] Talltree: because i dont know how or what those are? i saw a video about base64 which i liked, i also like the scambled id that youtube uses....
[18:36:58] Talltree: all guess work trial and error, currently i am erroring like crazy.^^
[18:38:58] Devalo: has joined #RubyOnRails
[18:41:02] alfie_max15: you want to make the id more random : use https://github.com/namick/obfuscate_id
[18:41:02] alfie_max15: if you want to make them more seo friendly and user friendly : use https://github.com/norman/friendly_id
[18:41:33] jenrzzz: has joined #RubyOnRails
[18:41:34] Talltree: yeah frindly_id is fun
[18:42:12] djbkd: has joined #RubyOnRails
[18:42:18] Talltree: still dont know how to properly set up the interaction tho...
[18:42:34] Talltree: or association...
[18:42:50] alfie_max15: setting up association would be the same
[18:42:59] epochwolf: Talltree: don't obfuscate stuff in the database... that belongs in the UI layer.
[18:43:07] alfie_max15: the database stores the actual ids itself
[18:43:47] Talltree: ofc i dont want user to just be able to from one it to another
[18:44:00] sbarg: has left #RubyOnRails: ()
[18:44:48] shinnya: has joined #RubyOnRails
[18:44:55] jowiar: has joined #RubyOnRails
[18:45:01] epochwolf: Talltree: why? Access controls should prevent users from accessing things they shouldn't.
[18:45:22] RegulationD: has joined #RubyOnRails
[18:45:40] Talltree: going from characters/1 to characters/2 isnt exactly what i could acess control
[18:45:48] Talltree: the user is supposed to see everything, just not by id
[18:45:57] epochwolf: Why not by id?
[18:46:39] Talltree: is i dont like it a valid reason?
[18:46:43] RegulationD: has joined #RubyOnRails
[18:47:00] etiago: has joined #RubyOnRails
[18:47:20] epochwolf: It's not one I find compelling.
[18:47:47] wolfravenous: has joined #RubyOnRails
[18:48:06] Talltree: problem remains, if i ident aka assosiate by id
[18:48:10] Talltree: i have to look up id on post
[18:48:13] Talltree: from the name
[18:48:19] epochwolf: wolfravenous: pong?
[18:48:43] epochwolf: Talltree: Correct, you'll need to look up by whatever you decided to use.
[18:48:45] wolfravenous: epochwolf: thanks
[18:49:17] Talltree: epochwolf, do you happen to know of an example i could use, since i am new to this stuff?
[18:49:41] epochwolf: I mentioned uuids before.
[18:50:01] epochwolf: Here's an example of one: 2bc08962-b3dd-4f29-b2e6-244710c86106
[18:50:14] epochwolf: You can use them as primary keys in the database.
[18:50:56] yfeldblum: has joined #RubyOnRails
[18:50:57] alfie_max15: epochwolf, is this what you meant? https://github.com/jashmenn/activeuuid
[18:51:01] Talltree: i thought i was just going to use the ID now, more like the code to look up the id that belongs to the char if he allready exists
[18:51:12] Cohedrin: has joined #RubyOnRails
[18:53:07] epochwolf: alfie_max15: I really don't like that one... it's patched uuids on top of everything. Postgres has native support for them.
[18:53:31] alfie_max15: oh, didn't know that
[18:54:29] fox_mulder_cp: Talltree: https://www.google.com.ua/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiavJ6S_azMAhWpAJoKHSooADEQFggbMAA&url=http%3A%2F%2Fblog.arkency.com%2F2014%2F10%2Fhow-to-start-using-uuid-in-activerecord-with-postgresql%2F&usg=AFQjCNGXDx79FCiXSk-G0cBmErJ8SFZPHw
[18:54:29] ferr: has joined #RubyOnRails
[18:54:50] alfie_max15: http://blog.arkency.com/2014/10/how-to-start-using-uuid-in-activerecord-with-postgresql/
[18:55:07] fox_mulder_cp: Talltree: after when create migration with association - add belongs_to, :users, type: :uuid, ..key
[18:55:14] roshanavand: has joined #RubyOnRails
[18:55:38] fox_mulder_cp: Talltree: and how to set default id as uuid http://blog.mccartie.com/2015/10/20/default-uuid's-in-rails.html
[18:55:39] alfie_max15: epochwolf, so i just have to enable the extension using `enable_extension 'uuid-ossp'` right?
[18:56:15] fox_mulder_cp: epochwolf: for enable extansion u must add to postgres user admin rights
[18:56:37] fox_mulder_cp: by default add extensions for databases can only postgres user
[18:57:15] epochwolf: alfie_max15: looks like it
[19:00:54] nozpheratu: has joined #RubyOnRails
[19:10:26] ferr: has joined #RubyOnRails
[19:11:48] AoifeOToole: has joined #RubyOnRails
[19:11:49] baweaver: has joined #RubyOnRails
[19:13:03] arBmind: has joined #RubyOnRails
[19:13:59] IrishGringo: has joined #RubyOnRails
[19:14:17] bob434: has joined #RubyOnRails
[19:14:35] xall: has joined #RubyOnRails
[19:15:18] manfrin_: has joined #RubyOnRails
[19:16:56] benlieb: has joined #RubyOnRails
[19:18:58] chouhoulis: has joined #RubyOnRails
[19:20:49] n008f4g_: has joined #RubyOnRails
[19:24:13] netzfisch: has joined #RubyOnRails
[19:24:42] baweaver: has joined #RubyOnRails
[19:26:02] slacko64_29568: has joined #RubyOnRails
[19:27:06] creature: has joined #RubyOnRails
[19:27:06] creature: has joined #RubyOnRails
[19:27:09] pawnbox: has joined #RubyOnRails
[19:27:43] flashpoi_: has joined #RubyOnRails
[19:30:25] tildes: has joined #RubyOnRails
[19:32:19] bob434: has joined #RubyOnRails
[19:32:25] bronson: has joined #RubyOnRails
[19:32:37] aegis3121: has joined #RubyOnRails
[19:34:27] htmldrum: has joined #RubyOnRails
[19:35:59] akshat_: has joined #RubyOnRails
[19:39:17] Maletor: has joined #RubyOnRails
[19:41:17] flashpoint9: has joined #RubyOnRails
[19:41:19] Durin_: has joined #RubyOnRails
[19:42:29] Devalo: has joined #RubyOnRails
[19:42:41] chouhoulis: has joined #RubyOnRails
[19:43:18] apotry: has joined #RubyOnRails
[19:43:38] King_Rex: has joined #RubyOnRails
[19:44:56] Dimik: has joined #RubyOnRails
[19:45:56] w1lson: has joined #RubyOnRails
[19:48:17] moeabdol: has joined #RubyOnRails
[19:48:44] srinidhi: has joined #RubyOnRails
[19:48:49] d5sx43: has joined #RubyOnRails
[19:49:08] jowiar: has joined #RubyOnRails
[19:52:32] JakFrist: has joined #RubyOnRails
[19:55:24] benlieb: has joined #RubyOnRails
[19:56:21] agent_white: has joined #RubyOnRails
[19:58:16] sbarg: has joined #RubyOnRails
[20:00:35] zave: has joined #RubyOnRails
[20:01:21] yardenbar: has joined #RubyOnRails
[20:01:45] jenrzzz: has joined #RubyOnRails
[20:01:46] jenrzzz: has joined #RubyOnRails
[20:02:05] diegoviola: has joined #RubyOnRails
[20:02:17] IrishGringo: has joined #RubyOnRails
[20:02:47] djbkd: has joined #RubyOnRails
[20:04:57] GodFather: has joined #RubyOnRails
[20:06:20] sbarg: has left #RubyOnRails: ()
[20:11:53] blackmesa: has joined #RubyOnRails
[20:12:01] rrawlins: has joined #RubyOnRails
[20:14:36] sneakerhax: has joined #RubyOnRails
[20:15:04] beauby: has joined #RubyOnRails
[20:15:49] gambl0re: has joined #RubyOnRails
[20:15:49] gambl0re: has joined #RubyOnRails
[20:17:15] n008f4g_: has joined #RubyOnRails
[20:18:03] bob434: has joined #RubyOnRails
[20:19:30] jonr22: has joined #RubyOnRails
[20:20:59] Quintasan: Any idea why I can't run bundle exec rails c -e production on a production server? I get the Devise.secret_key not being set despite me manually doing export SECRET_KEY_BASE read by config/secrets.rb
[20:21:05] DragonPunch: has joined #RubyOnRails
[20:22:10] fox_mulder_cp: Quintasan: rails C - railc CONSOLE
[20:22:21] fox_mulder_cp: rails S - rails server
[20:22:39] epochwolf: fox_mulder_cp: I'm pretty sure he's trying to open a console.
[20:22:55] epochwolf: Quintasan: does echo $SECRET_KEY_BASE return anything?
[20:23:07] Quintasan: epochwolf: Yes, the SECRET_KEY_BASE I use
[20:23:28] epochwolf: Quintasan: how did you export?
[20:23:47] Quintasan: export SECRET_KEY_BASE=<insert value here>
[20:25:20] brent__: has joined #RubyOnRails
[20:25:55] epochwolf: Quintasan: are there any other environment variables missing?
[20:26:16] Quintasan: epochwolf: I am pretty much sure not. I just copypasted them from the systemd unit I'm using to run the application
[20:27:06] epochwolf: Quintasan: not sure then... sorry. :(
[20:27:54] smathy: Quintasan, sounds like you must have set something in your code to either not use that env var, or not use it for devise.
[20:27:58] epochwolf: Quintasan: try bundle exec rails console production
[20:29:10] Quintasan: https://gist.github.com/Quintasan/6590999369c605d70c1fdd945a769126
[20:29:21] Quintasan: This is literally what I have in secrets.yml
[20:29:29] Quintasan: Devise was supposed to use SECRET_KEY_BASE if set
[20:29:36] epochwolf: Quintasan: did you try it without -e?
[20:31:30] mdw: has joined #RubyOnRails
[20:32:18] smathy: Quintasan, and in config/initializers/devise.rb you're not overriding the config.secret_key ?
[20:32:27] fox_mulder_cp: at rails 5 after export SECRET_KEY_BASE see fails too
[20:32:38] fox_mulder_cp: when try start console
[20:32:58] SteenJobs: has joined #RubyOnRails
[20:33:02] Quintasan: # config.secret_key = '7d7d0f388435b08afa4293eb6492db2cf95c629ffa2490a3d6d366f2523814e98116ed4f66a7b3bc884495945160cd6050c4745c9b3f99dcfef8b7b222ef5028'
[20:33:08] Quintasan: It's commented out.
[20:33:22] Quintasan: fox_mulder_cp: wait, what, is this thing not working in rails 5?
[20:33:24] Quintasan: Bloody hell.
[20:33:39] sandelius: has joined #RubyOnRails
[20:34:09] fox_mulder_cp: Quintasan: i try start bundle exec rails console production after export SECRET_KEY_BASE
[20:34:20] fox_mulder_cp: and see that fails too
[20:34:25] Quintasan: I am using Rails 5
[20:34:31] fox_mulder_cp: `raise_no_secret_key': Devise.secret_key was not set. Please add the following to your Devise initiali
[20:34:33] jinette: has joined #RubyOnRails
[20:34:40] fox_mulder_cp: Quintasan: r5b3?
[20:34:40] djbkd: has joined #RubyOnRails
[20:35:15] Quintasan: fox_mulder_cp: From master
[20:35:32] alfie_max15: has left #RubyOnRails: ("Ex-Chat")
[20:35:50] smathy: Quintasan, next time you should lead with that if you're not running the current Rails.
[20:35:58] Quintasan: Yeah, my bad there.
[20:36:20] Quintasan: But I wouldn't expect beta to botch reading ENV variables
[20:36:40] fox_mulder_cp: Quintasan: yes. i think this too
[20:36:46] jinette: has left #RubyOnRails: ()
[20:37:07] Uranio: has joined #RubyOnRails
[20:37:20] Quintasan: OR this is a problem with Devise
[20:37:49] fox_mulder_cp: Quintasan: may be. devise for r5 from git
[20:38:01] fox_mulder_cp: Updating devise
[20:38:01] fox_mulder_cp: Fetching: devise-4.0.1.gem (100%)
[20:38:01] fox_mulder_cp: Successfully installed devise-4.0.1
[20:38:12] fox_mulder_cp: Quintasan: try it )
[20:39:23] paulodiovani: has joined #RubyOnRails
[20:42:17] Sawbones: has joined #RubyOnRails
[20:42:53] Radar: GOOD MORNING
[20:43:27] bbrowning: has joined #RubyOnRails
[20:43:33] fox_mulder_cp: Radar: good night )
[20:47:09] djbkd: has joined #RubyOnRails
[20:49:14] roshanavand: has joined #RubyOnRails
[20:49:24] yaw: has joined #RubyOnRails
[20:49:40] djbkd: has joined #RubyOnRails
[20:52:58] phaza: has joined #RubyOnRails
[20:53:18] tsherman: has joined #RubyOnRails
[20:53:21] pawnbox: has joined #RubyOnRails
[20:54:00] Macaveli: has joined #RubyOnRails
[20:58:26] Jasaka: has joined #RubyOnRails
[21:00:04] Darmani: Radar: Breh
[21:04:17] ilv2: has joined #RubyOnRails
[21:04:48] ur5us: has joined #RubyOnRails
[21:04:49] ilv2: has left #RubyOnRails: ()
[21:06:19] Trynemjoel: has joined #RubyOnRails
[21:06:46] Oliphaunte: has joined #RubyOnRails
[21:08:19] phaza: has joined #RubyOnRails
[21:08:40] Talltree: why does instead of the char id my exp model show a weird string...?
[21:08:49] mary5030: has joined #RubyOnRails
[21:09:05] Talltree: https://i.imgur.com/3gkobpP.png
[21:09:50] bob434: has joined #RubyOnRails
[21:09:52] baweaver: has joined #RubyOnRails
[21:12:04] w1lson: has joined #RubyOnRails
[21:13:00] moei: has joined #RubyOnRails
[21:13:10] hutchy: has joined #RubyOnRails
[21:14:01] bronson: has joined #RubyOnRails
[21:14:31] JakFrist: has joined #RubyOnRails
[21:14:57] hutchy: Hi guys , newish RoR developer… I inherited back end responsibilities on a RoR app.. I want to do things correctly from the start. The application has a contact form - what controller would typically handle the form submissions for a contact form ? I have controllers and models for the rest of the app but the contact form doesnt seem to fit. Is it wrong to make a controller specifically to handle contact form submissions? Or would it go in something
[21:14:57] hutchy: generalized such as application_controller
[21:18:26] allcentury: has joined #RubyOnRails
[21:21:10] diegoaguilar: has joined #RubyOnRails
[21:23:18] benlieb: has joined #RubyOnRails
[21:23:22] yfeldblum: has joined #RubyOnRails
[21:23:37] edwinvdgraaf: has joined #RubyOnRails
[21:24:56] smathy: Talltree, that's the .inspect of a ruby instance, you need to use `.character.id` to see the id.
[21:25:41] smathy: hutchy, no, not wrong to make one just for that form.
[21:25:50] smathy: hutchy, no, putting it in application_controller is wrong.
[21:26:52] Talltree: thanks smathy
[21:27:02] smathy: Talltree, you're welcome.
[21:27:41] frem_: has joined #RubyOnRails
[21:28:05] smathy: At your service master.
[21:28:10] Talltree: do you have a overview of the available functions when you have the has_many thingy?
[21:28:21] Talltree: i got so many errors in the forms, view etc etc
[21:28:26] smathy: Talltree, !associations
[21:28:26] helpa: Talltree: http://guides.rubyonrails.org/association_basics.html - Active Record Association Basics by Mike Gunderloy
[21:28:28] Talltree: i think its because i use the wrong syntax
[21:28:51] S1kx: has joined #RubyOnRails
[21:29:16] Talltree: https://i.imgur.com/fVZxQ20.png
[21:30:12] smathy: Seems unlikely to be caused by the wrong syntax in a has_many thingy.
[21:30:42] qejk: has joined #RubyOnRails
[21:30:46] Talltree: what can cause this then?
[21:30:53] Talltree: ive been searching for an hour :-(
[21:31:12] smathy: Talltree, more likely to be an error in setting up your routes.
[21:31:13] smathy: Talltree, !routing
[21:31:13] helpa: Talltree: http://guides.rubyonrails.org/routing.html - Rails Routing From the Outside In - Rails Guide - by Mike Gunderloy
[21:32:41] Talltree: smathy, i just made exp nested, nothing else.
[21:33:21] mdw: has joined #RubyOnRails
[21:33:54] smathy: Yep, that'd do it. Read the guide.
[21:37:14] Talltree: so nesting breaks all scaffold forms -.-
[21:37:42] hutchy_: has joined #RubyOnRails
[21:38:16] tsherman: has joined #RubyOnRails
[21:39:37] gthank: has joined #RubyOnRails
[21:40:02] gthank: How do I tell my unit tests to never ever, under any circumstances, EVER delete/drop/truncate my database?
[21:40:16] smathy: gthank, you don't.
[21:40:34] gthank: smathy So I am condemned to never write any tests
[21:40:56] smathy: Your choice.
[21:41:17] gthank: smathy Is there at least a configuration option to make it *more difficult* to destroy data?
[21:41:28] gthank: I had test data in the db for a reason
[21:41:55] gthank: And setting it up every time I want to run a test is a bit of a non-starter (what with it being millions of rows and all)
[21:43:31] VeryBewitching: gthank: db/seeds.rb
[21:43:54] smathy: gthank, yes, there's database.yml so you can have a dedicated database for your testing so it will never ever affect any DB for which you have some other purpose.
[21:44:35] gthank: smathy Yes except I don't want it to delete my test database. I have all this beautiful data that I painstakingly put there for a reason.
[21:44:46] htmldrum: has joined #RubyOnRails
[21:44:49] gthank: And now it is gone and I will have to restore from a snapshot
[21:45:46] fryguy: gthank: you should consider using rails mechanisms for populating test data. requiring tests to start from a known-state that isn't an empty database are going to cause you problems in the future.
[21:45:47] VeryBewitching: gthank: db/seeds.rb is where you put seeds that are required for any reason. You can check for the test environment in there and write out the code for all the initial data.
[21:46:01] smathy: gthank, if you have some processes/tests/performance checks/whatever that require those millions of rows then split them out from your primary test suite so you can run your automated tests independently on their own test-specific DB.
[21:46:17] gthank: smathy If that's my only option, so be it.
[21:46:20] gthank: Thanks for the info
[21:46:22] smathy: gthank, np.
[21:46:40] VeryBewitching: gthank: And ya, I use FactoryGirl nowadays for creating test data, you can use fixtures too, probably other options on top of that.
[21:46:41] gthank: fryguy VeryBewitching I don't want to wait for millions of rows of test data to stream back and forth when I already have it
[21:46:57] smathy: VeryBewitching, no one wants to see FactoryGirl creating millions of rows.
[21:47:17] smathy: cc fryguy ^
[21:47:26] fryguy: gthank: are you sure you are writing unit or controller tests?
[21:47:26] VeryBewitching: smathy: Ya, I can see that being the case.
[21:47:27] gthank: VeryBewitching smathy I don't like FactoryGirl creating the 10 or so rows it is currently in charge of (too slow)
[21:47:42] smathy: Heh, same.
[21:47:46] smathy: ACTION hates FactoryGirl
[21:47:56] gthank: It's very nifty, but slow as molasses
[21:48:12] smathy: Meh, not that nifty even IMHO :)
[21:48:22] VeryBewitching: gthank: Consider an .sql dump and importing before the test direct to the db.
[21:48:24] quazimodo: has joined #RubyOnRails
[21:48:31] quazimod1: has joined #RubyOnRails
[21:48:32] smathy: OMG stop!
[21:48:42] smathy: Millions of rows each test run?
[21:48:56] bob434: has joined #RubyOnRails
[21:49:18] VeryBewitching: I'm pretty sure you'd doing it before the suite ran :P
[21:50:05] smathy: Not sure what you think that clarifies, no sensible person wants to import millions of rows each time they run their tests.
[21:51:01] VeryBewitching: If you need the millions of rows to run the suite, what would the alternative be?
[21:51:28] gthank: One would be for Rails to not delete them all
[21:52:02] smathy: gthank, you really don't want that, trust me. Having to deal with an unknown state in your (other) automated tests is a nightmare.
[21:52:02] gthank: Sorry, that was not really helpful
[21:52:57] quazimod2: has joined #RubyOnRails
[21:53:00] manfrin: has joined #RubyOnRails
[21:53:16] smathy: VeryBewitching, the alternative is to do as I suggested.
[21:53:57] VeryBewitching: smathy: You are addressing keeping them separated, I was addressing something to setup that data in the first place, should it ever happen again.
[21:54:23] Sawbones: has joined #RubyOnRails
[21:54:47] jowiar: has joined #RubyOnRails
[21:57:35] IrishGringo: has joined #RubyOnRails
[22:02:41] sleungcy: has joined #RubyOnRails
[22:05:45] Teddy22: has joined #RubyOnRails
[22:09:34] HenriettaSalt: has joined #RubyOnRails
[22:13:39] gabr13l: has joined #RubyOnRails
[22:14:56] n008f4g_: has joined #RubyOnRails
[22:17:34] gabr13l: has left #RubyOnRails: ()
[22:17:56] Radar: ugh FactoryGirl
[22:18:16] Radar: Sped up our test suite by stopping FactoryGirl from creating a bazillion objects when really all we needed was one
[22:18:38] Radar: line item begot variant which begot advert which begot taxon and brand and so on...
[22:18:58] Radar: "Why is this test which is one line taking eight seconds?" *looks at test.log* "Oh.")
[22:19:07] jenrzzz: has joined #RubyOnRails
[22:24:11] baweaver: sounds more like a usage issue than a tool issue
[22:33:05] SteenJobs: has joined #RubyOnRails
[22:33:45] bronson: has joined #RubyOnRails
[22:33:45] Quintasan: Does anyone know if does not match %{attribute} syntax changed in Rails 5? I can't get this shit to translate to what I want no matter what I do.
[22:34:56] smathy: I don't think `does not match %{str}` has ever been valid syntax.
[22:35:46] Quintasan: 2.3.0 :004 > I18n.t("errors.messages.confirmation", attribute: "derp")
[22:35:46] Quintasan: => "nie zgadza się z polem derp"
[22:36:10] Quintasan: So it does work but in my view I get "Potwierdzenie hasła does not match password"
[22:36:19] DragonPunch: has joined #RubyOnRails
[22:39:12] Jasaka: has joined #RubyOnRails
[22:39:28] superlou: has joined #RubyOnRails
[22:43:09] pyemkey: has joined #RubyOnRails
[22:44:09] AoifeOToole: has joined #RubyOnRails
[22:44:57] Radar: consider that the key used in the view may not be the same key used in your translation.
[22:45:14] Radar: Quintasan: ^
[22:45:34] Radar: I believe it should be activerecord.errors.messages.confirmation
[22:46:16] Radar: https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/en-AU.yml#L103
[22:46:22] Radar: Although that says otherwise.
[22:46:29] baweaver: Sanity check, using STI and trying to get `has_one :nagios_endpoint, class_name: 'Endpoint', through: :account` and it crashes. I change that to `has_many` and it works.
[22:46:39] Quintasan: Radar: I'm kind of stumped - I just installed i18n-debug and it looks up pl.errors.messages.not_saved but nothing further
[22:47:16] Radar: Quintasan: Ok, looking again it looks like errors.messages.confirmation is the right thing
[22:47:21] Radar: Quintasan: did you restart your server?
[22:47:28] Quintasan: Yeah. Numerou times.
[22:49:00] twilling: has joined #RubyOnRails
[22:49:44] Quintasan: What the hell is going on
[22:49:55] Radar: Can you reproduce it in a new app?
[22:50:41] Quintasan: Not really, it's 1 in the morning and I don't really want to create a new devise application
[22:53:34] mattwithoos_: has joined #RubyOnRails
[22:55:21] benlieb: has joined #RubyOnRails
[22:56:43] baweaver: Got it, has_one wants a source option for some reason
[22:56:57] HenriettaSalt: has joined #RubyOnRails
[22:57:03] timdotrb: has joined #RubyOnRails
[22:57:18] timdotrb: Afternoon, all
[22:58:31] eggoez: has joined #RubyOnRails
[22:58:59] duderonomy: has joined #RubyOnRails
[22:59:00] rickmasta: has joined #RubyOnRails
[22:59:36] timdotrb: I have an app with private messaging working locally via private_pub, but messages don’t show up when I try to send them in production. I’ve started the thin server with RAILS_ENV as production, and don’t see anything in my logs that looks out of place. When I refresh the chat pages, the messages are there.
[23:00:01] timdotrb: Did I miss something in getting this working in production?
[23:01:29] _Tariq: has joined #RubyOnRails
[23:01:42] allcentury: has joined #RubyOnRails
[23:02:25] pvertenten: has joined #RubyOnRails
[23:03:35] timdotrb: I’ve set the URL in my private_pub.yml to localhost as well
[23:06:44] quazimod1: has joined #RubyOnRails
[23:06:44] quazimodo: has joined #RubyOnRails
[23:06:47] quazimod2: has joined #RubyOnRails
[23:08:15] ejnahc: has joined #RubyOnRails
[23:12:17] manfrin: has joined #RubyOnRails
[23:13:21] dorje: has joined #RubyOnRails
[23:13:49] jstransky: has joined #RubyOnRails
[23:14:18] baweaver: has joined #RubyOnRails
[23:15:02] lacuna: has joined #RubyOnRails
[23:15:07] wethu: has joined #RubyOnRails
[23:17:36] tvon: has joined #RubyOnRails
[23:19:43] chipotle: has joined #RubyOnRails
[23:20:49] benlieb: has joined #RubyOnRails
[23:21:37] jeffleeismyhero: has joined #RubyOnRails
[23:22:18] RahulT: has joined #RubyOnRails
[23:24:01] jeffleeismyhero: has joined #RubyOnRails
[23:26:38] xcesariox: has joined #RubyOnRails
[23:27:21] bzb: has joined #RubyOnRails
[23:31:43] fruitstand: has joined #RubyOnRails
[23:32:27] moeabdol: has joined #RubyOnRails
[23:35:25] robbyoconnor: has joined #RubyOnRails
[23:36:54] Darmani: Hey guys quick question,
[23:37:29] Darmani: Would it be wise to try and get some kind of internship for Rails? Or a low level entry job in programming of some sort?
[23:40:19] rickmasta: has joined #RubyOnRails
[23:41:13] smathy: Darmani, getting ANY job with a tech company is a good move.
[23:41:30] bronson: has joined #RubyOnRails
[23:42:24] Darmani: smathy: Any job?
[23:44:43] fryguy: Darmani: do you want to write code and get paid for it? then get a job that does that.
[23:44:52] smathy: Darmani, yes, any job.
[23:45:25] Darmani: fryguy: And I suppose they just hand those jobs out down at Walmart right?
[23:46:08] fryguy: Darmani: pretty much
[23:46:30] fryguy: depends on your location, but yah it's pretty easy to get a job in software if you have any skills at all
[23:47:10] Darmani: fryguy: Well that's great advice. Thanks for that.
[23:47:59] creature: From what I've seen, it can be hard to move laterally. If you join a team as a QA person, for instance, it's hard to move from that to a development role.
[23:48:30] creature: But you'll still be in an environment where you can learn from other developers, and it may well position you to move QA → developer with a change of company.
[23:48:33] smathy: "can be hard" describes just about everything.
[23:50:44] brianpWins: has joined #RubyOnRails
[23:52:27] Darmani: creature: Hm. Okay.
[23:52:49] smathy: If you're in a QA role and you can't impress the senior devs or team lead with your dev skills then you're not ready for any dev job. I went from customer support to dev - albeit over 20 years ago now ;)
[23:53:09] Darmani: smathy: Really? That's incredible!
[23:55:04] akshat: has joined #RubyOnRails
[23:57:58] smathy: Darmani, actually, two of us did. Both to dev, both doing the same thing - learning dev in our spare time while taking calls, and then pitching the devs with ideas and our mad skills ;)
[23:58:54] joshkovach: has joined #RubyOnRails
[23:59:06] Darmani: smathy: That's awesome. Perhaps I'll do that.
[23:59:51] timmyBsd: has joined #RubyOnRails