« Back to channel list

#RubyOnRails - 01 November 2015

« Back 1 day Forward 1 day »
[00:00:31] mices: FailBit: delete my user_mailer ?
[00:00:56] FailBit: devise has those too
[00:02:09] atomical: has joined #RubyOnRails
[00:03:41] flooyd: has joined #RubyOnRails
[00:03:49] one_zero: has joined #RubyOnRails
[00:04:52] smathy: has joined #RubyOnRails
[00:04:57] boxofrox: anyway, thanks for the suggestions. looks like I'm trying to use `cls` before it's fully initialized. it works from a later code block.
[00:06:08] flooyd: Hi :). noob to rails here. can i ask a question?
[00:07:45] smathy: has joined #RubyOnRails
[00:07:57] mices: FailBit: delete my user controller and model too?
[00:08:33] FailBit: user controller can stay, user model can stay if there's anything important in there
[00:08:54] FailBit: flooyd: that's the point of this channel
[00:09:00] FailBit: you better ask it or else
[00:09:14] mices: FailBit: i'd have to make a lot of changes to both
[00:09:16] EminenceHC: has joined #RubyOnRails
[00:09:52] FailBit: and you will get rid of a lot of untested code in the process
[00:09:55] l_tonz: has joined #RubyOnRails
[00:09:57] FailBit: and simplify your codebase as well
[00:10:12] mices: and there's a lot of stuff in there i dunno what to do with like Bcrypt and has_secure_password that's all related to logins
[00:10:13] FailBit: you win some, lose some.
[00:10:32] mices: i dunno what to delete
[00:10:34] FailBit: maybe you want to throw them out, if you just want to do a default install of devise
[00:10:50] flooyd: lol :). Okay, idk if it's wrong to ask, but I'm doing the rails tutorial by Michael Hartl, and unfortunately I'm poor at the moment so I can't buy the book and get the solution manual. I need help with the third exercise on chapter 4.
[00:11:01] annlewis: has joined #RubyOnRails
[00:11:04] mices: FailBit: yea!
[00:11:22] flooyd: This is what I have so far (hopefully sending links is okay) https://repl.it/BVlv/3
[00:11:25] mices: devise is gonna create a controller and model for me?
[00:11:49] flooyd: but I don't think I'm supposed to create multiple params hashes to solve that exercise. just need guidance on how to do it with only 1
[00:12:02] mices: FailBit: what about sessions controller and views delete all that too? ha ha
[00:12:39] FailBit: devise has those too
[00:12:42] FailBit: shocking, right?
[00:13:12] mices: no i'm just double checking
[00:13:23] FailBit: flooyd: that's the same params hash
[00:13:32] FailBit: but if you wanted to do it in one line, you could
[00:13:42] Eminence_: has joined #RubyOnRails
[00:13:56] flooyd: oh right yeah it is the same, i just don't know how to do it in the same line.
[00:13:57] FailBit: params.merge!(father: person1, mother: person2, child: person3)
[00:14:17] FailBit: or params.merge!({father: person1, mother: person2, child: person3}) # depending on how you like your syntax
[00:15:23] FailBit: http://ruby-doc.org/core-2.2.3/Hash.html#method-i-merge-21
[00:16:08] flooyd: lol...exercise 4 says to read about merge xD. That exercise should be before this one! Thx for the help FailBit! I will try that
[00:18:26] flooyd: how do you "mention" someone on here? when you typed to me FailBit, it made a sound. or does it make that sound if I say your name at all
[00:18:29] flooyd: never used irc before
[00:19:55] FailBit: it highlights my name
[00:20:05] FailBit: basically, when you just type it
[00:20:14] FailBit: flooyd: hi
[00:20:17] FailBit: that is a highlight
[00:20:38] flooyd: FailBit: hi
[00:20:42] flooyd: like that
[00:20:50] VeryBewitching: flooyd: Most IRC GUI applications will complete the nickname for you, too. I type fl and hit tab and it completes your name.
[00:20:57] EminenceHC: has joined #RubyOnRails
[00:21:02] flooyd: VeryBewitching: nice
[00:21:07] FailBit: https://i.imgur.com/xqjFRIg.png
[00:21:14] FailBit: this is what a highlight looks like for me
[00:21:23] FailBit: it doesn't generate a sound or desktop notification because I have that disabled
[00:21:28] flooyd: VeryBewitching: thx ^_^. I shall leave this open all day as I'm learning Rails!
[00:21:54] flooyd: I'm in this in my browser. Is there a good application for Ubuntu I should use instead?
[00:22:13] VeryBewitching: Konversation too
[00:22:15] FailBit: (I'm on ubuntu as well)
[00:23:40] VeryBewitching: http://tinyurl.com/qz69sqo
[00:24:07] VeryBewitching: Really simply interface.
[00:24:14] rgrmatt: has joined #RubyOnRails
[00:24:14] FailBit: hey, someone in my timezone
[00:24:55] FailBit: right now you're in EDT
[00:25:00] FailBit: but tomorrow you'll be right
[00:25:41] VeryBewitching: You like Unity FailBit?
[00:26:36] VeryBewitching: Isn't that image Unity Desktop?
[00:26:41] FailBit: it's gnome 3.10
[00:26:42] VeryBewitching: Or is it another WM?
[00:26:47] FailBit: which is quite possible worse than unity, really
[00:26:58] FailBit: can't wait until I ditch ubuntu for arch or something
[00:27:09] VeryBewitching: Kubuntu is pretty fantastic.
[00:27:18] FailBit: I don't like KDE
[00:27:21] FailBit: but gnome 3.16 is awesome
[00:27:25] FailBit: gnome 3.10 is craptastic
[00:28:40] Axilla: has joined #RubyOnRails
[00:29:23] doge__: has joined #RubyOnRails
[00:30:25] smathy: has joined #RubyOnRails
[00:30:32] EminenceHC: has joined #RubyOnRails
[00:32:34] Cervajz: has joined #RubyOnRails
[00:38:11] Maletor: has joined #RubyOnRails
[00:38:33] tuelz: has joined #RubyOnRails
[00:46:21] VeryBewitching: I liked Enlightenment (now E I think) for a long time, true story.
[00:48:10] SteenJobs: has joined #RubyOnRails
[00:49:40] davidbitton: has joined #RubyOnRails
[00:54:05] mices: FailBit: devise didn't generate a users controller
[00:54:43] FailBit: it added 6 others to your app, though
[00:55:01] FailBit: if you have a devise_for(:users) in your routes, then try going to /users/sign_up
[00:58:07] momomomomo: has joined #RubyOnRails
[00:58:24] mostlybadfly: has joined #RubyOnRails
[00:58:44] stannard: has joined #RubyOnRails
[00:59:21] mices: so i dont need a users controller?
[00:59:38] mices: hence, devise_for
[01:00:12] FailBit: you might want a ProfilesController if you want to give users a profile page
[01:00:18] FailBit: but that's extra
[01:00:38] rgtk: has joined #RubyOnRails
[01:01:24] mices: when you say extra you mean still having to do with devise or not having to do with devise?
[01:01:30] FailBit: not having to do with devise
[01:02:12] flooyd: FailBit: I know that hashes are keys and values, so in that question I asked you with the nested hash (idk if that's what you call them...nested hashes), does that mean that the key of the first hash has a value of an entire hash? Idk if I'm wording that correctly but I just want to make sure I'm understanding it correctly lol
[01:02:35] rgtk: has joined #RubyOnRails
[01:02:48] FailBit: flooyd: no, it means the value is a hash.
[01:03:02] FailBit: {:foo => bar} # bar can be anything
[01:03:18] nogic: has joined #RubyOnRails
[01:03:19] FailBit: (note that this is the same thing as {foo: bar})
[01:03:31] yfeldblum: has joined #RubyOnRails
[01:04:10] FailBit: but you absolutely can use a hash as a key
[01:04:13] FailBit: ruby is flexible
[01:04:13] nogic: has joined #RubyOnRails
[01:04:15] FailBit: {{:foo=>:bar}=>:baz}
[01:04:22] Radar: Very often in Rails there are nested hashes in params
[01:04:30] rgtk: has joined #RubyOnRails
[01:04:41] Radar: for instance, if you had a PostsController the params Hash would contain a key called post, which itself would contain a Hash.
[01:04:48] Radar: To access a key inside the post hash, it'd be params[:post][:title]
[01:05:15] nogic: has joined #RubyOnRails
[01:05:16] FailBit: and that's why you use strong params
[01:05:25] weaksauce: has joined #RubyOnRails
[01:05:31] FailBit: params.require(:model).permit(*attributes)
[01:05:38] tyraelto_: has joined #RubyOnRails
[01:06:01] flooyd: Right, I think I'm understanding correctly. What I mean is that this... params.merge!(father: person1, mother: person2, child: person3) ... is params.merge!(key: value, key: value key: value) right? an entire hash is the value?
[01:06:20] rgtk: has joined #RubyOnRails
[01:06:27] flooyd: not always, just in that specific example
[01:06:31] flooyd: i know a value can be anything
[01:06:31] FailBit: no, it's just combining the two hashes
[01:06:51] FailBit: try looking at it in pry/irb
[01:07:02] FailBit: {foo: :bar}.merge(baz: :qux) => {:foo => :bar, :baz => :qux}
[01:07:37] flooyd: {:father=>{:first=>"Bob", :last=>"Smith"}, :mother=>{:first=>"Suzie", :last=>"Smith"}, :child=>{:first=>"Bob Jr", :last=>"Smith"}}
[01:07:39] djellemah_: has joined #RubyOnRails
[01:07:47] flooyd: is :father not a key?
[01:07:49] Radar: And then the hash inside the merge will override the original hash's keys too
[01:08:04] Radar: {foo: :bar}.merge(foo: :baz) => { foo: :baz }
[01:08:05] flooyd: and {:first=>"Bob", :last=>"Smith"} a value?
[01:08:14] rgtk: has joined #RubyOnRails
[01:08:36] Radar: FailBit: Yes, :father is the key and the second hash is the value
[01:08:40] FailBit: flooyd: correct
[01:08:44] FailBit: I'm not flooyd
[01:08:55] Radar: Silly me thinking I can tab-complete on F.
[01:08:55] FailBit: autocomplete is best..
[01:08:57] flooyd: sry i was probably just asking it in a weird way
[01:09:03] FailBit: uh wait that doesn't fit here
[01:09:08] FailBit: this isn't lel fandom site
[01:10:11] rgtk: has joined #RubyOnRails
[01:10:18] FailBit: flooyd: hashes are neat
[01:10:33] flooyd: ya they seem useful
[01:10:35] FailBit: being an intrinsic type they tend to get used a lot
[01:10:47] flooyd: gonna move on to chapter 5 of that tutorial now :D
[01:10:59] FailBit: even though the MRI hash table implementation is apparently "not known for being particularly performant"
[01:11:02] FailBit: it's still a hash table
[01:11:07] Radar: flooyd: And anything can be a key
[01:11:16] Radar: a = { one: :two }
[01:11:19] Radar: b = { a => { three: :four }
[01:11:41] FailBit: #=> {{:one => :two} => {:three => :four}}
[01:11:47] annlewis: has joined #RubyOnRails
[01:11:47] Radar: Correct :)
[01:11:51] l_tonz: has joined #RubyOnRails
[01:12:05] rgtk: has joined #RubyOnRails
[01:12:35] flooyd: what would :two be
[01:12:39] FailBit: the b[a] is a bit awkward in that case
[01:12:48] FailBit: flooyd: a value
[01:12:55] flooyd: i know, but what kind of value
[01:12:59] FailBit: {:one => :two} is the key
[01:13:09] FailBit: b[{:one => :two}]
[01:13:11] Radar: It's nonsense. Nobody sensible would do it that way :)
[01:13:12] FailBit: => {:three=>:four}
[01:13:24] FailBit: technically though
[01:13:28] FailBit: Object responds to #hash
[01:13:58] rgtk: has joined #RubyOnRails
[01:15:25] FailBit: flooyd: if it helps
[01:15:31] FailBit: think of each level of a hash as a 1:1 mapping
[01:15:51] rgtk: has joined #RubyOnRails
[01:15:51] FailBit: key A maps to value A
[01:16:16] benlieb: has joined #RubyOnRails
[01:16:47] flooyd: ya it makes sense
[01:17:00] flooyd: radar's example was just really weird lol
[01:17:06] FailBit: it's insane
[01:17:10] FailBit: nobody would ever do that
[01:17:43] rgtk: has joined #RubyOnRails
[01:17:45] Radar: just showing off that Ruby is capable of doing some weird things.
[01:18:03] Radar: Alrighty, about to head off. Toodles.
[01:18:16] djbkd: has joined #RubyOnRails
[01:18:59] flooyd: Radar: Peace :D
[01:19:12] stannard: has joined #RubyOnRails
[01:19:14] FailBit: ll still be here for like a half hour
[01:19:17] FailBit: then bedtime
[01:19:39] rgtk: has joined #RubyOnRails
[01:21:30] rgtk: has joined #RubyOnRails
[01:25:36] mices: FailBit: devise is great thanks
[01:25:44] FailBit: glad you like ti
[01:26:10] floooyd: has joined #RubyOnRails
[01:27:17] l_tonz: has joined #RubyOnRails
[01:27:17] mices: anything like that for other things to add to a site like forums?
[01:28:47] mices: o i forgot to mention i had to drop my users table before running rake db:migrate
[01:28:52] flooyd: has joined #RubyOnRails
[01:29:44] jmaradin: has joined #RubyOnRails
[01:30:20] rgtk: has joined #RubyOnRails
[01:34:32] rgtk: has joined #RubyOnRails
[01:36:14] stardiviner: has joined #RubyOnRails
[01:39:18] tuelz: has joined #RubyOnRails
[01:40:16] jgt: has joined #RubyOnRails
[01:40:47] rgtk: has joined #RubyOnRails
[01:43:07] arooni: has joined #RubyOnRails
[01:43:41] d5sx43: has joined #RubyOnRails
[01:44:42] flooyd: FailBit: how on earth do you connect to this with weechat? lol
[01:44:55] flooyd: i tried following the quickstart but no luck
[01:44:59] rgtk: has joined #RubyOnRails
[01:45:09] FailBit: /server add irc.freenode.net +6698
[01:45:21] FailBit: well actuallt
[01:45:25] FailBit: just do /help server
[01:45:30] FailBit: then you should give it a name
[01:45:36] FailBit: eg 'freenode'
[01:45:46] FailBit: then /connect freenode
[01:45:52] FailBit: then /join #RubyOnRails
[01:45:57] FailBit: easy peasy
[01:46:07] flooyd: ah, yeah i was putting the alias in the wrong place i think
[01:46:35] FailBit: note that you move buffers with Alt+arrow keys
[01:46:46] FailBit: so if you use gnome-terminal, best to have it in its own window
[01:48:34] l_tonz: has joined #RubyOnRails
[01:48:37] khodafez: has joined #RubyOnRails
[01:48:43] khodafez: has left #RubyOnRails: ()
[01:49:05] rgtk_: has joined #RubyOnRails
[01:53:17] rgtk: has joined #RubyOnRails
[01:53:55] annlewis: has joined #RubyOnRails
[01:56:05] voltagex: has joined #RubyOnRails
[01:56:32] floyd1: has joined #RubyOnRails
[01:57:24] voltagex: hi, I'm working on a 3.2.2 based site, I'm setting up a Dockerfile and I need bundle exec rake db:create:all db:migrate db:seed to work against a "remote" host (my MySQL container) - how can I override LOCAL_HOSTS?
[01:57:28] rgtk: has joined #RubyOnRails
[01:57:44] _3dwardsharp: has joined #RubyOnRails
[01:59:24] rgtk: has joined #RubyOnRails
[02:00:36] _3dwardsharp: so, i've got a controller that's inheriting from spree's ResourceController (https://github.com/radar/spree-core/blob/master/app/controllers/spree/admin/resource_controller.rb) and i'm trying to def my own location_after_save method that returns a user back to the record being edited instead of the index path. so i'd think to just return admin_myresource_path(@myresource) from a location_after_save method. however, i'm
[02:00:36] _3dwardsharp: getting an error "No route matches [POST]" because it's a GET route, not a post. how can i get this to work?
[02:02:12] _3dwardsharp: er, rather, edit_admin_myresouce_path(@myresource) (NOT admin_myresource_path...)
[02:03:17] moretti: has joined #RubyOnRails
[02:05:04] nya: has joined #RubyOnRails
[02:05:49] rgtk: has joined #RubyOnRails
[02:10:00] rgtk_: has joined #RubyOnRails
[02:11:06] wethu: has joined #RubyOnRails
[02:11:45] bonhoeffer: has joined #RubyOnRails
[02:13:16] gambl0re: im trying to use a custom icon for google maps. i put an image file in /assets/images/ folder. but when i try to display the image it's not wokring
[02:14:32] bonhoeffer: has joined #RubyOnRails
[02:16:17] mikeharris22: has joined #RubyOnRails
[02:18:45] rgtk: has joined #RubyOnRails
[02:19:01] davidbitton: has joined #RubyOnRails
[02:20:13] x-light: has joined #RubyOnRails
[02:20:38] Cervajz: has joined #RubyOnRails
[02:22:54] rgtk: has joined #RubyOnRails
[02:24:53] SteenJobs: has joined #RubyOnRails
[02:25:43] rgrmatt: has joined #RubyOnRails
[02:29:23] rgtk: has joined #RubyOnRails
[02:30:23] pwnd_nsfw: has joined #RubyOnRails
[02:35:43] rgtk: has joined #RubyOnRails
[02:37:39] rgtk: has joined #RubyOnRails
[02:39:33] rgtk: has joined #RubyOnRails
[02:40:14] rubyonrailed: has joined #RubyOnRails
[02:43:01] Jasaka: has joined #RubyOnRails
[02:45:04] davidbitton: has joined #RubyOnRails
[02:46:02] rgtk: has joined #RubyOnRails
[02:47:55] rgtk: has joined #RubyOnRails
[02:48:43] yogeshrt: has joined #RubyOnRails
[02:52:08] rgtk: has joined #RubyOnRails
[02:56:18] rgtk_: has joined #RubyOnRails
[02:57:43] tectonic: has joined #RubyOnRails
[03:00:16] koprom: has joined #RubyOnRails
[03:00:34] rgtk: has joined #RubyOnRails
[03:00:35] sevenseacat: has joined #RubyOnRails
[03:01:22] zeknox: has joined #RubyOnRails
[03:02:01] annlewis: has joined #RubyOnRails
[03:03:02] roxtrongo: has joined #RubyOnRails
[03:04:20] nogic: has joined #RubyOnRails
[03:04:42] vigintas: has joined #RubyOnRails
[03:09:14] rgtk: has joined #RubyOnRails
[03:13:15] rgtk: has joined #RubyOnRails
[03:14:32] The_Phoenix: has joined #RubyOnRails
[03:14:58] wethu: has joined #RubyOnRails
[03:20:04] djbkd: has joined #RubyOnRails
[03:21:07] bendangelo: has joined #RubyOnRails
[03:22:02] rgtk: has joined #RubyOnRails
[03:24:17] roxtrongo: has joined #RubyOnRails
[03:24:38] pyemkey: has joined #RubyOnRails
[03:26:09] rgtk: has joined #RubyOnRails
[03:30:20] rgtk: has joined #RubyOnRails
[03:32:42] kp666_: has joined #RubyOnRails
[03:34:14] quazimodo: has joined #RubyOnRails
[03:34:14] shibabu: has joined #RubyOnRails
[03:36:08] capin: happy halloween
[03:39:35] atomical: has joined #RubyOnRails
[03:41:00] jgt: has joined #RubyOnRails
[03:42:02] JoshuaPaling: has joined #RubyOnRails
[03:47:12] youngbaks: has joined #RubyOnRails
[03:48:27] mikeharris22: has joined #RubyOnRails
[03:50:04] EminenceHC: has joined #RubyOnRails
[03:51:54] Eminence_: has joined #RubyOnRails
[03:53:35] SteenJobs: has joined #RubyOnRails
[03:53:43] mikeharris22: has joined #RubyOnRails
[03:55:59] rubyonrailed: has joined #RubyOnRails
[04:00:04] dopie: has joined #RubyOnRails
[04:01:15] jahbrewski: has joined #RubyOnRails
[04:02:47] annlewis: has joined #RubyOnRails
[04:08:59] Cervajz: has joined #RubyOnRails
[04:09:56] braincras: has joined #RubyOnRails
[04:16:04] snurfery: has joined #RubyOnRails
[04:17:14] l_tonz: has joined #RubyOnRails
[04:22:30] l_tonz_: has joined #RubyOnRails
[04:22:50] Peteykun: has joined #RubyOnRails
[04:23:28] mxrguspxrt: has joined #RubyOnRails
[04:26:52] pyemkey: has joined #RubyOnRails
[04:27:13] rgrmatt: has joined #RubyOnRails
[04:37:06] kp666: has joined #RubyOnRails
[04:37:12] x-light: has joined #RubyOnRails
[04:45:30] quazimodo: has joined #RubyOnRails
[04:48:44] Tref: has joined #RubyOnRails
[04:49:29] trosborn: has joined #RubyOnRails
[04:50:46] jamto11: has joined #RubyOnRails
[04:52:46] vigintas: has joined #RubyOnRails
[04:54:06] elcontrastador: has joined #RubyOnRails
[04:55:46] tenderlove: has joined #RubyOnRails
[04:56:58] dikaio: has joined #RubyOnRails
[04:57:15] tenderlove: has joined #RubyOnRails
[05:03:39] annlewis: has joined #RubyOnRails
[05:04:19] SteenJobs: has joined #RubyOnRails
[05:05:27] elcontrastador: has joined #RubyOnRails
[05:05:56] bruno-: has joined #RubyOnRails
[05:07:07] pontiki: has joined #RubyOnRails
[05:07:07] quazimodo: has joined #RubyOnRails
[05:08:25] elcontrastador: struggling with a unique, to me, model association
[05:08:40] baweaver: has joined #RubyOnRails
[05:09:15] elcontrastador: writing a web front end for an asterisk pbx
[05:09:45] elcontrastador: phones have many lines, lines can be assigned to many phones (easy)
[05:09:57] elcontrastador: has_many through relationship
[05:10:23] elcontrastador: except, i need to map lines to different distinct lines on each phone
[05:11:29] elcontrastador: so a phone's line1, may be same line appearing on another phone as line3. Difficulty finding way to assign the lines to phones with has_many through
[05:11:49] pontiki: that is interesting
[05:11:59] shibabu: has joined #RubyOnRails
[05:12:26] elcontrastador: i've thought about (in phone model) doing belongs_to :line1, etc
[05:12:56] elcontrastador: then doing class_name: 'Line', foreign_key: 'id'
[05:13:02] pontiki: what is the join table in the HM:T relationship?
[05:13:04] dikaio: has joined #RubyOnRails
[05:13:17] pontiki: and what are the fields in that?
[05:13:25] elcontrastador: phone_id, line_id
[05:13:57] elcontrastador: that works fine, but difficulty mapping to distinct lines per phone (cleanly at least)
[05:14:12] pontiki: yes, it sounds like there's another relationship in there
[05:14:25] pontiki: a phone has a distinct set of counted(?) lines
[05:14:32] VeryBewitching: Almost like LineAssignment should have a column for exclusivity
[05:14:37] pontiki: and those counted lines can map to any Line
[05:14:41] elcontrastador: some have 2, 4 and 6 lines
[05:15:02] pontiki: Phone has_many PhoneLines
[05:15:04] doctorly: has joined #RubyOnRails
[05:15:19] pontiki: PhoneLine has_one LineAttachment
[05:15:29] pontiki: Line has_many LineAttachments
[05:15:38] xantik: has joined #RubyOnRails
[05:15:41] elcontrastador: hmm...digesting that
[05:15:48] pontiki: i'm not sure it is *right*
[05:15:51] skiz: has joined #RubyOnRails
[05:16:05] adamholt: has joined #RubyOnRails
[05:16:12] jbw: has joined #RubyOnRails
[05:16:12] elcontrastador: y, but good start i think...still thinking
[05:16:37] pontiki: that has_one in the middle there bothers me
[05:16:51] elcontrastador: someone carries the fk
[05:17:03] pontiki: cos you'd end up with a has_one/through
[05:17:11] pontiki: and that *really* really bothers me
[05:17:13] elcontrastador: that's what i had
[05:17:16] VeryBewitching: Phone has_many Lines, Phone has_many LineAssignments, Line belongs_to LineAssignment, Line belongs_to Phone
[05:17:22] wethu: has joined #RubyOnRails
[05:17:26] pawnbox: has joined #RubyOnRails
[05:17:41] elcontrastador: everything is fine there except mapping to distinct line numbers...cant be aribitrairly ordered
[05:17:50] Takumo: has joined #RubyOnRails
[05:17:50] Takumo: has joined #RubyOnRails
[05:17:55] VeryBewitching: I think you have two relationships, one for which phones can access which lines, and one for how they are assigned on that particular phone.
[05:18:36] elcontrastador: VB: can you give an example...i think you're right
[05:18:52] VeryBewitching: ^ look at the relationships I mentioned
[05:19:07] kaspergrubbe: has joined #RubyOnRails
[05:19:21] VeryBewitching: LineAssignment would hold the slot number.
[05:19:44] VeryBewitching: so phone_id, line_id, line_slot
[05:20:06] elcontrastador: this wont work...
[05:20:09] pontiki: Lines can belong to more than one Phone
[05:20:15] elcontrastador: line belongs to many phones
[05:20:28] elcontrastador: the line belongs_to only maps one phone
[05:21:29] elcontrastador: its many to many with phones and lines...where any line can be line 1 on phone1, line 4 on phone 3
[05:21:51] VeryBewitching: Oh, yes, you're correct. But solving the two issues with one relationship is probably not possible unless you write the SQL yourself.
[05:22:30] elcontrastador: i can think of some ugly hacks tomake this work...trying to not buck the system :-)
[05:22:52] VeryBewitching: Well writing SQL joins is not hacky
[05:23:06] xantik: has joined #RubyOnRails
[05:23:20] VeryBewitching: Getting the relationship specified in :through to include a column from that table when the join is performed is the trick.
[05:23:35] elcontrastador: yes, i was thinking of some classes to help
[05:24:59] techsethi: has joined #RubyOnRails
[05:25:13] elcontrastador: is that possible in AR?
[05:25:39] VeryBewitching: I don't know, I've never tried this.
[05:26:39] VeryBewitching: But I'm sure you could add a field from that table into the select when you're retrieving it.
[05:26:57] elcontrastador: http://guides.rubyonrails.org/association_basics.html#association-extensions
[05:27:02] fedexo: has joined #RubyOnRails
[05:27:30] Uptime: has joined #RubyOnRails
[05:28:06] kp666: has joined #RubyOnRails
[05:29:11] VeryBewitching: Phone has_many Lines, Line has_many Phones, LineAssignment belongs to Phone and Line, but LineAssignment would have phone_id, line_id and slot_assignment Selecting that slot_assignment column is the trick.
[05:29:35] arup_r: has joined #RubyOnRails
[05:29:51] towler: has joined #RubyOnRails
[05:30:23] elcontrastador: thinking of how an assoc extension method could possible do this
[05:30:41] VeryBewitching: That I can't help you with, I've never tried it.
[05:31:10] elcontrastador: passed as block to has_many :lines, through line_assignments
[05:31:58] SteenJobs: has joined #RubyOnRails
[05:32:11] VeryBewitching: I'm sure there's more than one way to skin this cat.
[05:32:13] xantik: has joined #RubyOnRails
[05:33:29] VeryBewitching: One last thing I was thinking was having Phone, Line and Slot
[05:35:11] VeryBewitching: Slot belongs_to Phone, Line has_many Phone through Slot, Phone has_many Slots
[05:35:14] elcontrastador: i'm pondering this
[05:36:03] htmldrum: has joined #RubyOnRails
[05:36:57] weihan: has joined #RubyOnRails
[05:37:47] techsethi: has joined #RubyOnRails
[05:41:48] jgt: has joined #RubyOnRails
[05:45:01] tlarevo: has joined #RubyOnRails
[05:46:12] arup_r: elcontrastador: You are trying to add a method to your assoc ?
[05:46:46] elcontrastador: maybe...still working on this
[05:46:58] elcontrastador: did you catch the problem i'm working thru?
[05:47:26] arup_r: ok, I once used it.. I am seeing half discussion.. rest I was offline.. :)
[05:47:26] elcontrastador: I'm actually trying one more idea before i go there
[05:47:49] adavia: has joined #RubyOnRails
[05:47:53] VeryBewitching: elcontrastador: I looked at it from this angle; You are trying to associate a phone to a line by an attribute of phone.
[05:48:12] VeryBewitching: That attribute is the physical slot on the phone.
[05:48:53] VeryBewitching: It's exclusive to that slot on the phone; so a model to represent that physical button seems reasonable.
[05:48:56] iateadonut: has joined #RubyOnRails
[05:50:29] gambl0re: anyone have experience with geocoder gem? https://github.com/alexreisner/geocoder
[05:51:49] elcontrastador: yes, VeryBetwitching. I'm going to post a pastie in a min on this
[05:51:50] l_tonz: has joined #RubyOnRails
[05:53:30] techsethi: has joined #RubyOnRails
[05:56:16] iateadonut: has joined #RubyOnRails
[05:57:00] Cervajz: has joined #RubyOnRails
[05:59:24] annlewis: has joined #RubyOnRails
[06:06:23] AnoHito_: has joined #RubyOnRails
[06:06:48] acti0nman: has joined #RubyOnRails
[06:07:07] rakm: has joined #RubyOnRails
[06:14:50] upgrayeddd: has joined #RubyOnRails
[06:15:29] mxrguspx_: has joined #RubyOnRails
[06:15:54] user1138: has joined #RubyOnRails
[06:16:35] arup_r: has joined #RubyOnRails
[06:16:37] elcontrastador: VeryBewitching: Coming full circle here... Why wouldnt a column on LineAssignment (the thru model for Line and Phone) just contain a :line_pos column
[06:17:31] VeryBewitching: I mentioned that earlier.
[06:18:03] VeryBewitching: LineAssignment would have phone_id, line_id and slot, or line_pos if you will
[06:18:19] elcontrastador: how did i not see this...
[06:18:46] tlarevo: has left #RubyOnRails: ()
[06:18:53] VeryBewitching: elcontrastador: You're *still* not doing it with one association this way. You'd have two associations on Phone
[06:18:55] elcontrastador: arup_r just msg'd that...so busy working a 4th model into this...losing track of why that wouldnt work
[06:19:22] VeryBewitching: Phone has many Lines through LineAssignment, Phone has many LineAssignments
[06:20:35] VeryBewitching: The second relationship is about how it's assigned to the phone and not that it's assigned at all.
[06:20:44] VeryBewitching: The first one is the opposite.
[06:21:45] VeryBewitching: I would add a 'total_line_positions' to Phone though
[06:22:08] VeryBewitching: And enforce how many line positions there are on a per phone basis.
[06:24:17] elcontrastador: i have that total
[06:24:20] elcontrastador: https://gist.github.com/redii/9278469c9d72a3c483d0
[06:24:50] yfeldblum: has joined #RubyOnRails
[06:26:51] djbkd: has joined #RubyOnRails
[06:28:52] rgrmatt: has joined #RubyOnRails
[06:33:06] VeryBewitching: Is that working now elcontrastador?
[06:33:56] elcontrastador: i'm just reverting my git branch now and making updates
[06:38:18] arup_r: VeryBewitching: What is time there..? Still up :D
[06:41:02] vigintas: has joined #RubyOnRails
[06:43:22] VeryBewitching: It's 1:43AM here.
[06:45:24] htmldrum: has joined #RubyOnRails
[06:46:17] techsethi: has joined #RubyOnRails
[06:46:35] rubyonrailed: has joined #RubyOnRails
[06:47:29] lxsameer: has joined #RubyOnRails
[06:48:45] ahegyi: has joined #RubyOnRails
[06:51:13] spazworm: has joined #RubyOnRails
[06:51:49] _HombreTepic: has joined #RubyOnRails
[06:54:56] dideler: has joined #RubyOnRails
[06:55:05] elcontrastador: the simple addition of line_pos column on thru model will work well enough. Thaks arup_r and VeryBewitching
[07:02:08] stannard: has joined #RubyOnRails
[07:02:53] spazworm: I wonder if someone could point me in the direction of a tool that they know might work for my situation. I have a 75GB production Postgresql database on an AWS RDS That I'm using for my rails app. I'd like to be able to get a copy of this database to sync on a schedule every night. It seems RDS doesn't give me access I need to do a streaming replica, so I was thinking maybe there is some ruby tool to help sync these databases
[07:03:56] spazworm: oh and since i'm in australia and am subject to network download limits a dump and restore every night isn't really viable :(
[07:05:09] yogeshwar: has joined #RubyOnRails
[07:06:58] annlewis: has joined #RubyOnRails
[07:07:00] rhizome: you want to "get" a copy every night without the bandwidth problems you'd get with nightly dumps?
[07:07:39] spazworm: so like, roll back my database to what it was, then copy the diff from production ideally
[07:08:54] elcontrastador: Can't you write something up to use S3?
[07:10:22] spazworm: I suppose i could technically write an app to sync two databases myself, check for update stamps for the tables that have them and just add them
[07:10:46] spazworm: just thought someone might know of some tool that would make it quick and easy
[07:10:56] spazworm: for any other database it would probably be trivial
[07:15:04] spazworm: Ok, no worries, looks like no one is really that familiar with it, Thanks to anyone who read my question though :)
[07:16:00] spazworm: has left #RubyOnRails: ()
[07:19:24] moeabdol: has joined #RubyOnRails
[07:19:33] yardenbar: has joined #RubyOnRails
[07:27:33] jgt: has joined #RubyOnRails
[07:27:52] aaronakorn: has joined #RubyOnRails
[07:28:35] lxsameer: has joined #RubyOnRails
[07:29:35] benhuda: has joined #RubyOnRails
[07:30:45] The_Phoenix: has joined #RubyOnRails
[07:31:16] xantik: has joined #RubyOnRails
[07:33:25] sameerynho: has joined #RubyOnRails
[07:36:38] lxsameer_: has joined #RubyOnRails
[07:45:10] Cervajz: has joined #RubyOnRails
[07:46:18] Rinzlit: has joined #RubyOnRails
[07:47:32] shibabu: has joined #RubyOnRails
[07:50:39] pontiki: has joined #RubyOnRails
[07:51:10] charany1: has joined #RubyOnRails
[07:59:45] naftilos76: has joined #RubyOnRails
[08:02:34] jahbrewski: has joined #RubyOnRails
[08:03:34] yfeldblum: has joined #RubyOnRails
[08:07:34] annlewis: has joined #RubyOnRails
[08:07:46] bmalum: has joined #RubyOnRails
[08:08:37] bruno-: has joined #RubyOnRails
[08:11:42] Bbvoncrumb: has joined #RubyOnRails
[08:12:54] darutoko: has joined #RubyOnRails
[08:14:37] notnoyyyyy: has joined #RubyOnRails
[08:15:42] charany1: has joined #RubyOnRails
[08:18:05] Bbvoncrumb: has joined #RubyOnRails
[08:18:44] techsethi: has joined #RubyOnRails
[08:18:49] charany1: hi , how can I conditionally define what parameters are passed to my show view from #show where condition depends on button pressed by user in my form ?
[08:19:17] charany1: controller : https://gist.github.com/charany1/d0815fd7fabf5e9f2dcd
[08:22:06] charany1: In above I want to send different message to show action depending on user pressed "Save" or "Submit" button , but I guess params[:commit] is not available in #show action and hence I can't use that for branching .
[08:22:26] charany1: Can you please help me with this ?
[08:23:23] l_tonz: has joined #RubyOnRails
[08:23:29] rhizome: why aren't you using normal create/update actions?
[08:25:18] charany1: rhizome : I am using them , to update and save
[08:25:44] rhizome: why are you trying to duplicate them in your #show?
[08:26:20] rhizome: save/update, then redirect to the @thing
[08:27:40] tectonic: has joined #RubyOnRails
[08:28:42] pyemkey: has joined #RubyOnRails
[08:29:09] vigintas: has joined #RubyOnRails
[08:30:15] rgrmatt: has joined #RubyOnRails
[08:32:17] charany1: rhizome : do you mean something like this : https://gist.github.com/charany1/d0815fd7fabf5e9f2dcd
[08:32:40] charany1: rhizome : please see create -> "Submit"
[08:33:36] arBmind: has joined #RubyOnRails
[08:35:43] rubyonrailed: has joined #RubyOnRails
[08:36:29] pawnbox: has joined #RubyOnRails
[08:37:02] Tref: has joined #RubyOnRails
[08:37:18] yosemitesam: has joined #RubyOnRails
[08:37:53] Cervajz: has joined #RubyOnRails
[08:38:31] Ryan1013: has joined #RubyOnRails
[08:38:38] Ryan1013: has left #RubyOnRails: ()
[08:39:44] dionysus69: has joined #RubyOnRails
[08:47:13] pawnbox: has joined #RubyOnRails
[08:51:12] pontiki: has joined #RubyOnRails
[08:51:31] Cervajz: has joined #RubyOnRails
[08:53:00] Cervajz: has joined #RubyOnRails
[08:56:24] arooni: has joined #RubyOnRails
[08:58:20] jgt: has joined #RubyOnRails
[09:00:11] treaki_: has joined #RubyOnRails
[09:05:07] arup_r: has joined #RubyOnRails
[09:07:41] aaronakorn: has joined #RubyOnRails
[09:07:46] techsethi: has joined #RubyOnRails
[09:07:55] lele: has joined #RubyOnRails
[09:08:22] annlewis: has joined #RubyOnRails
[09:20:10] benhuda: has joined #RubyOnRails
[09:21:34] gaussblurinc1: has joined #RubyOnRails
[09:24:30] l_tonz: has joined #RubyOnRails
[09:28:58] sameerynho: has joined #RubyOnRails
[09:29:54] techsethi: has joined #RubyOnRails
[09:29:56] vigintas: has joined #RubyOnRails
[09:32:03] yfeldblum: has joined #RubyOnRails
[09:40:04] ruurd: has joined #RubyOnRails
[09:41:41] lxsameer_: has joined #RubyOnRails
[09:43:20] bonhoeffer: has joined #RubyOnRails
[09:43:25] rgtk: has joined #RubyOnRails
[09:44:04] DoubleMalt: has joined #RubyOnRails
[09:44:40] treaki: has joined #RubyOnRails
[09:47:41] rgtk: has joined #RubyOnRails
[09:48:03] shibabu: has joined #RubyOnRails
[09:51:41] rgtk: has joined #RubyOnRails
[09:51:54] jgt: has joined #RubyOnRails
[09:51:57] pontiki: has joined #RubyOnRails
[09:52:27] Ergo: has joined #RubyOnRails
[09:54:43] Mia: has joined #RubyOnRails
[09:54:43] Mia: has joined #RubyOnRails
[09:56:23] Axy: has joined #RubyOnRails
[09:58:20] Motoservo: has joined #RubyOnRails
[10:02:21] Cervajz: has joined #RubyOnRails
[10:04:30] SPYGAME: has joined #RubyOnRails
[10:04:40] Cervajz_: has joined #RubyOnRails
[10:04:56] benhuda: has joined #RubyOnRails
[10:06:27] rgtk: has joined #RubyOnRails
[10:06:41] stannard: has joined #RubyOnRails
[10:09:06] annlewis: has joined #RubyOnRails
[10:10:15] SPYGAME: hey guys, i'm trying to use carrierwave to upload multiple image files but i can't seem to make it work. here's the complete gist https://gist.github.com/anonymous/9969fc8c5db9173aaa2c
[10:10:22] htmldrum: has joined #RubyOnRails
[10:13:09] manolis_: has joined #RubyOnRails
[10:14:05] sevenseacat: spygame: do you mean `mount_uploaders` ?
[10:16:37] AzaToth: has joined #RubyOnRails
[10:17:32] manolis_: has left #RubyOnRails: ()
[10:18:00] th0m_: has joined #RubyOnRails
[10:22:06] SPYGAME: sevenseacat: my bad, i did try with mount_uploaders and i forgot to change it back. still get the same error
[10:22:47] rgtk: has joined #RubyOnRails
[10:24:14] rubyonrailed: has joined #RubyOnRails
[10:25:13] pontiki: has joined #RubyOnRails
[10:26:36] l_tonz: has joined #RubyOnRails
[10:26:56] sevenseacat: https://gist.github.com/anonymous/9969fc8c5db9173aaa2c#file-upload_controller-rb-L9 is totally wrong - why are you doing this
[10:27:38] SPYGAME: sevenseacat: coz it's an array ?
[10:27:57] sevenseacat: there are no arrays there
[10:28:14] quazimodo: has joined #RubyOnRails
[10:29:00] sevenseacat: you're assigning an uploaded file where your app expects an uploader
[10:29:37] sevenseacat: I'd check the readme for carrierwave because it covers this exact scenario and doesnt do it like thsi
[10:30:25] SPYGAME: https://github.com/carrierwaveuploader/carrierwave#multiple-file-uploads the readme isn't very detailed about this usecase
[10:30:50] SPYGAME: sevenseacat: isn't uploaded file handled by the uploader automatically ?
[10:30:54] sevenseacat: its exactly clear - you dont need to do any of the junk you're doing with the loop
[10:31:05] sevenseacat: it handles it for you
[10:31:45] rgrmatt: has joined #RubyOnRails
[10:32:48] The_Phoenix1: has joined #RubyOnRails
[10:34:25] htmldrum: has joined #RubyOnRails
[10:38:27] jessemcgilallen: has joined #RubyOnRails
[10:42:35] ruurd: has joined #RubyOnRails
[10:44:40] charany1: hi , my console is no longer able to connect to my database : https://gist.github.com/charany1/206d229282757e63625c , it's giving unknown MySQL server host
[10:45:11] charany1: whereas I was able to access mysql server on AWS half an hour ago
[10:45:22] charany1: I didn't changed my database.yml also
[10:45:24] aaronakorn: has joined #RubyOnRails
[10:45:37] charany1: can you please help me with this ?
[10:45:43] stamina: has joined #RubyOnRails
[10:45:54] pawnbox_: has joined #RubyOnRails
[10:49:21] blackmesa: has joined #RubyOnRails
[10:49:40] shibabu: has joined #RubyOnRails
[10:53:22] njero: has joined #RubyOnRails
[10:56:22] mices: FailBit: re devise, what about account activation emails?
[11:01:20] sameerynho: has joined #RubyOnRails
[11:04:10] jahbrewski: has joined #RubyOnRails
[11:09:52] annlewis: has joined #RubyOnRails
[11:10:49] bruno-: has joined #RubyOnRails
[11:11:18] pontiki: https://twitter.com/nachosoto/status/659959849266970624
[11:14:03] jahbrewski: has joined #RubyOnRails
[11:16:11] bruno-: has joined #RubyOnRails
[11:18:04] vigintas: has joined #RubyOnRails
[11:19:37] mices: how do i configure devise to send account confirmation emails
[11:20:01] mices: or to make confirmable true in broad scope
[11:20:59] sankaber: has joined #RubyOnRails
[11:23:23] sevenseacat: has joined #RubyOnRails
[11:23:26] sankaber: has joined #RubyOnRails
[11:24:30] djbkd: has joined #RubyOnRails
[11:26:39] bruno-: has joined #RubyOnRails
[11:27:16] l_tonz: has joined #RubyOnRails
[11:27:20] SPYGAME: has joined #RubyOnRails
[11:27:59] hyp3rkyd: has joined #RubyOnRails
[11:37:08] bruno-: has joined #RubyOnRails
[11:42:29] kp666: has joined #RubyOnRails
[11:42:34] bruno-: has joined #RubyOnRails
[11:42:43] FailBit: in your user model, of course
[11:43:55] FailBit: devise :database_authenticatable, :registerable, :confirmable
[11:43:57] FailBit: ??????????????????:recoverable, :rememberable, :trackable, :validatable
[11:44:59] Icey: has joined #RubyOnRails
[11:47:56] bruno-: has joined #RubyOnRails
[11:50:38] Icey: has joined #RubyOnRails
[11:52:48] ruurd: has joined #RubyOnRails
[11:53:01] darrencauthon: has joined #RubyOnRails
[11:55:08] Icey: has joined #RubyOnRails
[11:57:17] netzfisch: has joined #RubyOnRails
[11:58:21] bruno-: has joined #RubyOnRails
[12:00:18] Cervajz: has joined #RubyOnRails
[12:05:08] pawnbox: has joined #RubyOnRails
[12:05:35] XCMer: has joined #RubyOnRails
[12:06:18] XCMer: has left #RubyOnRails: ()
[12:06:23] aaronakorn: has joined #RubyOnRails
[12:08:47] wethu: has joined #RubyOnRails
[12:10:08] rubyonrailed: has joined #RubyOnRails
[12:10:37] annlewis: has joined #RubyOnRails
[12:12:27] StevenXL: has joined #RubyOnRails
[12:13:56] sankaber: has joined #RubyOnRails
[12:18:50] bruno-: has joined #RubyOnRails
[12:20:11] njero: has joined #RubyOnRails
[12:24:13] bruno-: has joined #RubyOnRails
[12:27:35] cornerma1: has joined #RubyOnRails
[12:28:00] l_tonz: has joined #RubyOnRails
[12:28:31] htmldrum: has joined #RubyOnRails
[12:33:15] rgrmatt: has joined #RubyOnRails
[12:36:04] stannard: has joined #RubyOnRails
[12:36:33] trosborn: has joined #RubyOnRails
[12:37:01] tlarevo: has joined #RubyOnRails
[12:39:40] bruno-: has joined #RubyOnRails
[12:44:21] jahbrewski: has joined #RubyOnRails
[12:45:04] bruno-: has joined #RubyOnRails
[12:45:50] Joufflu: has joined #RubyOnRails
[12:47:29] cornerman: has joined #RubyOnRails
[12:52:37] shibabu: has joined #RubyOnRails
[12:55:42] naftilos76: has joined #RubyOnRails
[12:56:50] djbkd: has joined #RubyOnRails
[12:56:51] mxrguspxrt: has joined #RubyOnRails
[12:59:50] rgtk: has joined #RubyOnRails
[13:00:48] ruurd: has joined #RubyOnRails
[13:05:34] bruno-: has joined #RubyOnRails
[13:06:11] vigintas: has joined #RubyOnRails
[13:06:13] bonhoeffer: has joined #RubyOnRails
[13:08:08] grotewold: has joined #RubyOnRails
[13:08:28] bonhoeffer: has joined #RubyOnRails
[13:10:13] zhirzh: has joined #RubyOnRails
[13:11:01] lipoqil: has joined #RubyOnRails
[13:11:06] zhirzh: has left #RubyOnRails: ()
[13:11:24] annlewis: has joined #RubyOnRails
[13:13:03] darrencauthon: has joined #RubyOnRails
[13:13:38] Peteykun: has joined #RubyOnRails
[13:14:32] vigintas: has joined #RubyOnRails
[13:15:04] vigintas: has joined #RubyOnRails
[13:15:23] darrenca_: has joined #RubyOnRails
[13:22:38] mxrguspxrt: has joined #RubyOnRails
[13:23:31] rgrmatt: has joined #RubyOnRails
[13:25:40] DiCablo: has joined #RubyOnRails
[13:28:45] l_tonz: has joined #RubyOnRails
[13:30:19] ruurd: has joined #RubyOnRails
[13:31:02] rodfersou: has joined #RubyOnRails
[13:31:55] Cervajz_: has joined #RubyOnRails
[13:32:20] bonhoeffer: has joined #RubyOnRails
[13:40:56] rubyonrailed: has joined #RubyOnRails
[13:42:23] antgel: has joined #RubyOnRails
[13:47:17] davidbitton: has joined #RubyOnRails
[13:47:50] Sylario: has joined #RubyOnRails
[13:48:00] netzfisch: has joined #RubyOnRails
[13:49:01] davidbitton: has joined #RubyOnRails
[13:49:33] ruurd: has joined #RubyOnRails
[13:55:05] DEA7TH: has joined #RubyOnRails
[13:57:44] ruurd: has joined #RubyOnRails
[14:00:43] Jasaka: has joined #RubyOnRails
[14:02:43] kovalevsky: has joined #RubyOnRails
[14:02:56] kovalevsky: I'm using ruby on rails and I want to install a gem that needs to upload or set files in the assets folder but after run the bundle install command I dont see those files
[14:03:03] kovalevsky: Anyone have any idea about why i'm getting this behavior?
[14:03:14] kovalevsky: Thanks in advance
[14:04:18] kp666_: has joined #RubyOnRails
[14:05:27] trosborn: what gem is it?
[14:05:34] yfeldblum: has joined #RubyOnRails
[14:05:54] udiudi: has joined #RubyOnRails
[14:07:10] shinnya: has joined #RubyOnRails
[14:09:03] kovalevsky: https://github.com/tsechingho/chosen-rails
[14:09:27] kovalevsky: https://github.com/jiripospisil/parsley-rails
[14:09:27] tuelz: has joined #RubyOnRails
[14:09:37] bmalum: has joined #RubyOnRails
[14:10:32] kovalevsky: Those gems are... when I set them in my gemfile and run bundle install, rails tell me that the gem is installed, I can see that the gems are installed in the gems default folder
[14:10:51] kovalevsky: It suppose to be cp to the assets folder, but I didn't get any file on it.
[14:11:03] kovalevsky: So, I don't know what I'm doing wrong
[14:12:11] annlewis: has joined #RubyOnRails
[14:14:32] jahbrewski: has joined #RubyOnRails
[14:16:32] bonhoeffer: has joined #RubyOnRails
[14:19:11] trosborn: I haven???t got a clue - that is very strange.
[14:23:07] DEA7TH: Does this need refactoring? What can I do about it? https://gist.github.com/VelizarHristov/46dd9c05585093440105
[14:25:49] kovalevsky: trosborn, did you try to install the gem into a dummy project?
[14:27:28] tlarevo: has joined #RubyOnRails
[14:28:42] kp666: has joined #RubyOnRails
[14:28:44] bonhoeffer: has joined #RubyOnRails
[14:29:10] blackmesa: has joined #RubyOnRails
[14:29:11] trosborn: I???m working on that now
[14:29:31] l_tonz: has joined #RubyOnRails
[14:29:46] kovalevsky: I would apreciate if you can do the steps and tell me if for your project work
[14:29:55] kovalevsky: It's really weird I mean
[14:30:57] pyemkey: has joined #RubyOnRails
[14:35:23] moeabdol: has joined #RubyOnRails
[14:35:47] jhass: kovalevsky: clear terms. What do you expect to happen exactly, what do you see happen instead exactly?
[14:36:18] agit0: has joined #RubyOnRails
[14:37:28] jhass: DEA7TH: what do you mean state is unused?
[14:37:29] kovalevsky: jhass, yeah, well I'm not clear about that it all. As you can see in parsley gem, there are files on stylesheet and javascript folder.
[14:37:38] DEA7TH: jhass: I'm not calling the method anywhere
[14:37:46] jhass: DEA7TH: so just drop it?
[14:37:48] DEA7TH: I might as well drop it
[14:37:53] DEA7TH: yeah doesn't matter
[14:37:55] ruurd: has joined #RubyOnRails
[14:37:59] kovalevsky: So, the problem is that when I run the bundle install, and I try to add into my js folder this: //= require parsley
[14:38:11] FailBit: ACTION require cilantro
[14:38:12] jhass: DEA7TH: also methods that should return booleans should end with an ?
[14:38:14] kovalevsky: The system told me that there is no parsley js on there
[14:38:28] kovalevsky: So, i'm assuming that the system did copy those files to my assets folder.
[14:38:38] kovalevsky: But I think that I discover the problem now
[14:38:42] jhass: kovalevsky: nope, there's nothing to copy
[14:38:45] DEA7TH: jhass: will fix that. Anything else?
[14:38:54] jhass: kovalevsky: using spring?
[14:39:12] kovalevsky: jhass, when I was running the bundle install i've an instance of the server rnning
[14:39:35] kovalevsky: I stopped the server and run it again and now I don't get the annoying message
[14:39:38] rgrmatt: has joined #RubyOnRails
[14:39:50] jhass: DEA7TH: I tend to prefer a && b over !a.nil? && b unless false is legit value
[14:39:51] kovalevsky: jhass, and you're right, no files are need to be copy there
[14:40:05] kovalevsky: my problem was running the server and using bundle install at the same time
[14:40:16] jhass: kovalevsky: yup, that would've been the next question
[14:41:03] kovalevsky: jhass, :D thank you so much anyways for your interest in help
[14:41:07] jhass: DEA7TH: collection_trip_item.try!(:completed) || false perhaps
[14:41:11] kovalevsky: and to trosborn too
[14:41:25] trosborn: no problem :)
[14:41:51] DEA7TH: jhass: fixing that. but is there a problem with my model being a state machine like that?
[14:42:10] jhass: maybe, hard to tell out of context
[14:42:12] DEA7TH: should I split it into 4 classes inheriting from it? btw there is not much logic per state
[14:42:36] jhass: I have no idea how it's used in your app, can't tell
[14:44:03] DEA7TH: okay, that was what I was most worried about
[14:46:26] bonhoeffer: has joined #RubyOnRails
[14:48:48] ruurd: has joined #RubyOnRails
[14:50:34] njero: has joined #RubyOnRails
[14:52:19] Trynemjoel: has joined #RubyOnRails
[14:54:47] shibabu: has joined #RubyOnRails
[14:54:47] voker57: has joined #RubyOnRails
[14:57:18] The_Phoenix: has joined #RubyOnRails
[14:58:44] djbkd: has joined #RubyOnRails
[15:04:13] annlewis: has joined #RubyOnRails
[15:05:14] krumelmonster: has joined #RubyOnRails
[15:05:46] tlarevo: has joined #RubyOnRails
[15:08:44] superlou: has joined #RubyOnRails
[15:09:44] bmalum: has joined #RubyOnRails
[15:10:22] Macaveli: has joined #RubyOnRails
[15:12:08] blackmesa: has joined #RubyOnRails
[15:13:11] Rinzlit1: has joined #RubyOnRails
[15:13:32] moeabdol: has joined #RubyOnRails
[15:14:12] pawnbox: has joined #RubyOnRails
[15:15:46] rgrmatt: has joined #RubyOnRails
[15:15:49] mxrguspxrt: has joined #RubyOnRails
[15:17:11] blackmesa: has joined #RubyOnRails
[15:17:51] atomical: has joined #RubyOnRails
[15:21:14] rgrmatt: has joined #RubyOnRails
[15:22:42] User458764: has joined #RubyOnRails
[15:27:21] adavia: has joined #RubyOnRails
[15:29:36] rubyonrailed: has joined #RubyOnRails
[15:30:22] l_tonz: has joined #RubyOnRails
[15:35:05] jamto11: has joined #RubyOnRails
[15:35:47] aaronakorn: has joined #RubyOnRails
[15:35:47] darrencauthon: has joined #RubyOnRails
[15:38:15] rgtk: has joined #RubyOnRails
[15:39:28] rgrmatt: has joined #RubyOnRails
[15:47:43] rgrmatt: has joined #RubyOnRails
[15:49:24] User458764: has joined #RubyOnRails
[15:49:42] l_tonz: has joined #RubyOnRails
[15:50:20] stamina: has joined #RubyOnRails
[15:51:51] rgrmatt: has joined #RubyOnRails
[15:54:26] jahbrewski: has joined #RubyOnRails
[15:55:32] mikeharris22: has joined #RubyOnRails
[15:56:53] tuelz: has joined #RubyOnRails
[15:59:47] bendangelo: has joined #RubyOnRails
[16:01:43] djbkd: has joined #RubyOnRails
[16:02:10] djbkd: has joined #RubyOnRails
[16:05:36] SPYGAME: has joined #RubyOnRails
[16:05:42] jamto11: has joined #RubyOnRails
[16:12:25] annlewis: has joined #RubyOnRails
[16:13:47] Cervajz_: has joined #RubyOnRails
[16:13:48] m3_del: has joined #RubyOnRails
[16:15:23] cashnguns: has joined #RubyOnRails
[16:16:28] jahbrewski: has joined #RubyOnRails
[16:16:49] TheMoonMaster: has joined #RubyOnRails
[16:18:18] freezeve1: has joined #RubyOnRails
[16:20:22] agit0: has joined #RubyOnRails
[16:21:00] darrencauthon: has joined #RubyOnRails
[16:21:37] freezevee: has joined #RubyOnRails
[16:22:12] freezevee: when I try to run bundle install I get Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
[16:22:22] shaileshg: has joined #RubyOnRails
[16:22:26] freezevee: when I run sudo bundle then everything runs fine
[16:22:34] freezevee: what am I missing ?
[16:22:54] roxtrongo: has joined #RubyOnRails
[16:23:16] FailBit: the sky is falling
[16:23:50] pyemkey: has joined #RubyOnRails
[16:26:12] null__: has joined #RubyOnRails
[16:26:13] null__: has joined #RubyOnRails
[16:27:16] TheMoonMaster: has joined #RubyOnRails
[16:27:19] nullwarp: has joined #RubyOnRails
[16:27:58] jacaballero: has joined #RubyOnRails
[16:28:48] ivanskie: has joined #RubyOnRails
[16:30:08] erfus: has joined #RubyOnRails
[16:33:54] superlou: has joined #RubyOnRails
[16:34:02] Uranio: has joined #RubyOnRails
[16:35:18] arup_r: has joined #RubyOnRails
[16:38:08] rfscott: has joined #RubyOnRails
[16:38:57] mhib: has joined #RubyOnRails
[16:39:15] null__: has joined #RubyOnRails
[16:39:16] null__: has joined #RubyOnRails
[16:39:34] naftilos76: has joined #RubyOnRails
[16:45:31] jacaballero_: has joined #RubyOnRails
[16:46:28] FailBit: https://i.imgur.com/W6V02bf.png
[16:46:32] bmalum: has joined #RubyOnRails
[16:47:44] roxtrongo: has joined #RubyOnRails
[16:48:20] Zamerick: has joined #RubyOnRails
[16:48:52] null__: has joined #RubyOnRails
[16:48:53] null__: has joined #RubyOnRails
[16:48:55] nullwarp: has joined #RubyOnRails
[16:49:53] Cervajz__: has joined #RubyOnRails
[16:50:12] solars: has joined #RubyOnRails
[16:50:18] adaedra: swapped memory?
[16:51:10] arBmind: has joined #RubyOnRails
[16:51:17] FailBit: no swap usage
[16:51:30] FailBit: it's shown as high as 235GB before
[16:51:40] FailBit: which is almost double what the server has
[16:52:17] FailBit: but it doesn't really go above 60GB physical usage
[16:53:00] FailBit: see it just went up
[16:53:06] FailBit: https://i.imgur.com/U0OVmEO.pnghttps://i.imgur.com/U0OVmEO.png
[16:53:11] FailBit: https://i.imgur.com/U0OVmEO.png
[16:53:46] adaedra: Maybe cache or other type of memory that is reported on your process list and not the global graph, I don't know.
[16:57:12] skiz: has joined #RubyOnRails
[16:57:55] shibabu: has joined #RubyOnRails
[16:58:30] jhass: yeah, probably RES vs VIRT
[16:58:37] jhass: especially for postgres that makes sense
[17:01:30] ibouvousaime: has joined #RubyOnRails
[17:04:39] freezevee: has joined #RubyOnRails
[17:04:44] bruno-: has joined #RubyOnRails
[17:04:45] yardenbar: has joined #RubyOnRails
[17:06:45] qejk: has joined #RubyOnRails
[17:09:55] Lightsword: has joined #RubyOnRails
[17:10:00] greengriminal: has joined #RubyOnRails
[17:10:13] tuelz: has joined #RubyOnRails
[17:10:20] jacaballero: has joined #RubyOnRails
[17:13:21] annlewis: has joined #RubyOnRails
[17:14:16] rgtk: has joined #RubyOnRails
[17:15:15] bruno-: has joined #RubyOnRails
[17:16:38] herpless: has joined #RubyOnRails
[17:17:24] bmalum: has joined #RubyOnRails
[17:19:33] Cervajz: has joined #RubyOnRails
[17:20:21] User458764: has joined #RubyOnRails
[17:21:38] Tref: has joined #RubyOnRails
[17:21:45] EminenceHC: has joined #RubyOnRails
[17:22:08] kp666: has joined #RubyOnRails
[17:23:45] smathy: has joined #RubyOnRails
[17:26:34] Eminence_: has joined #RubyOnRails
[17:28:58] davidbitton: has joined #RubyOnRails
[17:29:52] elcontrastador: How do I pull all records from Model1 sorted by one or more columns in Model1's belongs_to DiffModel_1?
[17:31:32] krumelmonster: has joined #RubyOnRails
[17:31:54] pawnbox: has joined #RubyOnRails
[17:33:41] tuelz: has joined #RubyOnRails
[17:37:53] bmalum: has joined #RubyOnRails
[17:42:07] veg: has joined #RubyOnRails
[17:42:21] null__: has joined #RubyOnRails
[17:42:21] null__: has joined #RubyOnRails
[17:42:58] nullwarp: has joined #RubyOnRails
[17:43:24] rodfersou: has joined #RubyOnRails
[17:45:35] BlackCoyote: has joined #RubyOnRails
[17:46:00] bruno-: has joined #RubyOnRails
[17:46:09] darrencauthon: has joined #RubyOnRails
[17:47:50] Macaveli: has joined #RubyOnRails
[17:49:52] mikeharris22: has joined #RubyOnRails
[17:51:21] stannard: has joined #RubyOnRails
[17:52:44] mrtomme: has joined #RubyOnRails
[17:54:06] FailBit: https://i.imgur.com/kbLLidl.png
[17:54:07] FailBit: what the hell is this?
[17:54:16] FailBit: when googling the query I get stuff about database adapters
[17:55:07] bocaj: has joined #RubyOnRails
[17:58:30] fedexo: has joined #RubyOnRails
[17:59:30] annlewis: has joined #RubyOnRails
[17:59:59] shibabu: has joined #RubyOnRails
[18:00:26] annlewis: has joined #RubyOnRails
[18:01:26] bruno-: has joined #RubyOnRails
[18:03:23] nogic: has joined #RubyOnRails
[18:03:53] martinn: has joined #RubyOnRails
[18:04:25] Macaveli: has joined #RubyOnRails
[18:05:37] Macaveli: Did you guys upgrade to OS x Capitain yet?
[18:06:29] tvw: has joined #RubyOnRails
[18:08:27] adaedra: I'm under it. Have a question?
[18:09:57] davidbitton: has joined #RubyOnRails
[18:10:42] Papierkorb: adaedra: Do you get a bottle of Cptn Morgan when updating?
[18:11:35] adaedra: Which is a good thing, since I don't drink alcohol, it would have been wasted.
[18:11:53] bruno-: has joined #RubyOnRails
[18:12:06] martinn: ACTION waves to the channel
[18:12:56] FailBit: ACTION breaks the lawl
[18:13:01] FailBit: anyone know what's up with that query I showed earlier
[18:13:32] Papierkorb: FailBit: looks like a query for gathering runtime information from the DBMS?
[18:13:58] FailBit: but why is it _there_
[18:14:05] FailBit: why am I paying 8ms every pageload for it
[18:14:11] ibouvousaime: has joined #RubyOnRails
[18:14:14] mices: FailBit: what's the story with _links.html.erb in devise
[18:14:16] martinn: I did get a bottle
[18:14:35] FailBit: mices: links to registration/reset/sessions pages
[18:14:55] FailBit: https://github.com/liamwhite/litebooru/blob/master/app/views/devise/shared/_links.html.slim
[18:15:38] shibabu: has joined #RubyOnRails
[18:15:47] mices: FailBit: when i pointed my browser to /users/sign_in i get an error undefined method 'new_confirmation_path'
[18:16:10] corioliss: has joined #RubyOnRails
[18:16:39] FailBit: does /users/sign_up work?
[18:16:54] mices: no it returns that error
[18:17:23] mices: how are all these links in one file rendered individually when needed?
[18:17:37] FailBit: through the use of if statements
[18:18:12] FailBit: anyway, new_confirmation_path means that you have routes missing
[18:18:27] mices: so ruby recognizes all those paths as valid except for new_confirmation_path
[18:19:08] mices: i guess not, i guess it just halted on the first error
[18:19:28] FailBit: I infact get
[18:19:30] FailBit: new_user_confirmation_path
[18:19:33] FailBit: so try changing it to that
[18:19:55] mices: when i place devise_for in my controller shouldn't it create all the routes, because you said i was missing a route
[18:20:33] rhizome: in your controller?
[18:20:35] mices: lemme try killing spring and restarting the server and see if it makes a difference before i edit
[18:20:47] mices: rhizome: in this case in my users controller
[18:21:13] slash_nick: mices: rhizome's pointing out that you don't add routes in your controllers
[18:21:42] slash_nick: devise_for :users goes in your routes.rb file, mices
[18:21:55] mices: i know that, i'm saying when i added devise_for to my model it should have created all of devises' necessary routes no?
[18:22:03] FailBit: generate devise views, then change new_confirmation to new_user_confirmation_path in your local links.html.erb
[18:22:08] rhizome: are you serious
[18:22:13] slash_nick: mices: also no... adding xyz to your models will not affect your routes
[18:22:19] slash_nick: devise_for :users goes in your routes.rb file, mices
[18:22:27] bruno-: has joined #RubyOnRails
[18:22:28] mices: slash_nick: o ok ty
[18:22:36] annlewis: has joined #RubyOnRails
[18:23:06] FailBit: actually, you guys are wrong
[18:23:12] mices: sorry, it's in my routes yes, let me try restarting the server
[18:23:13] FailBit: xyz in models can absolutely affect the routes
[18:23:25] FailBit: in this case, it is magic behind the scenes of devise_for
[18:23:37] mices: i was going by memory from last night heh
[18:23:56] FailBit: and if your devise model is user
[18:24:03] FailBit: then the route helper is new_user_confirmation_path
[18:24:07] FailBit: not new_confirmation_path
[18:24:19] slash_nick: mices: you're getting undefined method... not no such route... can you gist your error and the output of `rake routes`, mices?
[18:24:30] FailBit: slash_nick: incorrect
[18:24:39] FailBit: mices: don't do that.
[18:24:45] FailBit: you don't have to gist your error.
[18:24:59] FailBit: undefined method for a route helper is correct... when the route doesn't exist.
[18:25:28] slash_nick: ACTION shrugs...
[18:26:01] FailBit: what you have to do to get confirmable working is very simple if you follow directions
[18:26:12] FailBit: $ rails g devise:views
[18:26:34] FailBit: edit app/views/devise/shared/_links.html.erb
[18:26:48] FailBit: change new_confirmation_path to new_user_confirmation_path
[18:26:52] FailBit: save, and you should be set
[18:27:34] krumelmonster1: has joined #RubyOnRails
[18:27:41] mices: FaiBit: yes, i did that last night by following the instructions here: https://github.com/plataformatec/devise/wiki/How-To%3a-Upgrade-to-Devise-2.0-migration-schema-style#after
[18:27:54] mices: it works, i just needed to restart the server, the route was there
[18:27:59] FailBit: okay, cool
[18:28:06] mices: now i got my sign_in form
[18:28:30] mices: shouldn't they have confirmations by default
[18:28:47] FailBit: perhaps, but I see increasing numbers of sites that don't care if the email is valid
[18:28:54] bradleyprice: has joined #RubyOnRails
[18:29:14] FailBit: plus, you can always work aroudn that with services like 10minutemail
[18:29:22] FailBit: so what's the point?
[18:29:26] mices: probably because they sell the email addresses and don't wanna know if they're not valid to insulate themselves from lawsuits
[18:29:56] FailBit: the email addresses generated by 10minutemail will be invalid in 10 minutes.
[18:31:28] mices: much prefer properly setup devise to workarounds
[18:31:54] mices: i wish i knew i had to specify confirmations when i did my orig install of devise
[18:32:11] mices: but it's the solution i was looking (at this stage)
[18:32:51] mices: remember i was asking about using git commit to save my raw code for signups, logins, password resets
[18:33:01] mices: this is much more
[18:33:07] mag42c: has joined #RubyOnRails
[18:33:38] FailBit: it's also tested
[18:33:45] FailBit: so you don't have to worry about having severe bugs in your code
[18:34:18] mices: they can build on it with infinite modules
[18:34:30] mices: i'd like to grab a discussion forums module
[18:35:07] mices: the writings on the wall don't write anything from scratch until you're sure there's nothing already written
[18:35:14] mices: i learned my lesson yesterday
[18:35:26] mices: after following that tutorial for 3 days
[18:35:26] roxtrongo: has joined #RubyOnRails
[18:35:34] slash_nick: mices: there's forem... among others.
[18:35:41] mices: from who?
[18:35:48] FailBit: forem is by Radar
[18:35:57] mices: o i see, forem not forum heh
[18:36:03] mices: oh wow cool
[18:36:10] slash_nick: good morning radar!
[18:37:05] mices: when you say among others where would i find the others
[18:37:11] FailBit: google "rails forum"
[18:37:38] slash_nick: mices: therubytoolbox is a good place to look
[18:37:54] njero: has joined #RubyOnRails
[18:38:28] mices: stuff that works with devise explicitly?
[18:39:23] Ergo: has joined #RubyOnRails
[18:40:51] slash_nick: mices: probably... it's pretty likely whatever you find will work with devise.
[18:41:13] meoblast001: has joined #RubyOnRails
[18:41:54] Cache_Money: has joined #RubyOnRails
[18:43:23] StarBreaker: has joined #RubyOnRails
[18:43:58] tstark: has joined #RubyOnRails
[18:43:59] capin: also ruby gems is a good place to look
[18:44:28] jimbeaudoin: has joined #RubyOnRails
[18:45:30] blackmesa: has joined #RubyOnRails
[18:46:31] mikeharris22: has joined #RubyOnRails
[18:47:42] StarBreaker: Is anyone taking part in Rails Rumble next week?
[18:47:43] darrencauthon: has joined #RubyOnRails
[18:47:58] bruno-: has joined #RubyOnRails
[18:47:59] mices: slash_nick: yea, ty
[18:48:08] mices: mailcatcher not working
[18:48:33] mices: when i visit localhost:1080 i get unable to establish connection to server
[18:50:53] Siyo: has joined #RubyOnRails
[18:50:53] Siyo: has joined #RubyOnRails
[18:51:38] mices: i guess i have to disable sendmail and restart the server
[18:53:06] grotewold: has joined #RubyOnRails
[18:55:51] StarBreaker: has joined #RubyOnRails
[18:57:40] Starbrea_: has joined #RubyOnRails
[18:58:25] rickmasta: has joined #RubyOnRails
[18:58:32] DiCablo: has joined #RubyOnRails
[18:59:02] apotry: has joined #RubyOnRails
[19:00:50] ibouvousaime: has joined #RubyOnRails
[19:01:38] bricker: has joined #RubyOnRails
[19:02:42] mikeharris22: has joined #RubyOnRails
[19:03:05] mices: didn't help, mailcatcher's not working
[19:03:22] mices: am i on the right port
[19:03:46] jahbrewski: has joined #RubyOnRails
[19:03:58] skiz: has joined #RubyOnRails
[19:05:54] jfabre: has joined #RubyOnRails
[19:06:46] arup_r: mices: how did you start the mailcather ?
[19:07:33] mices: just ran mailcatcher
[19:07:53] mices: just ran `mailcatcher`
[19:08:38] mices: i'm trying to connect http via 1080
[19:08:57] mices: i tried shutting down sendmail, pop and webrick didn't help
[19:09:14] ElFerna: has joined #RubyOnRails
[19:10:05] arooni: has joined #RubyOnRails
[19:11:17] StarBreaker: has joined #RubyOnRails
[19:13:13] ibouvousaime_: has joined #RubyOnRails
[19:13:27] mices: should mailcatcher work out of the box?
[19:13:35] rhizome: what do you need mailcatcher for?
[19:13:48] mices: hmm good point
[19:14:01] mices: i can send the emails to my real gmail address i guess
[19:14:19] mices: thanks rhizome, you helped me think
[19:14:25] martinn: has left #RubyOnRails: ()
[19:14:28] rhizome: use an interceptor
[19:14:38] martinn: has joined #RubyOnRails
[19:15:09] mices: i dunno, i like previews very much i expected mailcatcher to work just the same
[19:15:32] mices: rails mailer test previews
[19:15:39] mices: actionmailer test
[19:16:54] User458764: has joined #RubyOnRails
[19:18:05] hyp3rkyd: has joined #RubyOnRails
[19:18:07] mices: maybe that was the problem i still had mail delivery set to test in environments/test.rb
[19:18:13] mices: i set it back to smtp
[19:18:13] freezevee: has joined #RubyOnRails
[19:23:14] mikeharris22: has joined #RubyOnRails
[19:24:41] blackmesa: has joined #RubyOnRails
[19:28:29] Uranio: has joined #RubyOnRails
[19:29:20] annlewis: has joined #RubyOnRails
[19:30:42] EminenceHC: has joined #RubyOnRails
[19:31:03] nullwarp: has joined #RubyOnRails
[19:32:31] mag42c: has joined #RubyOnRails
[19:33:53] TheMoonMaster: has joined #RubyOnRails
[19:34:48] sarink: has joined #RubyOnRails
[19:35:09] northfurr: has joined #RubyOnRails
[19:37:48] northfurr: After creating a new rails 4 app using postgres, what are the correct commands to run to get the databases up and running? I???m a bit confused by postgresql tbh
[19:38:59] SteenJobs: has joined #RubyOnRails
[19:39:30] weaksauce: northfurr does the user in database.yml have db creation rights?
[19:39:32] capin: northfurr: if your on OS X, this could be worth a read, http://blog.willj.net/2011/05/31/setting-up-postgresql-for-ruby-on-rails-development-on-os-x/
[19:39:39] user083: has joined #RubyOnRails
[19:40:14] iamse7en: has joined #RubyOnRails
[19:42:25] EminenceHC: has joined #RubyOnRails
[19:42:29] user083: How can i upload files other than images with the Paper clip gem?
[19:43:38] Uranio: has joined #RubyOnRails
[19:43:41] user083: the content type checking fails for most file types other than images.
[19:43:45] x-light: has joined #RubyOnRails
[19:45:40] gaussblurinc1: has joined #RubyOnRails
[19:46:18] weaksauce: gist your model user083?
[19:46:25] justinweiss: has joined #RubyOnRails
[19:48:29] darrencauthon: has joined #RubyOnRails
[19:48:40] kp666: has joined #RubyOnRails
[19:48:54] yfeldblum: has joined #RubyOnRails
[19:54:35] DiCablo: has joined #RubyOnRails
[19:54:35] hyp3rkyd: has joined #RubyOnRails
[19:54:45] user083: weaksauce: https://gist.github.com/0a4bb8406517fa064efa
[19:54:52] freezevee: has joined #RubyOnRails
[19:57:24] user083: it also fails when i upload a zip file
[19:59:16] rhizome: step 1 is probably to name the attachment something other than "image"
[19:59:55] jessemcgilallen: has joined #RubyOnRails
[20:00:05] northfurr: Well I???m able to get WEBrick up and running by using Postgresql, but I feel like I???m doing it incorrectly. I run ???rails new appname ???database=postgresql??? and then try to start the app using WEBrick and get the error message ???FATAL: role appname does not exist. Then I read somewhere to enter ???rake db:create:all???, which gives me an error stating: ???Couldn???t create database for {???adapter???=>???postgresql?????????}. After
[20:00:05] northfurr: running it i am able to run WEBrick and see the rails starter page though.
[20:00:55] user083: rhizome: do you think it is creating a conflict?
[20:01:37] rhizome: no, but if that attachment's purpose is beyond being an image, for clarity's sake....
[20:01:58] DiCablo: hello guys I guess I have a problem with a devise gem
[20:02:31] user083: rhizome: Images are just the most common thing i am storing so i named it image.
[20:03:41] Trynemjoel: has joined #RubyOnRails
[20:04:24] rhizome: well, check your logs
[20:04:41] FCser: has joined #RubyOnRails
[20:04:44] banister: has joined #RubyOnRails
[20:05:13] null__: has joined #RubyOnRails
[20:05:13] null__: has joined #RubyOnRails
[20:06:19] cswelin: has joined #RubyOnRails
[20:07:16] user083: I get an error like this: https://gist.github.com/anonymous/861351572fd22ea29806
[20:07:31] Cervajz_: has joined #RubyOnRails
[20:07:33] FelipeBHZ: has joined #RubyOnRails
[20:07:58] DiCablo: ok my problem with devise is when i have added this http://pastie.org/private/avlisexcgkxbuhp9u6ajca to application.html.erb and when i restart my server and reload my page it doesnt show anything
[20:08:06] unreal_: has joined #RubyOnRails
[20:08:12] Motoservo: has joined #RubyOnRails
[20:08:20] rhizome: Paperclip::Errors::NotIdentifiedByImageMagickError
[20:09:21] user083: rhizome: yes that is the error that i get i have searched for that a lot, have not found a solution.
[20:09:28] Cervajz_: has joined #RubyOnRails
[20:09:42] weaksauce: user083 webm might not be something that imagemagic can handle?
[20:09:52] rhizome: well, you probably want to keep non-images away from imagemagick
[20:11:29] weaksauce: user083 put puts staements before and after line 53. I think that's where it's failing
[20:11:43] rgrmatt: has joined #RubyOnRails
[20:12:51] user083: I fixed it for certian non image types with this in the model: https://gist.github.com/anonymous/a5c7a5490599225c7ee2
[20:13:42] Trynemjoel: has joined #RubyOnRails
[20:13:58] arup_r: DiCablo: Show the rails server log which is generated when you are reloading the page
[20:14:26] ivanskie: has joined #RubyOnRails
[20:14:59] FailBit: DiCablo: that's because you aren't outputting them!
[20:15:17] FailBit: if you want to output something in the ERB buffer, use <%= func %>
[20:15:21] P0w3r3d: has joined #RubyOnRails
[20:15:44] DiCablo: oh it works now
[20:15:50] DiCablo: and thanks :)
[20:15:56] arup_r: I missed <%= ...
[20:15:59] FailBit: https://paste.debian.net/plainh/7e4b07f0
[20:16:01] arup_r: DiCablo: :(
[20:16:06] DiCablo: ACTION is still a noob :P
[20:16:11] arup_r: I know know
[20:16:22] northfurr: has joined #RubyOnRails
[20:16:43] FailBit: https://paste.debian.net/plainh/76dbd80a
[20:17:22] DiCablo: thank you FailBit
[20:17:31] FailBit: also, in the interest of DRY-ness, since the <ul> is part of both conditions, you should nest the if statement within them
[20:18:07] FailBit: https://paste.debian.net/plainh/7dc74ea0
[20:19:51] northfurr: has joined #RubyOnRails
[20:19:54] skiz: has joined #RubyOnRails
[20:20:35] tvon: has joined #RubyOnRails
[20:22:38] tvon: has joined #RubyOnRails
[20:24:30] rhizome: <%= render user_signed_in? ? 'nav_logged_in' : 'nav_logged_out' %>
[20:25:00] seank_: has joined #RubyOnRails
[20:25:32] FailBit: I would use parentheses.
[20:25:41] FailBit: <%= render(user_signed_in? ? 'nav_logged_in' : 'nav_logged_out') %>
[20:26:01] FailBit: ruby syntax is butt
[20:27:31] tectonic: has joined #RubyOnRails
[20:27:51] rhizome: render_nav(user_signed_in?)
[20:29:56] annlewis: has joined #RubyOnRails
[20:34:55] Radar: good morning slash_nick
[20:35:09] Radar: good morning everyone else
[20:35:19] FailBit: GOOD MORNING
[20:35:21] FailBit: I mean good afternoon
[20:36:41] neruda: has joined #RubyOnRails
[20:37:30] neruda: I would like to validate the presence of all model fields as succintly as possible, is it possible to simply write "validates_presence_of Model.*" or something similar
[20:37:43] rubyonrailed: has joined #RubyOnRails
[20:38:07] mxrguspxrt: has joined #RubyOnRails
[20:38:29] arup_r: neruda: validates_presence_of *Model.column_names*
[20:38:33] arup_r: neruda: validates_presence_of *Model.column_names
[20:38:50] [BNC]Quodpipax: has joined #RubyOnRails
[20:38:56] arup_r: neruda: validates_presence_of *self.column_names
[20:39:04] rgrmatt: has joined #RubyOnRails
[20:39:31] neruda: excellent, what does the asterisk at the front mean?
[20:39:53] arup_r: it is a splat operator in Ruby
[20:40:11] neruda: i thought splat was for "soaking up" variable parameters
[20:40:12] FailBit: it turns an array into arguments for a function
[20:40:17] FailBit: and viceversa
[20:40:53] northfurr: has joined #RubyOnRails
[20:41:02] FailBit: there is also a double-splat, for keyword-args
[20:41:17] FailBit: https://stackoverflow.com/questions/18289152/what-does-a-double-splat-operator-do
[20:41:48] Quodpipax: has joined #RubyOnRails
[20:42:01] Radar: I suspect that will end up blowing up in your face.
[20:42:11] Radar: Best to be explicit about what columns specifically you want to verify the presence of.
[20:42:23] Radar: Rails has enough magical code. You don't need to write more :)
[20:42:58] FailBit: half of rails is literally witchcraft
[20:43:12] ddv: arup_r, don't use validates_presence_of but validates, read the ruby on rails styleguide
[20:43:13] Radar: Hoping to dispell that with Deep Dive Rails ;)
[20:43:21] Radar: http://leanpub.com/ddr/
[20:43:43] Radar: Hoping to have MTWR finished by the end of the year and then I'll take a break and then in the new year continue working on DDR. Probably targeting Rails 5 for that, too.
[20:43:45] ddv: arup_r, https://github.com/bbatsov/rails-style-guide#sexy-validations
[20:43:46] FailBit: I mean like
[20:43:49] FailBit: it does things with ruby
[20:44:02] FailBit: that nobody sane would even think of
[20:44:05] Quodpipax: has left #RubyOnRails: ()
[20:44:23] FailBit: it's not what it does
[20:44:25] FailBit: it's how it does it
[20:44:34] arup_r: ddv: What that is bad .. :(
[20:44:41] arup_r: I do use a lot..
[20:45:09] FailBit: ActiveSupport::Concern is my main gripe
[20:45:09] ddv: arup_r, time to a project wide search/replace then
[20:46:25] northfurr: has joined #RubyOnRails
[20:47:28] Radar: p.s. having control over all the tooling for writing a tech book is really amazing :D
[20:47:53] Radar: Double-edged a bit though: I spend probably too much of my "writing time" improving the Rails app
[20:48:56] rhizome: read "the mythical man month" and that will probably make a bit more sense
[20:49:14] darrencauthon: has joined #RubyOnRails
[20:49:23] mxrguspxrt: has joined #RubyOnRails
[20:49:43] User458764: has joined #RubyOnRails
[20:50:51] cac: has joined #RubyOnRails
[20:50:58] bendangelo: has joined #RubyOnRails
[20:51:06] iamse7en: To anyone willing, have a basic "should this go in the model or controller" type of question. details here... Thank you! https://gist.github.com/anonymous/e3c307a5ca9dda1cb72a
[20:53:44] rhizome: iamse7en: at least the model, but I'd receommend creating a module or class, especially if you have more of those comparison calculations
[20:55:00] iamse7en: rhizome: that is basically the only one. i get class methods confused sometimes. would it be self.matchup in the model or just matchup, then how do I access, say team_a_output variable, in the view if its in the model?
[20:55:25] Radar: What is this StoredVariable?
[20:55:44] l_tonz: has joined #RubyOnRails
[20:55:48] Radar: Seems to be doing the same thing as a constant.
[20:55:52] iamse7en: just a small table that stores some dynamic variables
[20:55:59] l_tonz: has joined #RubyOnRails
[20:56:07] Radar: plz explain code with code, not words
[20:56:15] rhizome: is all the stuff you need to do the calc in the objects themselves already?
[20:57:17] iamse7en: rhizome: yes, except the calculated variables like team_x_wp and team_x_output
[20:57:35] rhizome: what do you mean, are those inputs or outputs?
[20:58:14] bruno-: has joined #RubyOnRails
[20:58:43] iamse7en: those are outputs. what id like to show int he view. all the stuff associated with each team (like their pythag, efficiency, etc) are in my db associated with those objects
[20:59:01] kp666_: has joined #RubyOnRails
[20:59:12] crdpink: has joined #RubyOnRails
[20:59:49] stamina: has joined #RubyOnRails
[21:00:29] iamse7en: ok, so i should put in my model. that's the biggest thing. I'll play around from there. thank you
[21:00:37] tvon: has joined #RubyOnRails
[21:02:30] banister: has joined #RubyOnRails
[21:03:19] rgtk: has joined #RubyOnRails
[21:03:43] quazimodo: has joined #RubyOnRails
[21:03:49] quazimod1: has joined #RubyOnRails
[21:05:13] ibouvousaime: has joined #RubyOnRails
[21:08:24] upgrayeddd: has joined #RubyOnRails
[21:08:49] nettoweb: has joined #RubyOnRails
[21:09:21] tvon: has joined #RubyOnRails
[21:09:46] FailBit: are there known issues with rails dropping the port when doing a redirect_to?
[21:10:02] cac: has joined #RubyOnRails
[21:10:14] FailBit: or might this be a browser bug
[21:12:33] xm32x: has joined #RubyOnRails
[21:12:43] hmsimha_: has joined #RubyOnRails
[21:13:20] EminenceHC: has joined #RubyOnRails
[21:13:25] yfeldblum: has joined #RubyOnRails
[21:15:52] prereflect: has joined #RubyOnRails
[21:16:21] cac: has joined #RubyOnRails
[21:18:41] MartinElvar: has joined #RubyOnRails
[21:20:39] ur5us: has joined #RubyOnRails
[21:23:03] armyriad: has joined #RubyOnRails
[21:23:18] davidbitton: has joined #RubyOnRails
[21:24:41] Eminence_: has joined #RubyOnRails
[21:25:19] blackmes1: has joined #RubyOnRails
[21:28:51] njero: has joined #RubyOnRails
[21:30:40] DiCablo: has joined #RubyOnRails
[21:30:43] annlewis: has joined #RubyOnRails
[21:31:20] DLSteve: has joined #RubyOnRails
[21:34:55] ivanskie: has joined #RubyOnRails
[21:35:27] rgrmatt: has joined #RubyOnRails
[21:38:27] rubyonrailed: has joined #RubyOnRails
[21:39:45] TheNet: has joined #RubyOnRails
[21:40:37] mheld: has joined #RubyOnRails
[21:42:47] hardtail: has joined #RubyOnRails
[21:44:51] run_kmc: has joined #RubyOnRails
[21:46:30] l_tonz: has joined #RubyOnRails
[21:49:01] hardtail: How is everyone?
[21:49:56] darrencauthon: has joined #RubyOnRails
[21:53:11] blackmes1: has joined #RubyOnRails
[21:54:32] DiCablo: Hardtail not bad and you?
[21:55:02] davidbitton: has joined #RubyOnRails
[21:55:47] njero: has joined #RubyOnRails
[21:55:52] hardtail: Pretty good. Thanks for asking. Just organizing a few things for one of my school projects.
[21:59:17] bruno-: has joined #RubyOnRails
[21:59:20] Cervajz: has joined #RubyOnRails
[22:00:22] rickmasta: has joined #RubyOnRails
[22:00:44] sarink: has joined #RubyOnRails
[22:02:59] Cervajz_: has joined #RubyOnRails
[22:03:35] VeryBewitching: has joined #RubyOnRails
[22:08:23] hifriends: has joined #RubyOnRails
[22:08:34] hifriends: Im "following" along with the getting started blog app on the rails site. Im getting 'undefined method render' when doing 'render plain: params[:application].inspect' in my create method. any idea why? Im on rails 4 latest and ruby 2.0.1
[22:08:53] mloy: has joined #RubyOnRails
[22:09:47] bruno-: has joined #RubyOnRails
[22:10:45] htmldrum: has joined #RubyOnRails
[22:11:13] l_tonz: has joined #RubyOnRails
[22:12:04] smathy: hifriends, copy and paste the actual error you're getting.
[22:12:20] thams: has joined #RubyOnRails
[22:12:24] bmalum: has joined #RubyOnRails
[22:13:02] Cervajz: has joined #RubyOnRails
[22:13:47] trosborn: has joined #RubyOnRails
[22:14:57] iamse7en: has joined #RubyOnRails
[22:15:01] hifriends: smathy: https://gist.github.com/anonymous/a4ad30a661e59d37e7f5 thanks!
[22:15:15] bruno-: has joined #RubyOnRails
[22:17:09] mxrguspxrt: has joined #RubyOnRails
[22:18:41] hardtail: has joined #RubyOnRails
[22:18:42] ivanskie: has joined #RubyOnRails
[22:18:56] pydave6367: has joined #RubyOnRails
[22:19:23] bendangelo: has joined #RubyOnRails
[22:21:48] kinduff: has joined #RubyOnRails
[22:24:13] AnoHito: has joined #RubyOnRails
[22:25:39] bruno-: has joined #RubyOnRails
[22:26:01] seank_: has joined #RubyOnRails
[22:30:41] bruno-: has joined #RubyOnRails
[22:30:48] Aherin: has joined #RubyOnRails
[22:31:25] rgtk: has joined #RubyOnRails
[22:31:32] annlewis: has joined #RubyOnRails
[22:31:48] rgrmatt: has joined #RubyOnRails
[22:32:49] l_tonz: has joined #RubyOnRails
[22:32:56] m3_del: has joined #RubyOnRails
[22:33:58] mag42c: has joined #RubyOnRails
[22:34:58] notnoyyyyy: has joined #RubyOnRails
[22:35:31] towski_: has joined #RubyOnRails
[22:36:59] netzfisch: has joined #RubyOnRails
[22:37:31] marr: has joined #RubyOnRails
[22:42:15] arathald: anyone know of a placeholder service (like placehold.it) but for videos?
[22:42:48] arathald: the only one I found uses random videos from instagram, and that's kinda risky
[22:45:12] mikeharris22: has joined #RubyOnRails
[22:45:53] bruno-: has joined #RubyOnRails
[22:47:19] mices: i can't get mailcatcher working
[22:47:35] mices: it says it's running but when i point my browser to it i get unable to connect
[22:48:03] wwalker: has left #RubyOnRails: ()
[22:49:12] StarBreaker: has joined #RubyOnRails
[22:49:45] Radar: mices: which port?
[22:49:50] Radar: are you connecting on 1025 or 1080
[22:50:44] darrencauthon: has joined #RubyOnRails
[22:51:39] Radar: should be fine
[22:51:42] Radar: no idea why it's not working
[22:53:40] quazimodo: has joined #RubyOnRails
[22:53:42] quazimod1: has joined #RubyOnRails
[22:54:34] mices: what mail transfer/authorization protocol runs on 1080?
[22:54:52] Radar: None. It's the webserver that mailcatcher runs
[22:56:24] bruno-: has joined #RubyOnRails
[22:58:20] ja: holy moley, how couldn't I've found http://api.rubyonrails.org/classes/ActiveRecord/Store.html before now?!
[22:58:37] annlewis: has joined #RubyOnRails
[22:58:52] FailBit: because you were using postgres json datatypes like a good boy?
[22:59:06] FailBit: or good girl
[22:59:11] nertzy: has joined #RubyOnRails
[22:59:14] FailBit: because I know I'm going to get yelled at if I don't say that
[22:59:30] hmsimha_: has joined #RubyOnRails
[23:00:32] ivanskie: has joined #RubyOnRails
[23:01:39] sarink: has joined #RubyOnRails
[23:01:54] bruno-: has joined #RubyOnRails
[23:02:59] mag42c: has joined #RubyOnRails
[23:05:24] smathy: Hmm, another person bitten by hidden whitespace. Are they all copying from the same website/PDF/whatever?
[23:06:09] mices: Radar: i'm running mailcatcher on freebsd vbox under windows and trying to connect from my windows browser ... on the server, mailcatcher reports to be available at http://127.0.0.1:1080
[23:06:22] mices: on my windows box i'm connecting as localhost:1080
[23:06:23] Radar: I don't know, sorry mices
[23:06:24] m3_del: has joined #RubyOnRails
[23:07:04] l_tonz_: has joined #RubyOnRails
[23:07:36] m3_del: has joined #RubyOnRails
[23:08:29] maxx88: has joined #RubyOnRails
[23:13:52] capin: mices: do you have networking working between your freebsd VM, and your windows host?
[23:16:23] riotjones: has joined #RubyOnRails
[23:16:40] ElFerna: has joined #RubyOnRails
[23:17:04] rgtk: has joined #RubyOnRails
[23:17:19] bruno-: has joined #RubyOnRails
[23:17:26] aaronakorn: has joined #RubyOnRails
[23:17:36] DN404: has joined #RubyOnRails
[23:20:14] tvon: What defines/loads url helpers (foo_url, foo_path)? E.g., if I want to include it elsewhere.
[23:20:40] IFrank00: has joined #RubyOnRails
[23:21:08] nya: has joined #RubyOnRails
[23:21:44] tectonic: has joined #RubyOnRails
[23:22:28] Ropeney: has joined #RubyOnRails
[23:22:28] tvon: I think I'm looking for Rails.application.routes.url_helpers
[23:22:53] mices: capin: yes
[23:23:33] mikeharris22: has joined #RubyOnRails
[23:25:38] n1ck7: has joined #RubyOnRails
[23:26:47] htmldrum: has joined #RubyOnRails
[23:27:13] rubyonrailed: has joined #RubyOnRails
[23:27:34] Radar: tvon: config/routes.rb
[23:27:43] Radar: tvon: You're right about url_helpers
[23:28:42] hardtail: has joined #RubyOnRails
[23:29:04] fedexo: has joined #RubyOnRails
[23:30:42] l_tonz: has joined #RubyOnRails
[23:34:20] EminenceHC: has joined #RubyOnRails
[23:34:21] rickmasta: has joined #RubyOnRails
[23:35:09] maxz: has joined #RubyOnRails
[23:38:26] kinduff: has joined #RubyOnRails
[23:43:06] EminenceHC: has joined #RubyOnRails
[23:45:58] tuelz1: has joined #RubyOnRails
[23:46:21] horsecowdog: has joined #RubyOnRails
[23:47:06] seank_: has joined #RubyOnRails
[23:47:10] horsecowdog: I am having an issue with form_for. I want to do something like this <%= form_for([@document, @comment]) do |f| %>
[23:47:41] horsecowdog: However, I need to use the "as" syntax for @document.... like this... <%= form_for(@document, as: :resource) do |f| %>
[23:48:10] horsecowdog: How can I use the as syntax when passing an array to form_for?
[23:48:22] SteenJobs: has joined #RubyOnRails
[23:50:04] mices: anyone can help me figure out why i can't connect to mailcatcher
[23:51:28] darrencauthon: has joined #RubyOnRails
[23:52:37] erichu: has joined #RubyOnRails
[23:53:03] Radar: horsecowdog: did you try form_for([@document, @comment], as: :resource)?
[23:54:21] trosborn: has joined #RubyOnRails
[23:54:26] mikeharris22: has joined #RubyOnRails
[23:54:57] l_tonz: has joined #RubyOnRails
[23:58:22] sevenseacat: has joined #RubyOnRails