« Back to channel list

#RubyOnRails - 25 June 2016

« Back 1 day Forward 1 day »
[00:05:22] rubyonrailed: has joined #RubyOnRails
[00:05:44] eserror: has joined #RubyOnRails
[00:06:02] roamingdog: has joined #RubyOnRails
[00:07:36] armyriad: has joined #RubyOnRails
[00:10:44] gking: has joined #RubyOnRails
[00:11:03] gking: Hi, I've got paths added to autoload_paths in development, but when I push to production, they aren't loaded.
[00:11:12] gking: Am I supposed to use eagerload_paths in production?
[00:12:25] pawnbox: has joined #RubyOnRails
[00:24:07] northfurr: has joined #RubyOnRails
[00:24:58] jenrzzz: has joined #RubyOnRails
[00:30:34] thejamespinto: has joined #RubyOnRails
[00:33:53] banister: has joined #RubyOnRails
[00:36:21] Chirimbolito: has joined #RubyOnRails
[00:41:29] emachnic: has joined #RubyOnRails
[00:48:47] northfurr: has joined #RubyOnRails
[00:53:25] pawnbox: has joined #RubyOnRails
[00:56:16] dminuoso: has joined #RubyOnRails
[00:56:29] k3rn31: has joined #RubyOnRails
[00:56:42] ekinmur: has joined #RubyOnRails
[00:57:23] FrankD: has joined #RubyOnRails
[01:06:44] roamingdog: has joined #RubyOnRails
[01:12:36] DoctorMonocular: has joined #RubyOnRails
[01:14:09] roamingdog: has joined #RubyOnRails
[01:14:10] pawnbox: has joined #RubyOnRails
[01:15:45] shinnya: has joined #RubyOnRails
[01:37:42] roamingdog: has joined #RubyOnRails
[01:40:07] sypheren: has joined #RubyOnRails
[01:40:55] choke: has joined #RubyOnRails
[01:41:12] weaksauce: has joined #RubyOnRails
[01:50:07] arnonhongklay: has joined #RubyOnRails
[01:51:10] enitiz: has joined #RubyOnRails
[01:52:42] ss_much: has joined #RubyOnRails
[01:54:45] rubyonrailed: has joined #RubyOnRails
[01:56:59] dminuoso: has joined #RubyOnRails
[02:01:25] dc1: has joined #RubyOnRails
[02:02:17] xibalba: has joined #RubyOnRails
[02:05:38] choke: has joined #RubyOnRails
[02:05:46] d0nn1e: has joined #RubyOnRails
[02:09:33] one_zero: has joined #RubyOnRails
[02:19:10] bdb-me: has joined #RubyOnRails
[02:19:36] Emily: has joined #RubyOnRails
[02:21:27] wethu: has joined #RubyOnRails
[02:21:35] allcentury: has joined #RubyOnRails
[02:28:54] erlend: has joined #RubyOnRails
[02:32:13] bdb-me: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[02:35:11] AmiMoench: has joined #RubyOnRails
[02:37:02] KnownSyntax: has joined #RubyOnRails
[02:37:02] KnownSyntax: has joined #RubyOnRails
[02:37:53] Chirimbolito: So guys, anyone there?
[02:43:30] wethu: has joined #RubyOnRails
[02:45:53] rattatmatt: has joined #RubyOnRails
[02:47:26] chipotle: has joined #RubyOnRails
[02:49:30] stardiviner: has joined #RubyOnRails
[02:49:32] jscheel: has joined #RubyOnRails
[02:49:40] oystersauce8: has joined #RubyOnRails
[02:50:34] rattatmatt: hey guys, I'm becoming interested in contributing to the open source community, does anyone have any suggestions on where to start? ruby or rails :)
[02:53:06] roamingdog: rattatmatt: often this comes about after you use a gem and find something that could be improved, do the work and send a pull request
[02:56:42] rattatmatt: roamingdog: yeah, I guess I'm just wondering if anyone knows of any gems/projects that are friendlier for a jumping off point. I've never really done ruby/rails for anything beyond my own stuff so I'm looking for something simpler to get started with
[02:57:30] roamingdog: rattatmatt: have a look at ruby on rails tickets/issues
[02:57:45] dminuoso: has joined #RubyOnRails
[02:58:21] rattatmatt: roamingdog: I'll take a look, thanks for the tip!
[03:01:13] roamingdog: has joined #RubyOnRails
[03:06:20] benlieb: has joined #RubyOnRails
[03:07:32] hahuang61: has joined #RubyOnRails
[03:07:56] pawnbox: has joined #RubyOnRails
[03:12:55] moeabdol: has joined #RubyOnRails
[03:14:52] emachnic_: has joined #RubyOnRails
[03:20:44] northfurr: has joined #RubyOnRails
[03:21:00] braincrash: has joined #RubyOnRails
[03:21:15] k3rn31: has joined #RubyOnRails
[03:28:57] rogue_koder: has joined #RubyOnRails
[03:39:02] xall: has joined #RubyOnRails
[03:43:53] siaw23: has joined #RubyOnRails
[03:44:02] siaw23: has left #RubyOnRails: ()
[03:44:58] rubyonrails151: has joined #RubyOnRails
[03:54:59] northfurr: has joined #RubyOnRails
[03:55:57] rubyonrailed: has joined #RubyOnRails
[03:56:26] jscheel: has joined #RubyOnRails
[03:58:32] dminuoso: has joined #RubyOnRails
[03:59:35] siaw23: has joined #RubyOnRails
[03:59:58] siaw23: goodmorning how can i fix something like this: https://gist.github.com/siaw23/0650757c7d3f20a9de3d3e0aa38d4ffe test results in the last file
[04:00:03] siaw23: i’m struggling
[04:02:22] roamingdog: has joined #RubyOnRails
[04:08:10] hahuang61: has joined #RubyOnRails
[04:09:27] sumobob: has joined #RubyOnRails
[04:11:24] rattatmatt: has joined #RubyOnRails
[04:18:21] choke: has joined #RubyOnRails
[04:23:03] allcentury: has joined #RubyOnRails
[04:25:32] dgncn: has joined #RubyOnRails
[04:35:33] rubyonrails840: has joined #RubyOnRails
[04:38:58] tbuehlmann: siaw23: https://www.relishapp.com/rspec/rspec-core/docs/metadata/current-example says using a block argument should work
[04:39:09] stardiviner: has joined #RubyOnRails
[04:40:54] siaw23: tbuehlmann: i’m not sure which block argument to use and where to start it.
[04:41:14] DataDyne: has joined #RubyOnRails
[04:41:38] dc1: has joined #RubyOnRails
[04:41:46] alfiemax: has joined #RubyOnRails
[04:42:24] rails554: has joined #RubyOnRails
[04:43:00] tbuehlmann: have you checked the scenarios on the page I just linked?
[04:44:37] siaw23: tbuehlmann: yes i have. one thing that’s confusing me is https://gist.github.com/siaw23/0650757c7d3f20a9de3d3e0aa38d4ffe#file-live_searching-rb-L1that's a configure block there
[04:45:06] siaw23: and i’m used to seeing them in spec_helper.rb files
[04:45:59] tbuehlmann: it doesn't matter where you configure RSpec
[04:47:16] kt2: has joined #RubyOnRails
[04:47:47] rafaelfranca: has joined #RubyOnRails
[04:48:08] rafaelfranca: has joined #RubyOnRails
[04:48:36] rattatmatt: has joined #RubyOnRails
[04:49:02] siaw23: tbuehlmann: ok. i’m sure this doesn’t make sense but this is what i’m trying https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-live_searching-rb-L3
[04:49:38] siaw23: and getting https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-error-txt
[04:49:52] tbuehlmann: yes, this doesn't make sense. try `config.before(:each) do |example|`
[04:50:55] siaw23: so it’ll look like this: https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-live_searching-rb
[04:51:37] tbuehlmann: have you tried?
[04:52:25] siaw23: tbuehlmann: it doesn’t know what “options” is https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-error2-txt
[04:53:30] pawnbox: has joined #RubyOnRails
[04:53:54] tbuehlmann: I assume you want example.metadata[:search]
[04:54:41] Pulkit21: has joined #RubyOnRails
[04:55:10] hahuang61: has joined #RubyOnRails
[04:56:13] siaw23: well that got me somewhere https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-error3-txt somewhere i have been before.
[04:56:54] adac: has joined #RubyOnRails
[04:57:43] siaw23: it now can’t find some methods “undefined method `allow_value’” even though i have this: https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-rails_helper-rb
[04:59:14] dminuoso: has joined #RubyOnRails
[05:00:28] rails554: Currently I have two databases, one is players which holds each player and a name. The next is stats, which hold multiple stats for multiple days for each player. Players can have multiple stats. I currently have a bunch of variables like (https://gist.github.com/anonymous/cd78dbe69d6e3c9660ebaa05fe6f6329 ) that gets the top player with the highest stat for the current month. Now i'd like to get the same stat but minus th
[05:00:58] moeabdol: has joined #RubyOnRails
[05:01:09] rails554: Is there a easy way to do this through active record / sql or would i have to create another table to hold the differences?
[05:01:25] tbuehlmann: siaw23: are the specs setup as model specs?
[05:02:14] siaw23: tbuehlmann: you mean starting the spec files with RSpec.describe “Something”, type: :model do …”
[05:03:33] siaw23: tbuehlmann: i believe this is right: https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-url_spec-rb
[05:03:49] siaw23: that’s what I have
[05:04:55] chipotle: has joined #RubyOnRails
[05:05:32] siaw23: i had to add require 'rails_helper'
[05:06:29] siaw23: tbuehlmann: https://gist.github.com/siaw23/8ee17b93fa543120a9fafb543f235fa9 thanks a lot for guiding me!!!
[05:06:37] siaw23: but i have a quetion though
[05:06:49] tbuehlmann: have you googled first? :P
[05:07:06] siaw23: yes. i google before i come here :D
[05:07:57] siaw23: on this line: https://gist.github.com/siaw23/27f6b865c4b05520d585f78b0752b51e#file-error-txt-L4 you made me use “metadata” instead of “options” how could i have known that? something changed? because actually this is an open source project. not mine. and i’m seeing a lot of new things
[05:09:35] tbuehlmann: options either are a different thing, old or just wrong. reading the RSpec docs would've helped
[05:10:49] siaw23: thank you anyways :)
[05:11:13] siaw23: now i’m going to continue my work :p :p
[05:14:57] rails345: has joined #RubyOnRails
[05:16:10] rails345: can someone help me deploy an app to Openshift? I've created the Openshift app through the web console, installed the rhc gem, and ran "rhc setup" in the terminal. Now I'm not sure how to proceed from here
[05:38:34] benlieb: has joined #RubyOnRails
[05:42:51] jetpack_joe: has joined #RubyOnRails
[05:56:39] rubyonrailed: has joined #RubyOnRails
[05:57:23] Leepoff: has joined #RubyOnRails
[06:00:01] dminuoso: has joined #RubyOnRails
[06:06:59] yfeldblum: has joined #RubyOnRails
[06:07:20] pawnbox: has joined #RubyOnRails
[06:09:57] arBmind: has joined #RubyOnRails
[06:12:26] dionysus69: has joined #RubyOnRails
[06:14:11] roamingdog: has joined #RubyOnRails
[06:24:52] allcentury: has joined #RubyOnRails
[06:28:15] xall: has joined #RubyOnRails
[06:32:59] allcentury: has joined #RubyOnRails
[06:37:28] emiltin: has joined #RubyOnRails
[06:41:24] Pazician: has joined #RubyOnRails
[06:41:24] Pazician: has joined #RubyOnRails
[06:48:21] pawnbox: has joined #RubyOnRails
[06:49:07] moeabdol: has joined #RubyOnRails
[06:49:52] tildes: has joined #RubyOnRails
[07:00:49] dminuoso: has joined #RubyOnRails
[07:01:17] allcentury: has joined #RubyOnRails
[07:13:21] siaw23: i’m trying to make these tests pass. i have included all related files. problem is i’m not getting any error messages after the validation callbacks on the model. hence not sure how to make the tests pass: https://gist.github.com/siaw23/4da6111e2dbed9527cf27181ffd43311#file-factories_spec-rb
[07:13:31] siaw23: i’ll appreciate some help or guidance :)
[07:14:08] lalalaaa: has joined #RubyOnRails
[07:15:19] darutoko: has joined #RubyOnRails
[07:18:57] chipotle: has joined #RubyOnRails
[07:22:21] tbuehlmann: siaw23: what happens if you remove the customized error message?
[07:22:38] siaw23: there’s no customised error message :)
[07:23:01] tbuehlmann: there is: `subject.errors.full_messages.join(',')`
[07:23:14] tbuehlmann: and it works, at least here: https://gist.github.com/siaw23/4da6111e2dbed9527cf27181ffd43311#file-rspec_test_result-txt-L79
[07:24:00] siaw23: i think that’s the only one
[07:25:12] tbuehlmann: siaw23: what happens if you remove the customized error message?
[07:25:36] siaw23: i don’t know how to remove it. I think rails is calling this automatically right?
[07:26:07] siaw23: so “customised error message” confuses me
[07:26:31] solars: has joined #RubyOnRails
[07:27:31] tbuehlmann: there is a customized error message, it's `subject.errors.full_messages.join(',')`
[07:29:27] Jasaka: has joined #RubyOnRails
[07:30:04] siaw23: which gives me this: https://gist.github.com/siaw23/4da6111e2dbed9527cf27181ffd43311#file-rspec_test_result-txt
[07:30:50] xall: has joined #RubyOnRails
[07:31:19] siaw23: i changed the factories spec to https://gist.github.com/siaw23/4d69ebe5f5d9eebb5b25316eb971f042#file-factories_spec-rb-L10
[07:31:28] siaw23: tests pass. but i’m not sure if it’s a good idea
[07:33:07] emiltin: has joined #RubyOnRails
[07:36:10] tbuehlmann: testing factories is okay. btw, you can also write your example like this: `expect(subject).to be_valid`
[07:36:48] tbuehlmann: factory girl also has something built-in for testing your factories. see https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#linting-factories
[07:38:35] siaw23: that’s a cool one! thanks.
[07:38:55] joycse06: has joined #RubyOnRails
[07:41:35] siaw23: tbuehlmann: thanks :)
[07:47:13] hahuang61: has joined #RubyOnRails
[07:51:41] DoubleMalt: has joined #RubyOnRails
[07:57:19] emachnic: has joined #RubyOnRails
[07:58:40] rubyonrailed: has joined #RubyOnRails
[08:01:30] dminuoso: has joined #RubyOnRails
[08:02:48] allcentury: has joined #RubyOnRails
[08:03:19] pawnbox: has joined #RubyOnRails
[08:04:27] sandelius: has joined #RubyOnRails
[08:07:45] chipotle: has joined #RubyOnRails
[08:12:57] binaryplease1: has joined #RubyOnRails
[08:15:52] siaw23: my code here is setting “kind” key to a symbol :unknown https://gist.github.com/siaw23/cb7220516e8a59bdf68876fddd7f089e#file-work-rb-L52 and in the test i have https://gist.github.com/siaw23/cb7220516e8a59bdf68876fddd7f089e#file-work_spec-rb-L16 as expected but the test is failing saying: https://gist.github.com/siaw23/cb7220516e8a59bdf68876fddd7f089e#file-failure-txt-L6 any ideas please?
[08:18:49] pawnbox: has joined #RubyOnRails
[08:20:03] apeiros: siaw23: can't store a symbol in the db
[08:20:13] apeiros: unless you use a serialized field
[08:20:26] apeiros: or some other way to map the string in the db back to a symbol
[08:21:06] jhass: but use a string or enum
[08:21:12] siaw23: apeiros: can i safely do .to_sym?
[08:21:36] jhass: on ruby 2.3 you can in theory, I still find it smelly
[08:22:31] dc1: has joined #RubyOnRails
[08:24:08] lxsameer: has joined #RubyOnRails
[08:25:07] siaw23: jhass: i don’t want to do change “expect(work.kind).to eq :unknown” to “expect(work.kind).to eq ‘unknown’” it would be smelly too
[08:25:16] siaw23: how can i fix this?
[08:25:40] jhass: siaw23: why and why?
[08:26:12] siaw23: jhass: main reason is i don’t want to touch the test of this OS project
[08:26:17] xall: has joined #RubyOnRails
[08:26:28] siaw23: i can do it if it’s safe to
[08:27:42] jhass: I would recommend to normalize to string
[08:29:37] apeiros: you gain nothing there by converting it to a symbol
[08:30:45] siaw23: jhass: how do i “normalize” to string? what’s that term?
[08:31:22] jhass: def kind=(value); self[:kind] = value.to_s; end;
[08:36:56] wd40s: has joined #RubyOnRails
[08:37:20] moeabdol: has joined #RubyOnRails
[08:37:34] siaw23: jhass: this is what i did: https://gist.github.com/siaw23/cb7220516e8a59bdf68876fddd7f089e#file-work-rb-L54
[08:37:53] siaw23: and this too to have the test to pass: https://gist.github.com/siaw23/cb7220516e8a59bdf68876fddd7f089e#file-work_spec-rb-L16
[08:38:25] jhass: the latter is ok
[08:38:32] jhass: the former, just write "unknown" directly
[08:38:54] jhass: you wouldn't do "hello".upcase instead of "HELLO" either, right?
[08:39:08] siaw23: no i wouldn’t
[08:39:36] siaw23: it’s the same thing essentially
[08:41:43] dc1: has joined #RubyOnRails
[08:42:49] siaw23: jhass: thanks. apeiros: thanks
[08:47:48] hahuang61: has joined #RubyOnRails
[08:47:53] allcentury: has joined #RubyOnRails
[08:51:21] harfangk: has joined #RubyOnRails
[09:00:17] pawnbox: has joined #RubyOnRails
[09:02:15] dminuoso: has joined #RubyOnRails
[09:03:24] pawnbox: has joined #RubyOnRails
[09:07:37] chipotle: has joined #RubyOnRails
[09:08:54] marr: has joined #RubyOnRails
[09:10:22] mixnblend: has joined #RubyOnRails
[09:11:11] Endie: has joined #RubyOnRails
[09:20:40] azor: has joined #RubyOnRails
[09:20:51] azor: Hello World!
[09:21:31] tildes: has joined #RubyOnRails
[09:23:35] tape88: has joined #RubyOnRails
[09:24:39] jhass: Hello azor
[09:25:07] azor: Testing out irc cloud
[09:25:25] jhass: my condolences
[09:30:41] allcentury: has joined #RubyOnRails
[09:32:11] tildes: has joined #RubyOnRails
[09:39:03] andywww: has joined #RubyOnRails
[09:40:40] andywww: I’m after a bit of steer if you wouldn’t mind heling me out, guys
[09:41:21] andywww: i am doing some basic authentication for a few different actions and want to log when unauthorised users call the action
[09:41:45] andywww: would it be better practice to rase a custom exception, catch it then , in the controller, log it has been caught?
[09:42:02] andywww: or to log the error as part of the exceptions code?
[09:42:48] siaw23: has joined #RubyOnRails
[09:45:52] emiltin: has joined #RubyOnRails
[09:45:53] emachnic: has joined #RubyOnRails
[09:48:34] hahuang61: has joined #RubyOnRails
[09:55:23] siaw23: can someone please guide me fix my failure here? https://gist.github.com/siaw23/d64db2aab4223d8d6c33252a38046594#file-failure-txt-L7 about “undefined key for RSpec” this is the test https://gist.github.com/siaw23/d64db2aab4223d8d6c33252a38046594#file-field_group_parser_spec-rb
[09:56:30] yfeldblum: has joined #RubyOnRails
[09:59:21] TheFarmingBunny: has joined #RubyOnRails
[09:59:29] rubyonrailed: has joined #RubyOnRails
[09:59:41] TheFarmingBunny: can anyone help me with passenger and nginx
[10:00:12] TheFarmingBunny: i keep getting We're sorry, but something went wrong.
[10:02:46] shibly: has joined #RubyOnRails
[10:03:03] dminuoso: has joined #RubyOnRails
[10:03:06] shibly: has left #RubyOnRails: ()
[10:06:42] Endie1: has joined #RubyOnRails
[10:08:08] chipotle: has joined #RubyOnRails
[10:10:49] mdw: has joined #RubyOnRails
[10:14:39] DoubleMalt: has joined #RubyOnRails
[10:15:05] tildes: has joined #RubyOnRails
[10:24:00] lupine: has joined #RubyOnRails
[10:24:23] lalalaaa: has joined #RubyOnRails
[10:25:29] moeabdol: has joined #RubyOnRails
[10:28:05] allcentury: has joined #RubyOnRails
[10:28:19] djgraham: has joined #RubyOnRails
[10:28:37] conta: has joined #RubyOnRails
[10:40:51] emachnic: has joined #RubyOnRails
[10:43:12] harfangk: has joined #RubyOnRails
[10:43:23] jenrzzz: has joined #RubyOnRails
[10:43:23] jenrzzz: has joined #RubyOnRails
[10:46:54] blackthor: has joined #RubyOnRails
[10:47:51] moeabdol: has joined #RubyOnRails
[10:49:21] hahuang61: has joined #RubyOnRails
[10:52:22] emiltin: has joined #RubyOnRails
[10:54:49] quazimodo: has joined #RubyOnRails
[10:55:27] quazimod1: has joined #RubyOnRails
[10:55:55] _underscore_: has joined #RubyOnRails
[11:01:34] quazimod2: has joined #RubyOnRails
[11:01:40] quazimod3: has joined #RubyOnRails
[11:03:46] dminuoso: has joined #RubyOnRails
[11:03:47] moeabdol: has joined #RubyOnRails
[11:23:43] wd40s: has joined #RubyOnRails
[11:24:37] dc1: has joined #RubyOnRails
[11:27:25] tildes: has joined #RubyOnRails
[11:31:03] JamieD: has joined #RubyOnRails
[11:34:56] emachnic: has joined #RubyOnRails
[11:40:23] DoubleMalt: has joined #RubyOnRails
[11:45:19] allcentury: has joined #RubyOnRails
[11:49:34] jenrzzz: has joined #RubyOnRails
[11:50:05] hahuang61: has joined #RubyOnRails
[12:00:08] rubyonrailed: has joined #RubyOnRails
[12:01:44] Pumukel: has joined #RubyOnRails
[12:02:40] King_Rex: has joined #RubyOnRails
[12:04:30] dminuoso: has joined #RubyOnRails
[12:06:19] Mia: has joined #RubyOnRails
[12:07:04] martian_: has joined #RubyOnRails
[12:09:35] slothbear: has joined #RubyOnRails
[12:09:52] salam_: has joined #RubyOnRails
[12:10:44] salam_: Hey, guys I need your advice(help) with GitHub.
[12:11:26] michael_mbp: anyone had app logs being piped into unicorn's STDOUT log?
[12:12:05] fl4sh_: has joined #RubyOnRails
[12:13:19] qazaq_mbp: has joined #RubyOnRails
[12:14:01] qazaq_mbp: Is there anyone, I'm first at here
[12:15:08] boboc: has joined #RubyOnRails
[12:19:03] Endie: has joined #RubyOnRails
[12:19:56] dtzuzu: has joined #RubyOnRails
[12:20:32] fox_mulder_cp: has joined #RubyOnRails
[12:22:21] siaw23: can anyone help me get rid if these deprecation warnings? i have spent a week on them. Google hasn’t been able to help. and i got a lot of them! https://gist.github.com/siaw23/776c0ee933b0a5210f908346ebe6244d
[12:22:46] elementaru: has joined #RubyOnRails
[12:23:50] slothbear: siaw23: what have you tried?
[12:26:00] DTZUBDUB: has joined #RubyOnRails
[12:26:03] siaw23: it references this line: https://gist.github.com/siaw23/776c0ee933b0a5210f908346ebe6244d#file-work-rb-L36 which i’m not sure what it does. i tried removing it but obviously it looks like an important bit and so creates other problems. i didn’t find a solution on Google. the closest I got was a relation to a gem which i don’t even have. so i ignored that “solution"
[12:28:30] slothbear: Are you trying to fix the cause of the deprecation warning or just silence the warnings?
[12:29:00] slothbear: fix is better than silence, long term of course
[12:29:32] siaw23: if i could silence them then great. because it says “DEPRECATION WARNING: `serialized_attributes` is deprecated without replacement” which means best shot is to silent it if there’s no replacement
[12:29:58] siaw23: i can’t fix it :( if you can guide me i would be happy to do it
[12:33:00] slothbear: maybe someone else knows how to fix (and you'll want to before rails 5)… but there's a generic way to silence specific deprecations. Is that something you've already tried?
[12:33:40] slothbear: The code in this issue looks plausible, though I haven't tried it. https://github.com/airblade/paper_trail/issues/416
[12:34:02] slothbear: for silencing that particular deprecation
[12:34:34] siaw23: oh that. i tried. doesn’t work
[12:34:40] slothbear: What happened?
[12:34:51] siaw23: warnings still show. nothing happens
[12:36:18] slothbear: That's a generic method for filtering deprecation messages. If the messages still appeared, either there's a bug in Rails, or a bug in the way the hiding was implemented.
[12:37:11] c355E3B: has joined #RubyOnRails
[12:39:32] siaw23: yeah sure. i’ll attend to this later
[12:39:43] siaw23: trying to fix other issues on the side now
[12:39:48] siaw23: thanks a lot anyway
[12:39:59] slothbear: Ehhh, I didn't mean to imply that that issue has the correct method for filtering. Might be all wrong. This one looks dangerous: http://api.rubyonrails.org/classes/ActiveSupport/Deprecation/Reporting.html
[12:40:52] siaw23: ah. i read about this. it created some drama in the rails community
[12:43:54] frojnd: has joined #RubyOnRails
[12:47:02] jenrzzz: has joined #RubyOnRails
[12:50:49] hahuang61: has joined #RubyOnRails
[12:51:02] wd40s: has joined #RubyOnRails
[12:52:53] GodFather: has joined #RubyOnRails
[13:05:16] dminuoso: has joined #RubyOnRails
[13:10:59] rogue_koder: has joined #RubyOnRails
[13:23:03] emachnic: has joined #RubyOnRails
[13:36:04] eserror: has joined #RubyOnRails
[13:37:51] benlieb: has joined #RubyOnRails
[13:39:33] quazimodo: has joined #RubyOnRails
[13:44:01] helpa: has joined #RubyOnRails
[13:44:15] Tempesta_: has joined #RubyOnRails
[13:44:44] maxx88_: has joined #RubyOnRails
[13:46:02] alethea_: has joined #RubyOnRails
[13:46:21] staticfox`: has joined #RubyOnRails
[13:46:43] Lloyd__: has joined #RubyOnRails
[13:46:43] benlieb_: has joined #RubyOnRails
[13:47:00] rheddry: has joined #RubyOnRails
[13:47:08] meinside_: has joined #RubyOnRails
[13:47:10] Hates__: has joined #RubyOnRails
[13:47:17] daxroc1: has joined #RubyOnRails
[13:47:44] zrl__: has joined #RubyOnRails
[13:48:23] rails457: has joined #RubyOnRails
[13:48:36] jarib: has joined #RubyOnRails
[13:48:36] jarib: has joined #RubyOnRails
[13:48:42] Prira: has joined #RubyOnRails
[13:48:49] Wingar_: has joined #RubyOnRails
[13:48:51] dever_: has joined #RubyOnRails
[13:48:56] rails457: can someone help me deploy an app to Openshift?
[13:49:09] piotrj_: has joined #RubyOnRails
[13:49:20] sunya7a__: has joined #RubyOnRails
[13:49:48] lewix_: has joined #RubyOnRails
[13:49:48] Mchl: has joined #RubyOnRails
[13:50:48] hfp__work: has joined #RubyOnRails
[13:50:49] beingjohnm_: has joined #RubyOnRails
[13:51:11] helpa: has joined #RubyOnRails
[13:51:18] context: has joined #RubyOnRails
[13:51:18] dcope: has joined #RubyOnRails
[13:51:19] tedwards: has joined #RubyOnRails
[13:51:19] Olipro_: has joined #RubyOnRails
[13:51:20] jokke1: has joined #RubyOnRails
[13:51:22] dcope: has joined #RubyOnRails
[13:51:26] bazzy-: has joined #RubyOnRails
[13:51:36] hahuang61: has joined #RubyOnRails
[13:51:42] tubbo: has joined #RubyOnRails
[13:51:45] CustosLimen: has joined #RubyOnRails
[13:51:50] Majadon: has joined #RubyOnRails
[13:52:10] andatche: has joined #RubyOnRails
[13:52:11] thejoecarroll: has joined #RubyOnRails
[13:52:15] Shidash: has joined #RubyOnRails
[13:52:18] iooner: has joined #RubyOnRails
[13:52:24] hayden__: has joined #RubyOnRails
[13:52:30] solars: has joined #RubyOnRails
[13:52:58] apeiros: has joined #RubyOnRails
[13:53:23] arunpyasi: has joined #RubyOnRails
[13:53:28] spastorino: has joined #RubyOnRails
[13:53:47] tjvc: has joined #RubyOnRails
[13:54:00] tjvc: has joined #RubyOnRails
[13:54:00] AntiSpamMeta: has joined #RubyOnRails
[13:54:15] arthurnn: has joined #RubyOnRails
[13:54:31] moeabdol: has joined #RubyOnRails
[13:54:34] northfurr: has joined #RubyOnRails
[13:54:47] amitchellbullard: has joined #RubyOnRails
[13:55:32] CornishPasty: has joined #RubyOnRails
[13:55:47] jlpeters: has joined #RubyOnRails
[13:56:00] srinidhi: has joined #RubyOnRails
[13:59:13] FernandoBasso: has joined #RubyOnRails
[13:59:37] arBmind: has joined #RubyOnRails
[14:00:09] CornishPasty: has joined #RubyOnRails
[14:01:00] rubyonrailed: has joined #RubyOnRails
[14:02:00] Hyuk: has joined #RubyOnRails
[14:02:40] macsteps: has joined #RubyOnRails
[14:02:41] Tempesta: has joined #RubyOnRails
[14:05:10] someish: has joined #RubyOnRails
[14:06:00] dminuoso: has joined #RubyOnRails
[14:10:38] dave_804: has joined #RubyOnRails
[14:12:48] someish: I’m attemping to initialize an active resource class; however I’m getting an uninitialized constant error. I’m using rails 4.2 and the 4.0 active resource gem. Yes, I’m typing in the correct class name.
[14:13:04] xlegoman: has joined #RubyOnRails
[14:15:08] _Tariq: has joined #RubyOnRails
[14:17:51] Mia: has joined #RubyOnRails
[14:17:51] Mia: has joined #RubyOnRails
[14:18:36] diegoviola: has joined #RubyOnRails
[14:19:06] srinidhi: has joined #RubyOnRails
[14:30:22] DoubleMalt: has joined #RubyOnRails
[14:33:52] pLaToOn: has joined #RubyOnRails
[14:37:21] conta: has joined #RubyOnRails
[14:42:28] snowy: has joined #RubyOnRails
[14:42:34] _Tariq: has joined #RubyOnRails
[14:43:02] srinidhi: has joined #RubyOnRails
[14:43:23] greghoggard: has joined #RubyOnRails
[14:44:06] snowy: has joined #RubyOnRails
[14:46:01] someish: If anyone cares, the file was not being autoloaded because it was erroneously named. I camel cased it.
[14:48:03] pLaTo0n: has joined #RubyOnRails
[14:52:19] hahuang61: has joined #RubyOnRails
[14:52:54] northfurr: has joined #RubyOnRails
[14:54:46] emiltin: has joined #RubyOnRails
[14:55:01] joaumg: has joined #RubyOnRails
[14:55:59] joaumg: How can I achieve layout inheritance, like... layout C < layout B < layout A ? I found content_for, but didn't find a way to "render inside the top layout"
[14:56:03] skroon: has joined #RubyOnRails
[14:57:28] joaumg: And editing B to be the same of A but only with minor modifications isn't DRY..
[15:00:55] adavia: has joined #RubyOnRails
[15:02:06] diegoviola: has joined #RubyOnRails
[15:05:20] tildes: has joined #RubyOnRails
[15:06:46] dminuoso: has joined #RubyOnRails
[15:11:35] armyriad: has joined #RubyOnRails
[15:14:44] jhass: joaumg: you just render the parent layout in the child layout
[15:18:27] rubyonrailed: has joined #RubyOnRails
[15:20:32] jhass: joaumg: https://github.com/diaspora/diaspora/commit/ffc6c1102efdc5fa7d320a306d168d7feb3c191f here's how I implemented nested layouts in a project some time ago. No idea anymore if that's still best practices but it should still work at least
[15:24:06] tego101: has joined #RubyOnRails
[15:29:35] tildes: has joined #RubyOnRails
[15:31:13] User458764: has joined #RubyOnRails
[15:32:43] User458764: has joined #RubyOnRails
[15:34:07] AmiMoench: has joined #RubyOnRails
[15:36:14] qejk: has joined #RubyOnRails
[15:45:59] greghoggard: has joined #RubyOnRails
[15:46:07] d0nn1e: has joined #RubyOnRails
[15:46:49] joaumg: jhass: many thanks, will look into it
[15:49:53] _Tariq: has joined #RubyOnRails
[15:52:43] rails456: has joined #RubyOnRails
[15:53:03] hahuang61: has joined #RubyOnRails
[15:53:37] rails456: Do Heroku free accounts keep uploaded images as long as the dyno doesn't sleep? What if I use a service like Uptime Robot to prevent it from sleeping?
[15:54:19] emachnic: has joined #RubyOnRails
[15:54:54] skroon: has joined #RubyOnRails
[15:56:17] sunjiv: has joined #RubyOnRails
[15:57:35] hirvi: the free dynos have a minimum sleep requirement per day. if you try to force it to stay awake it will go to sleep eventually anyway.
[15:57:45] pawnbox_: has joined #RubyOnRails
[15:57:59] hirvi: 6h sleep per day if I recall correctly
[15:58:23] hirvi: and you should not host images on heroku use a CDN
[16:07:32] dminuoso: has joined #RubyOnRails
[16:08:35] sunjiv: Any one has any experience with Rails as RESTful API ?
[16:10:49] tbuehlmann: sunjiv: let hear
[16:12:24] greghoggard: I am having trouble with the shopping cart function of my app. It adds the product to the shopping cart as i expected if I click "add to cart" once. The problem comes when i click add to cart multiple times. Instead of it updating the existing item in the cart, it simply adds another duplicate entry into the shopping cart. Does anyone know the best way to have it update the existing record instead of creating a
[16:12:25] greghoggard: https://gist.github.com/greghoggard/75db49cc79e6f28dfdd872a91dd1a1ad
[16:19:25] rubyonrailed: has joined #RubyOnRails
[16:21:23] srinidhi: has joined #RubyOnRails
[16:22:46] zave: has joined #RubyOnRails
[16:23:19] Endie: has joined #RubyOnRails
[16:39:04] chouhoulis: has joined #RubyOnRails
[16:45:15] xall: has joined #RubyOnRails
[16:49:33] skroon: has joined #RubyOnRails
[16:50:17] meoblast001: has joined #RubyOnRails
[16:53:48] hahuang61: has joined #RubyOnRails
[16:54:36] skroon: has joined #RubyOnRails
[16:56:51] xall_: has joined #RubyOnRails
[16:59:43] diegoviola: has joined #RubyOnRails
[17:01:02] rails56: has joined #RubyOnRails
[17:01:32] rails56: Guys, what are some rails hosting sites apart from heroku and openshift?
[17:01:46] rails56: free rails hosting*
[17:02:45] alfiemax: has joined #RubyOnRails
[17:05:28] eserror: has joined #RubyOnRails
[17:08:16] dminuoso: has joined #RubyOnRails
[17:11:10] rails56: Is there any way to save images uploaded to Heroku free tier permanently without AWS S3?
[17:12:55] rails56: Are there add-ons that allow this?
[17:14:09] snowy: has joined #RubyOnRails
[17:15:13] Hobogrammer: has joined #RubyOnRails
[17:19:32] moeabdol: has joined #RubyOnRails
[17:20:06] emachnic: has joined #RubyOnRails
[17:20:56] Leepoff: has joined #RubyOnRails
[17:21:16] sumobob: has joined #RubyOnRails
[17:21:44] netzfisch: has joined #RubyOnRails
[17:27:38] Axilla: has joined #RubyOnRails
[17:28:23] Axilla: morning all, is there anything besides devise for user authentication and oauth authentication that anyone would recommend besides rolling my own? About to start a new personal project and just entertaining ideas.. it needs to be able to be setup in a single user model.
[17:30:06] frojnd: has joined #RubyOnRails
[17:30:35] snowy: has joined #RubyOnRails
[17:33:00] carlosd: has joined #RubyOnRails
[17:36:06] swap_a_b: has joined #RubyOnRails
[17:37:26] carlosd: there is any other method to be called instead of Rails.application.routes.recognize_path for rails 4.2?
[17:37:45] carlosd: the docs says it's deprecated
[17:39:17] emiltin: has joined #RubyOnRails
[17:43:00] User458764: has joined #RubyOnRails
[17:45:06] rails966: has joined #RubyOnRails
[17:46:37] rails966: Currently I have two databases, one is players which holds each player and a name. The next is stats, which hold multiple stats for multiple days for each player. Players can have multiple stats. I currently have a bunch of variables like (https://gist.github.com/anonymous/cd78dbe69d6e3c9660ebaa05fe6f6329 ) that gets the top player with the highest stat for the current month. Now i'd like to get the same stat but minus th
[17:46:46] rails966: Is there a easy way to do this through active record / sql or would i have to create another table to hold the differences?
[17:46:46] fox_mulder_cp: axilla: u can add anything to your user model.
[17:46:57] Axilla: i'm aware
[17:47:27] Axilla: rails966: why would you have two databases?
[17:47:46] rails966: one for the players and one for teh stats
[17:47:52] Axilla: right, but why two databases?
[17:48:01] Axilla: why not 1 database with multiple tables?
[17:48:16] rails966: sorry, two tables i mean
[17:48:20] fox_mulder_cp: rails966: and what do u want do with thia db's
[17:48:42] rails966: sorry 1 db two tables
[17:48:49] Axilla: i would create scopes
[17:48:52] rails966: basically right now i pull the top player for each stat
[17:49:07] Axilla: for that stuff.. that variable is O.o
[17:49:13] rails966: i want to do the same but subtract this month from previous month
[17:49:51] fox_mulder_cp: u can use linked scopes, such as players.this_year.this_month.blabla
[17:50:08] Axilla: if it were me for that amount of data i would use something like algolia and just index it all
[17:50:16] Axilla: since it looks like you're pulling in battle.net data
[17:50:19] Axilla: or elastic search
[17:50:26] Axilla: algolia has a pretty good permanently free tier
[17:51:02] Axilla: make it search/filterable via instant search
[17:51:21] zave: has joined #RubyOnRails
[17:51:23] rails966: well its not so much storing the data. I was just curious if there was a easy way to subtract two sql fields without having to do a whole ton of code
[17:51:44] Axilla: well you should create variables with the value you want to subtract
[17:51:51] Axilla: @this_month - @this_month
[17:51:53] Axilla: if its a string
[17:52:05] Axilla: you'll need to do @this_month.to_i - @last_month.to_i
[17:52:46] benlieb: has joined #RubyOnRails
[17:52:52] Axilla: and you should be using activerecord relationships which will make that query much cleaner
[17:53:26] rails966: right i get that but is my best case going through each player, getting its total and then sorting to the highest?
[17:53:44] Axilla: depends what you're trying to do
[17:53:49] Axilla: are you trying to rank them?
[17:54:15] Axilla: you would just say players = Player.all.where('').order('DESC')
[17:54:16] Axilla: or whatever
[17:54:33] hahuang61: has joined #RubyOnRails
[17:54:53] Axilla: you don't need to know the total, just order it on that column
[17:55:11] Axilla: then you can do players.each do |player| player.stats and do whatever you want
[17:55:11] rails966: Right so right now i have may and june
[17:55:28] rails966: right now i can sort for top stats for current month and choose the highest
[17:55:59] zave: has joined #RubyOnRails
[17:56:11] Axilla: https://github.com/acatighera/statistics
[17:56:12] Axilla: maybe something liek that can help
[17:56:16] mdw: has joined #RubyOnRails
[17:56:28] Axilla: i wouldn't use that
[17:56:32] rails966: but to get the difference between the two, i'd have to go through each players stats, minus top stat for this month for each player minus last day of last month.
[17:56:33] Axilla: just an example look up a statistics gem
[17:57:16] Axilla: well the difference isn't gonna magically appear that's fore sure.. i just think you're going about it in a non-rails way.. its hard to tell based on just that one query
[17:57:17] rails966: without doing a done of loops i can't really figure out a good way to go about it
[17:58:25] roelof: has joined #RubyOnRails
[17:58:29] rails966: Well my line of code i linked works great, gets the highest for this month
[17:58:55] rails966: I just can't seem to find a way to take the players stats, minus last months stats and than take the highest
[17:58:57] roelof: Does anyone know if I can host a angular front-end and a rails back end on a free account on heroku ?
[17:59:06] rails966: without making another table that actively updates the difference
[17:59:52] Axilla: rails966: look at something like this https://www.algolia.com/demos
[18:00:02] Axilla: you could have all your players viewable then you can sort any way you like
[18:00:11] Axilla: slideable filters, filter by date, whatever
[18:00:25] dionysus69: has joined #RubyOnRails
[18:00:35] Axilla: if i were doing big data(and lets face it that's what you'll end up with capturing battle.net data.. lots of it)
[18:00:38] Axilla: that's how i'd do it.
[18:00:41] Axilla: or elastic search
[18:00:58] rails966: I don't have that much data though
[18:01:09] rails966: it's a small number of players and im only scrapping some data from battle.net
[18:01:28] Axilla: well then you'll probably never even go over their 50m record free tier
[18:01:32] DoubleMalt: has joined #RubyOnRails
[18:01:35] Axilla: and its still a better option than what you're trying to do.
[18:01:41] Axilla: the "Hacker" tier allows 50m records
[18:01:54] rails966: lol thanks it just seems a bit much for what im trying to achieve, i just assumed there was something simple
[18:02:05] xall_: has joined #RubyOnRails
[18:02:07] Axilla: there is.. AR relationships and creating methods
[18:02:11] zave: has joined #RubyOnRails
[18:02:28] Axilla: so that you can say player.monthly_difference(month_1, month_2)
[18:02:32] Axilla: or something of that nature
[18:02:35] rails966: like (select 1) . where(month = now) - (select 2). where(month -1)
[18:03:05] Axilla: without knowing how your relationships are setup i can't tell you
[18:03:11] Axilla: post your code if you want more help..
[18:04:43] roelof: roelof : he , I cannot talk
[18:05:17] netzfisch: has joined #RubyOnRails
[18:05:22] roelof: sorry : I can, I just found my question back
[18:06:43] rails966: axilla: https://gist.github.com/anonymous/a5bedcc1a918d2e044cbb30e577b8b1d
[18:09:53] dminuoso: has joined #RubyOnRails
[18:10:41] tvw: has joined #RubyOnRails
[18:12:37] Dimik: has joined #RubyOnRails
[18:14:27] rubyonrails352: has joined #RubyOnRails
[18:14:52] rubyonrails352: I wonder if anyone would be kind enough to look at stackoverflow problem I have: http://stackoverflow.com/questions/38028839/select-first-by-date-of-each-group-of-unique-key-pairs-in-rails
[18:15:27] rubyonrails352: I get the feeling that this is not a problem that hasn't come up before but it is causing me a bit of a headache!
[18:15:58] AmiMoench: has joined #RubyOnRails
[18:17:10] rubyonrails352: Can anyone see me typing?
[18:20:03] rubyonrailed: has joined #RubyOnRails
[18:20:07] pontiki: has joined #RubyOnRails
[18:25:15] rubyonrails352: Is this chat room totally dead?
[18:25:21] tbuehlmann: rubyonrails352: yup and nope!
[18:25:47] tbuehlmann: it's weekend, activity goes down quite a bit
[18:26:25] roelof: for making a api, can I best wait a few days till rails 5 is out ?
[18:26:47] rubyonrails352: fair enough, i can only work on this website at the weekend
[18:28:11] rubyonrails352: have a table with 2 foreign keys (user_id & training_id) and a date field. Trying to use rails to select the most recent date for each combination of the foreign keys.
[18:28:48] diegoaguilar: has joined #RubyOnRails
[18:28:51] rubyonrails352: a user might have done a particular training numerous times before but I only want to select their latest one
[18:29:40] macsteps: has joined #RubyOnRails
[18:30:27] et09: has joined #RubyOnRails
[18:30:41] et09: are there alternatives to html.erb, .html.haml? can i use something like jade or other?
[18:30:55] et09: trying to convert about a hundred angular-infused html files to haml and it's not working
[18:31:04] et09: ampersands deleted and such
[18:32:59] pontiki: jade seems closer to slim than haml
[18:33:04] pontiki: but conversion suck
[18:34:56] et09: conversion actually seems better
[18:35:12] pontiki: yeah, i meant in general
[18:35:18] et09: how's that
[18:35:23] pontiki: conversions sucking?
[18:35:27] et09: oh, yeah
[18:35:34] pontiki: rarely any useful tools
[18:35:43] et09: i've had a lot of success in the pasts
[18:35:45] pontiki: nothing 100%
[18:36:13] pontiki: html2haml works really well on erb files
[18:36:34] pontiki: but others not so much
[18:36:37] et09: that was what was giving me problems
[18:36:49] et09: it deletes html special chars inside attributes thus breaking all my angular
[18:37:37] pilne: has joined #RubyOnRails
[18:38:15] rubyonrails352: I wonder if anyone would be kind enough to look at rails problem I have: http://stackoverflow.com/questions/38028839/select-first-by-date-of-each-group-of-unique-key-pairs-in-rails
[18:39:02] netzfisch: has joined #RubyOnRails
[18:39:38] et09: .order is right
[18:40:08] et09: .order(...).last or .order(...).first
[18:40:54] rubyonrails352: are you talking to me?
[18:41:39] rubyonrails352: well it is the most recent date so last I would guess
[18:45:48] roelof: for making a api, can I best wait a few days till rails 5 is out or do it in rails 4 ?
[18:47:03] sandelius: roelof use rails 5.0.0.rc2
[18:47:08] sandelius: roelof not 4
[18:52:51] skroon: has joined #RubyOnRails
[18:53:39] sumobob: has joined #RubyOnRails
[18:55:17] hahuang61: has joined #RubyOnRails
[18:56:09] arup_r: has joined #RubyOnRails
[18:57:40] arup_r: I have a starting timestamp 1466858849 and ending timestamp 1498394849. I want to know the difference between this 2 in number of days. What is the best way to implement this?
[18:58:59] Coldblackice: has joined #RubyOnRails
[18:59:28] scepticulous: has joined #RubyOnRails
[19:01:13] pydave6367: has joined #RubyOnRails
[19:04:59] tbuehlmann: arup_r, isn't it that simple? (1498394849 - 1466858849)/(60*60*24.0)
[19:05:29] solars: has joined #RubyOnRails
[19:06:35] triangles: has joined #RubyOnRails
[19:06:37] rubyonrails352: I wonder if anyone would be kind enough to look at rails problem I have: http://stackoverflow.com/questions/38028839/select-first-by-date-of-each-group-of-unique-key-pairs-in-rails
[19:07:26] arup_r: has joined #RubyOnRails
[19:07:51] moeabdol: has joined #RubyOnRails
[19:08:48] emachnic: has joined #RubyOnRails
[19:09:54] jenrzzz: has joined #RubyOnRails
[19:10:37] dminuoso: has joined #RubyOnRails
[19:13:27] roelof: sandelius: oke, can I just do gem rails -v 5.0.0.rc2 ?
[19:13:38] moei: has joined #RubyOnRails
[19:15:33] w0bni: has joined #RubyOnRails
[19:18:40] DoctorMonocular: has joined #RubyOnRails
[19:20:26] patrick_star_3: has joined #RubyOnRails
[19:22:23] yfeldblum: has joined #RubyOnRails
[19:24:00] Leepoff: has joined #RubyOnRails
[19:24:19] Darmani: has joined #RubyOnRails
[19:24:41] slothbear: roelof: you can get the latest with gem install rails --pre
[19:26:40] RubyK: has joined #RubyOnRails
[19:26:58] RubyK: has left #RubyOnRails: ()
[19:28:26] arup_r: As Stripe gives all date values like { current_period_end: 1498394849, "current_period_start": 1466858849 , .. }, what column type u should use to store them in DB?
[19:28:41] arup_r: the values are in Unix timestamp
[19:29:21] daed: convert to a real time with Time.at(1498394849) and store that?
[19:29:28] daed: as a timestamp in db?
[19:30:22] diegoaguilar: has joined #RubyOnRails
[19:30:42] arup_r: ok, I thought to store them as it is coming in a integer column, but I was not confident with my idea.
[19:31:10] arup_r: so db column, should be date or datetime type?
[19:31:30] arup_r: ok, datetime will be fine. thanks
[19:32:34] wcalderipe: has joined #RubyOnRails
[19:34:43] wcalderipe: has joined #RubyOnRails
[19:37:21] sergey_makagon: has joined #RubyOnRails
[19:39:32] rickmasta: has joined #RubyOnRails
[19:42:05] macsteps: has joined #RubyOnRails
[19:43:19] jgt1: has joined #RubyOnRails
[19:46:49] joshsmith: has joined #RubyOnRails
[19:52:00] conta: has joined #RubyOnRails
[19:52:09] dextertzu: has joined #RubyOnRails
[19:53:18] roelof: slotbear: thanks
[19:56:02] hahuang61: has joined #RubyOnRails
[20:00:07] siaw23: has joined #RubyOnRails
[20:04:48] rubyonrailed: has joined #RubyOnRails
[20:07:39] wcalderipe: has joined #RubyOnRails
[20:11:22] dminuoso: has joined #RubyOnRails
[20:12:51] macsteps: has joined #RubyOnRails
[20:12:59] Leepoff: has joined #RubyOnRails
[20:13:24] jenrzzz: has joined #RubyOnRails
[20:13:24] jenrzzz: has joined #RubyOnRails
[20:15:33] slothbear: has joined #RubyOnRails
[20:19:11] _royal_: has joined #RubyOnRails
[20:24:36] Darmani: I'm trying to make a form here for my T shirt website. I want to add a field to my form so you can choose how many t shirts you want to buy.
[20:24:37] Darmani: https://gist.github.com/mfifth/db7ced2fafeb56caccd1ba359b4ca308
[20:24:43] Darmani: I don't think I'm doing it right >.<
[20:26:36] ahtik: has joined #RubyOnRails
[20:30:05] Darmani: anyone? q.q
[20:30:44] Darmani: ACTION feels sadness
[20:32:36] webdestroya: has joined #RubyOnRails
[20:34:22] differentreality: has joined #RubyOnRails
[20:34:25] allcentury: has joined #RubyOnRails
[20:35:22] Desti_: has joined #RubyOnRails
[20:35:54] pydave6367: has joined #RubyOnRails
[20:36:55] Desti_: /msg NickServ VERIFY REGISTER Desti_ lwgwgnuviomb
[20:40:46] allcentury: has joined #RubyOnRails
[20:41:02] mdw: has joined #RubyOnRails
[20:43:21] Desti_: http://pastie.org/10890276
[20:43:25] Desti_: Somebody can help me?
[20:44:09] Darmani: Desti_: Use a gist, like this one. https://gist.github.com/mfifth/db7ced2fafeb56caccd1ba359b4ca308
[20:45:57] Dimik: has joined #RubyOnRails
[20:46:07] Desti_: https://gist.github.com/anonymous/c1c92c57edc4a113ad51e909eb1e598b
[20:46:09] Desti_: Like that :p?
[20:46:51] Darmani: Desti_: Almost. You can add another file within the same Gist. If you press "Edit" you can click add file and paste your controller there too.
[20:47:14] Darmani: Desti_: ^.^
[20:48:46] EXCHGR: has joined #RubyOnRails
[20:49:15] Desti_: https://gist.github.com/anonymous/d1f85a340a4b558ec4c3a04a1f135b96
[20:49:42] Darmani: Desti_: Perfect ^^
[20:50:06] Darmani: Desti_: I mean you could paste the error in another file there too but that will do.
[20:50:10] Darmani: So what's the problem again?
[20:51:24] allcentury: has joined #RubyOnRails
[20:52:07] Desti_: http://pastie.org/10890282
[20:52:10] Desti_: the error :p
[20:52:36] Desti_: I follow the rails tuto and it's fail at step 5.2
[20:52:53] Desti_: When I try to load the form, I have this error
[20:54:27] Darmani: Desti_: Well first of all you are missing a "show" controller.
[20:55:20] Desti_: When I add def show end, it's do the same
[20:55:32] Darmani: Desti_: Second, you also need a variable within the show controller so it knows which instance to display.
[20:55:58] Darmani: michael_mbp: hi there ^^
[20:56:07] moeabdol: has joined #RubyOnRails
[20:56:13] Desti_: How I do that?
[20:56:39] Darmani: @minecraft = Minecraft.find(params[:id])
[20:56:41] emachnic: has joined #RubyOnRails
[20:56:47] hahuang61: has joined #RubyOnRails
[20:57:04] Darmani: Desti_: I don't know exactly what you are making but the syntax looks like that.
[20:57:16] xall: has joined #RubyOnRails
[20:57:22] Desti_: I don't understand because I do exactly what the tuto says xD
[20:57:39] Desti_: Darmani: I add that in the create?
[20:58:07] Darmani: Desti_: Hmm. Let me show you my controller maybe you'll get an idea.
[21:00:46] Darmani: Desti_: https://gist.github.com/mfifth/db7ced2fafeb56caccd1ba359b4ca308
[21:00:58] macsteps: has joined #RubyOnRails
[21:02:58] Desti_: I understand
[21:03:10] Desti_: But i don't understand why in the tuto it's work
[21:03:12] Desti_: and me not xD
[21:03:32] Darmani: Desti_: Haha well if you want to pm me I don't mind walking through it with you.
[21:04:31] jenrzzz: has joined #RubyOnRails
[21:05:17] quazimodo: has joined #RubyOnRails
[21:08:29] allcentury: has joined #RubyOnRails
[21:12:06] dminuoso: has joined #RubyOnRails
[21:14:30] willwright: has joined #RubyOnRails
[21:15:35] willwright: has left #RubyOnRails: ()
[21:17:46] dionysus69: has joined #RubyOnRails
[21:24:31] jenrzzz: has joined #RubyOnRails
[21:29:47] dc2: has joined #RubyOnRails
[21:33:45] maximski: has joined #RubyOnRails
[21:48:29] mozzarella: has joined #RubyOnRails
[21:52:02] joaumg: has left #RubyOnRails: ("WeeChat 1.0.1")
[21:54:16] vjacob: has joined #RubyOnRails
[21:57:30] siaw23: can someone help me make this test pass: https://gist.github.com/siaw23/839b2a0f798b1a802ac07723b84c79e0#file-failure-txt-L26 i have the test here: https://gist.github.com/siaw23/839b2a0f798b1a802ac07723b84c79e0#file-work_spec-rb-L53 and the model: https://gist.github.com/siaw23/839b2a0f798b1a802ac07723b84c79e0#file-work-rb
[21:57:32] hahuang61: has joined #RubyOnRails
[22:02:20] monoprotic: has joined #RubyOnRails
[22:05:13] diegoviola: has joined #RubyOnRails
[22:12:51] dminuoso: has joined #RubyOnRails
[22:16:20] jenrzzz: has joined #RubyOnRails
[22:20:57] allcentury: has joined #RubyOnRails
[22:21:04] macsteps: has joined #RubyOnRails
[22:24:09] Endie: has left #RubyOnRails: ()
[22:24:45] rbr: has joined #RubyOnRails
[22:44:16] moeabdol: has joined #RubyOnRails
[22:44:51] emachnic: has joined #RubyOnRails
[22:50:14] northfurr: has joined #RubyOnRails
[22:52:41] northfurr: has joined #RubyOnRails
[22:53:07] bonhoeffer: has joined #RubyOnRails
[22:53:34] bonhoeffer: hey -- i'm trying this query u.tracks.map{|t| t.relationships.map{|r| r.reader.name}}.flatten.uniq -- would otherwise do a SELECT DISTINCT -- how should AR handle this?
[22:53:58] bonhoeffer: using :joins ? I want all the users that have a relationship with my user
[22:54:04] bonhoeffer: easyish in sql
[22:57:47] bonhoeffer: ah . . . :includes to the rescue
[22:58:18] hahuang61: has joined #RubyOnRails
[22:59:32] der-landgraf: has joined #RubyOnRails
[23:00:27] tildes: has joined #RubyOnRails
[23:02:32] tildes: has joined #RubyOnRails
[23:07:19] Garrick_: has joined #RubyOnRails
[23:10:10] snowy: has joined #RubyOnRails
[23:13:36] dminuoso: has joined #RubyOnRails
[23:13:41] benlieb: has joined #RubyOnRails
[23:16:11] SteenJobs: has joined #RubyOnRails
[23:22:29] dalbusch1t: has joined #RubyOnRails
[23:25:09] xall: has joined #RubyOnRails
[23:28:42] Kallis: has joined #RubyOnRails
[23:30:40] xall_: has joined #RubyOnRails
[23:39:45] viiralvx: has joined #RubyOnRails
[23:44:36] allcentury: has joined #RubyOnRails
[23:44:48] chouhoulis: has joined #RubyOnRails
[23:46:52] Rodya_: has joined #RubyOnRails
[23:48:13] emachnic: has joined #RubyOnRails
[23:49:50] douglascorrea: has joined #RubyOnRails
[23:51:18] SteenJobs: has joined #RubyOnRails
[23:51:43] douglascorrea: has joined #RubyOnRails
[23:55:57] Rodya_: has joined #RubyOnRails
[23:57:16] mozzarella: has joined #RubyOnRails
[23:59:01] hahuang61: has joined #RubyOnRails