« Back to channel list

#RubyOnRails - 14 April 2016

« Back 1 day Forward 1 day »
[00:00:01] Sawbones: has joined #RubyOnRails
[00:00:09] Cohedrin_: has joined #RubyOnRails
[00:01:12] edwinvdgraaf: has joined #RubyOnRails
[00:01:37] Devalo: has joined #RubyOnRails
[00:03:50] emachnic: has joined #RubyOnRails
[00:07:24] roqo: has joined #RubyOnRails
[00:08:11] FailBit: has joined #RubyOnRails
[00:08:57] patrick_star: has joined #RubyOnRails
[00:09:03] FailBit: https://i.sli.mg/ubpQb0.png mfw
[00:11:15] Arcaire: FailBit: ... You're surprised?
[00:11:24] Arcaire: I always take the latter route when I can even though there's fancy helpers lol
[00:11:39] pwnd_nsfw: Less typing anyways
[00:12:00] FailBit: 100ms is surprising, yes
[00:12:40] FailBit: https://github.com/rails/rails/blob/4-2-stable/actionpack/lib/action_dispatch/routing/route_set.rb#L490
[00:12:45] FailBit: when you defeat VM cache every time
[00:12:48] Arcaire: Welcome to helpers.
[00:12:50] FailBit: 100ms is *not* surprising
[00:12:58] FailBit: polymorphism tho
[00:15:57] pwnd_nsfw: it go down in the vm
[00:15:58] GodFather: has joined #RubyOnRails
[00:16:19] FailBit: that song sucks
[00:16:34] pwnd_nsfw: it sure as hell does lmao
[00:17:16] pwnd_nsfw: Couldn't resist
[00:17:42] Sawbones: has joined #RubyOnRails
[00:19:47] dshah: has joined #RubyOnRails
[00:20:07] maxdoubt: has joined #RubyOnRails
[00:20:46] DLSteve: has joined #RubyOnRails
[00:21:22] dshah: has joined #RubyOnRails
[00:24:24] pawnbox: has joined #RubyOnRails
[00:25:00] AliasLStoRM: has joined #RubyOnRails
[00:25:12] Technodrome: has joined #RubyOnRails
[00:27:45] flashpoint9: has joined #RubyOnRails
[00:27:47] kadoppe: has joined #RubyOnRails
[00:32:06] bruno-_: has joined #RubyOnRails
[00:32:55] rake_db_migrate: has joined #RubyOnRails
[00:35:03] benlieb: has joined #RubyOnRails
[00:35:53] zpe: has joined #RubyOnRails
[00:39:50] jgt1: has joined #RubyOnRails
[00:40:50] FooMunki: has joined #RubyOnRails
[00:41:32] bob434: has joined #RubyOnRails
[00:43:39] jstransky: has joined #RubyOnRails
[00:43:49] seductiveerror_: has joined #RubyOnRails
[00:44:36] seductiveerror_: hi, is there a way to have a has_one relationship with the belongs_to half? I need to keep the two separate models decoupled and should only be related through the association
[00:45:46] DragonPunch: has joined #RubyOnRails
[00:49:49] seductiveerror_: looks like you can =]
[00:50:23] emachnic: has joined #RubyOnRails
[00:50:50] apg: has joined #RubyOnRails
[00:53:43] GodFoddar: has joined #RubyOnRails
[00:54:10] aloneintheworld: has joined #RubyOnRails
[00:54:28] pawnbox: has joined #RubyOnRails
[00:58:19] bronson: has joined #RubyOnRails
[00:58:35] seductiveerror_: second question, how do you use an engines models from within the parent app?
[00:59:50] hxegon: has joined #RubyOnRails
[01:01:15] klagid: has joined #RubyOnRails
[01:01:45] sevenseacat: has joined #RubyOnRails
[01:02:05] joshkovach: has joined #RubyOnRails
[01:04:48] Pathfinder: has joined #RubyOnRails
[01:04:57] SteenJobs: has joined #RubyOnRails
[01:06:14] dezull: has joined #RubyOnRails
[01:06:23] gavit: has joined #RubyOnRails
[01:09:07] levifig: so what are the cool kids using for production rails server these days?
[01:09:19] JakFrist: has joined #RubyOnRails
[01:09:20] levifig: nginx+unicorn? is passenger a viable option?
[01:09:35] seductiveerror_: i like passenger
[01:09:42] FailBit: I use passenger
[01:09:48] FailBit: but all the cool kids use puma
[01:09:57] FailBit: and yes, nginx as a reverse proxy
[01:10:11] levifig: puma mature enough these days?
[01:10:46] FailBit: they all conform to the rack API really tightly
[01:11:34] DoctorMonocular: has joined #RubyOnRails
[01:12:10] levifig: perfect :)
[01:12:13] levifig: thank you FailBit
[01:13:17] chouhoulis: has joined #RubyOnRails
[01:14:37] todd: has joined #RubyOnRails
[01:15:21] ornerymoose: has joined #RubyOnRails
[01:18:05] kadoppe: has joined #RubyOnRails
[01:18:10] klagid: has joined #RubyOnRails
[01:18:55] lele: has joined #RubyOnRails
[01:23:41] krz: has joined #RubyOnRails
[01:24:24] pawnbox: has joined #RubyOnRails
[01:31:15] tvon: has joined #RubyOnRails
[01:31:18] kadoppe: has joined #RubyOnRails
[01:33:45] dezull: has joined #RubyOnRails
[01:33:46] FailBit: pundit is "nice and simple," but you have to write a shit ton of authorization logic
[01:33:56] sevenseacat: pundit is awesome
[01:34:06] FailBit: and I'm not a fan of "everything should be a class" either
[01:34:22] sevenseacat: feel free to use cancancan or something else then :)
[01:34:33] pawnbox: has joined #RubyOnRails
[01:34:37] FailBit: I do like pundit for the beauty of its implementation
[01:34:44] FailBit: but it just doesn't look worth it
[01:34:54] FailBit: cancancan sucks for different reasons
[01:34:56] sevenseacat: I think it's pretty damn good
[01:44:07] FailBit: all this boilerplate, whew. cancan got more stuffing than my uncle on thanksgiving
[01:44:15] xhoy: has joined #RubyOnRails
[01:45:06] Sawbones: has joined #RubyOnRails
[01:48:04] dblessing: has joined #RubyOnRails
[01:48:45] edwinvdgraaf: has joined #RubyOnRails
[01:48:57] jhack: has joined #RubyOnRails
[01:51:16] rake_db_migrate: has joined #RubyOnRails
[01:53:42] eshea: has joined #RubyOnRails
[01:53:50] Spami: has joined #RubyOnRails
[01:54:57] pawnbox: has joined #RubyOnRails
[01:57:01] joshhbk: has joined #RubyOnRails
[01:57:03] sypheren: has joined #RubyOnRails
[01:59:18] lemur: has joined #RubyOnRails
[02:00:31] petor: has joined #RubyOnRails
[02:03:01] maxdoubt: has joined #RubyOnRails
[02:03:05] Devalo: has joined #RubyOnRails
[02:03:54] Vlatiska: has joined #RubyOnRails
[02:04:46] fedexo: has joined #RubyOnRails
[02:05:28] Vlatiska: Hello all, i have a partial for flash error where i have flash.each. But i want use flash to retain one info, how i can skip my flash[:comment] to be iterated in the each method?
[02:06:23] hxegon: has joined #RubyOnRails
[02:07:27] Ropeney: has joined #RubyOnRails
[02:08:45] amitchellbullard: has joined #RubyOnRails
[02:11:00] krz: has joined #RubyOnRails
[02:11:13] Guest4184_______: has joined #RubyOnRails
[02:11:21] Spami: has joined #RubyOnRails
[02:11:28] kadoppe: has joined #RubyOnRails
[02:12:33] Sadin: has joined #RubyOnRails
[02:12:53] yfeldblum: has joined #RubyOnRails
[02:14:10] GodFodder: has joined #RubyOnRails
[02:14:29] FailBit: AS has Hash#except
[02:16:02] emachnic: has joined #RubyOnRails
[02:17:14] diegoaguilar: has joined #RubyOnRails
[02:18:27] Sawbones: has joined #RubyOnRails
[02:22:43] tjbiddle: has joined #RubyOnRails
[02:22:53] IrishGringo: has joined #RubyOnRails
[02:23:50] twilling: has joined #RubyOnRails
[02:28:34] chagel: has joined #RubyOnRails
[02:35:53] chagel: has joined #RubyOnRails
[02:38:57] braincrash: has joined #RubyOnRails
[02:45:43] yellow5: has joined #RubyOnRails
[02:45:52] Sawbones: has joined #RubyOnRails
[02:46:03] lalalaaa: has joined #RubyOnRails
[02:46:09] FailBit: has left #RubyOnRails: ("WeeChat 0.4.2")
[02:48:50] lalalaaa: If I make a new Rails app on say Rails 3, and then change it to Rails 4.2.3 in the Gemfile and bundle install -- won't there be a ton of stray files and folders?
[02:49:11] lalalaaa: Ie. should one regenerate ones Rails app for every major release?
[02:49:33] sevenseacat: Rails provides upgrade guides for how to migrate between versions
[02:50:21] lalalaaa: sevenseacat: Is it like in OpenBSD where you can't skip versions when upgrading? Ie. to upgrade from 5.7 to 5.9, I must first upgrade to 5.8.
[02:50:39] sevenseacat: you should not skip parts of the upgrade guide, no
[02:51:45] lalalaaa: Nope, but like, say I have Rails 3 and I want to upgrade to Rails 5. Must I first upgrade to Rails 4?
[02:52:11] lalalaaa: Sorry never done this before. Generated my app in 2011 I think, and although I'm running the latest version of Rails now I'm afraid there are some redundant bits and pieces laying around.
[02:52:16] sevenseacat: yes, you must.
[02:52:32] sevenseacat: and rails 5 isnt even out yet, so upgrading to that will be pretty hard.
[02:53:06] sevenseacat: when I had a Rails 3.0 app I wanted to upgrade, I went 3.0 -> 3.1, -> 3.2, -> 4.0, -> 4.1, -> 4.2
[02:53:36] lalalaaa: Very interesting okay okay
[02:54:11] lalalaaa: Come 5.0 I'll regenerate my app then, give me a chance to clean up my messy repo :P
[02:54:30] sevenseacat: you can save some time by upgrading to the latest point releases of each minor version, eg. straight to 4.0.13 instead of 4.0.0
[02:55:03] sevenseacat: i dont see what would be gained by doing that instead of just cleaning up the repo in place
[02:56:56] lalalaaa: my repo is fine i just made a lot of messy commits back in the day (tossed totally unrelated things into one commit etc.)
[02:57:01] lalalaaa: would be nice with a fresh start :)
[02:57:52] sevenseacat: so instead of moving forward, you want to chuck *your entire app* into one commit?
[02:58:23] kadoppe: has joined #RubyOnRails
[02:58:33] lalalaaa: i get you i really do
[02:58:45] Coldblackice_: has joined #RubyOnRails
[02:59:03] lalalaaa: but no just do a lot of git commit -m "Import stylesheets", commit -m "Import models" etc.
[02:59:29] sevenseacat: all your totally unrelated models into one commit then
[02:59:40] lalalaaa: sevenseacat: good point
[02:59:53] lalalaaa: i should git commit -m based on scope
[03:00:04] lalalaaa: or whatever it's called
[03:00:11] bronson: has joined #RubyOnRails
[03:00:43] lalalaaa: https://gist.github.com/anonymous/93c7e7f6e3df9fc5207d8d709538f042 this shell script will compare your old (but updated) rails app with a freshly generated rails app to see what you're missing / should be cutting out
[03:00:49] sevenseacat: I think you should just clean up your existing app
[03:00:52] lalalaaa: too bad it never rose to fame
[03:01:03] sevenseacat: or just follow the upgrade guides
[03:01:04] lalalaaa: sevenseacat: yeah maybe so
[03:02:17] GodFather: has joined #RubyOnRails
[03:03:32] rafaelfranca: has joined #RubyOnRails
[03:03:41] sevenseacat: believe me, its a good feeling cleaning up old cruft
[03:03:43] rafaelfranca: has joined #RubyOnRails
[03:05:25] lalalaaa: sevenseacat: it really really is
[03:05:46] lalalaaa: affects the brain in such calm soothing way
[03:06:13] lalalaaa: maybe gonna try modafinil to make me get even more things done
[03:07:51] zeel: has joined #RubyOnRails
[03:10:49] chouhoulis: has joined #RubyOnRails
[03:10:58] flashpoint9: has joined #RubyOnRails
[03:11:02] lalalaaa: sevenseacat: it's harmless and doesn't last forever. once it doesn't work anymore, your brain will already know how to act smarter.
[03:11:23] lalalaaa: i probably wont try it but it seems fascinating
[03:11:30] lalalaaa: could finish my app in 10 min :P
[03:11:45] sevenseacat: okay. i don't know how we got onto the topic of drugs from upgrading rails apps, but its not something I'd recommend.
[03:12:34] lalalaaa: nah just heard some talk of a lot of rails devs using it
[03:12:38] lalalaaa: ill return to topic
[03:13:16] FLeiXiuS`: smathy_afk, <3 I appologize about earlier had someone come to the door.
[03:13:24] lalalaaa: anybody seen this when running rails server? /usr/local/lib/ruby/gems/2.2/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'rmagick'. (Bundler::GemRequireError)
[03:13:27] seductiveerror_: does has_one require a belongs_to for something like user.products to work?
[03:13:36] lalalaaa: IIRC RMagick changed name to rmagick recently.
[03:13:48] sevenseacat: seductiveerror_: that implies a has_many, not a has_one or a belongs_to
[03:13:51] Radar: lalalaaa: what's the rest of the stacktrace?
[03:14:48] seductiveerror_: sevenseacat so how do I associate a table unidirectionally?
[03:14:55] braincrash: has joined #RubyOnRails
[03:15:29] lalalaaa: Radar: https://gist.github.com/anonymous/b20428175c608fc523641ccf3a62eb5d
[03:15:49] Radar: lalalaaa: Gemfile please.
[03:15:56] FLeiXiuS`: smathy_afk, The issue I had was loading a Hash via a yaml file. What i needed was Hash.symbolize_keys.
[03:16:07] seductiveerror_: lemme backtrack, im trying to create an association table by the logs but I do not want to place a has_one in the second model
[03:16:12] Radar: FLeiXiuS_: Or access the keys from the hash as a string.
[03:17:11] sevenseacat: seductiveerror_: you may have to explain your problem a little better, perhalps with some code
[03:17:19] FooMunki: has left #RubyOnRails: ()
[03:17:31] sevenseacat: there isnt really any issue with creating bi-directional associations
[03:17:32] lalalaaa: Radar: gem "rmagick" suffice?
[03:17:49] Radar: lalalaaa: seems fine
[03:17:54] Radar: lalalaaa: no idea what could be happening
[03:17:55] FLeiXiuS`: Radar, I was passing them in to a foo(*args) method and it did not accept the strings as parameters.
[03:18:06] Radar: FLeiXiuS_: foo(**args)?
[03:18:08] lalalaaa: odd, thanks Radar
[03:18:30] sevenseacat: lalalaaa: you have that in the Gemfile, or you're asking if you should add that to the Gemfile? please be more clear
[03:18:36] FLeiXiuS`: Radar, Just *args. It was a 3rd party lib.
[03:18:40] Radar: sevenseacat: has it in the Gemfile
[03:18:43] lalalaaa: sevenseacat: That is what I have in my Gemfile
[03:18:46] barajasfab: has joined #RubyOnRails
[03:18:51] sevenseacat: lalalaaa: please gist your Gemfile
[03:18:51] lalalaaa: Used to be gem "RMagick" i believe
[03:18:54] seductiveerror_: sevenseacat, lemme gist, but to simplify matters. I have a general user model in an engine, that has a column dictating role. for a particular role, "siteUser" I want to allow association between a purchase. however, because the model is general, I can't apply the belongs_to as that wouldnot make since
[03:19:05] lalalaaa: sevenseacat: its HUGE
[03:19:08] seductiveerror_: sevenseacat I could just subclass out instead of the role column...I guess
[03:19:11] bronson: has joined #RubyOnRails
[03:19:27] sevenseacat: seductiveerror_: perhaps with some code
[03:19:30] hxegon: has joined #RubyOnRails
[03:19:38] sevenseacat: one day people will start listening when i ask for code
[03:19:50] Radar: lalalaaa: Do you have the imagemagick packages installed? That's one way that I can think that it wouldn't be able to be installed.
[03:20:05] Radar: seductiveerror: !rule0
[03:20:05] helpa: seductiveerror: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[03:20:16] Radar: seductiveerror: As it says in the topic + welcome message: please follow the channel rules.
[03:20:17] lalalaaa: Radar: Yes sir, I always install ImageMagick before rmagick.
[03:20:42] Radar: lalalaaa: works on my machine
[03:20:49] Radar: lalalaaa: !consultant
[03:20:49] helpa: lalalaaa: Your question, problem, and/or attitude requires more than free internet advice from an irc channel. May I suggest hiring a consultant or life coach?
[03:21:31] seductiveerror_: sevenseacat I think in some cases it doesnt help, as the question is general enough that I could have asked it without having code written, ie conceptual. lemme get a gist
[03:21:42] sevenseacat: suit yourself.
[03:21:45] sevenseacat: both of you. :)
[03:22:30] Radar: seductiveerror_: Please don't debate the rules with ops of the channel. It does not end well for anyone.
[03:22:54] Radar: " I think in some cases it doesnt help," sure as shit sounds like you're questioning it, at least.
[03:23:07] sevenseacat: I don't ask for code if I think it would be useless to provide it
[03:23:07] Radar: Let's just follow the instructions from people who are trying to help, yeah?
[03:23:24] sevenseacat: why would I waste everyone's time like that? given I have my own work to do
[03:23:48] seductiveerror_: some cases, does not mean all. the rule is a great one but if I ask "how to implement X" and I have no code written because I'm asking more conceptual questions regarding rails capabilities itself why would I already have something writteN?
[03:24:38] sevenseacat: but you do have code written
[03:24:47] sevenseacat: so why are you still talking
[03:25:02] Radar: +q seductiveerror_!*@*
[03:25:06] Radar: Less qq, more pew pew.
[03:25:08] Radar: 15 minute time out.
[03:25:22] Radar: Three times you got asked to post code, and you didn't. That's breaking Rule 0 of the channel.
[03:25:25] kadoppe: has joined #RubyOnRails
[03:25:38] FLeiXiuS`: Shots fired.
[03:25:40] Radar: seductiveerror_: Please familiarise yourself again with the rules of the channel: https://gist.github.com/radar/996779
[03:27:21] lalalaaa: FLeiXiuS_: looks like he just missed the rail ;)
[03:27:52] lalalaaa: ref. Just Missed The Rail - High Ceilings: https://www.youtube.com/watch?v=kn7a7gZW0SE
[03:28:00] lalalaaa: so many rails related songs these days
[03:28:20] lalalaaa: anyway I gotta be out of here. Big ups to Bigg and Rebecca!
[03:29:05] jenrzzz: has joined #RubyOnRails
[03:31:00] kadoppe: has joined #RubyOnRails
[03:34:30] FLeiXiuS`: Fetched 14.6 MB in 3min 10s (76.8 kB/s
[03:34:39] FLeiXiuS`: What is this....
[03:35:27] Radar: FLeiXiuS_: Oh you're in AU too?
[03:35:34] sevenseacat: australian internet?
[03:35:48] Arcaire: Canadian internet is worse.
[03:35:58] Arcaire: 60GB data cap what what
[03:36:10] FLeiXiuS`: Radar, Right, longest download of my life.
[03:36:13] sevenseacat: its hilarious to watch americans try to use the internet in Australia when they visit
[03:36:41] Arcaire: tfw i have 1.5-3MB/sec download speeds and unlimited data.
[03:36:50] sevenseacat: "you mean it takes *this long* every
[03:36:50] edwinvdgraaf: has joined #RubyOnRails
[03:36:54] Arcaire: i pay $60/mo for it too
[03:36:59] sevenseacat: time you visit Github, or bundle?" "yep"
[03:37:12] Arcaire: is the worst
[03:37:16] sevenseacat: dont even get me started on npm
[03:37:20] Arcaire: you know how gem install only visits rubygems.org once?
[03:37:23] Arcaire: npm does that for EVERY
[03:37:26] Arcaire: AND LIBRARY
[03:37:38] Arcaire: and does the same fucking actions over and over again
[03:37:43] sevenseacat: rubygems and bundler have gotten a lot better in recent times
[03:37:49] Arcaire: >get package list
[03:37:52] Arcaire: >get version list for package
[03:37:54] Arcaire: >pull package
[03:37:55] FLeiXiuS`: I'm surprised most aussies dont setup local proxies for half of that stuff.
[03:37:57] sevenseacat: it used to be a case of `bundle` *go get coffee
[03:37:59] Radar: Arcaire: It works fine for the Americans who maintain it.
[03:38:00] Arcaire: FLeiXiuS_: we do
[03:38:17] sevenseacat: *come back* oh its still resolving dependencies ;_;
[03:38:18] Arcaire: Radar: That's because the NPM github issues list has "our triggers: complaining about NPM" at the top
[03:38:52] Arcaire: The issues list is six closed issues. Five are about a code of conduct. One is about left-pad.
[03:38:55] FLeiXiuS`: Im normally 75/75Mbps - for shame verizon...for shame.
[03:38:59] Radar: Arcaire: snrk
[03:39:10] Arcaire: I'm writing an Electron app. I'm allowed to snrk.
[03:40:11] Arcaire: turns out i just got dominated by FACTS and 'snrk' is not a shortened form of 'snark'.
[03:40:39] Arcaire: All said and done, though, JavaScript isn't doing too badly for me in this app.
[03:41:12] ChanServ: -q seductiveerror_!*@*
[03:41:16] Radar: seductiveerror_: wb
[03:41:20] Arcaire: I did accidentally commit my node_modules folder once, though.
[03:41:25] Arcaire: That was... unpleasant.
[03:42:29] sevenseacat: Arcaire: lulz they recommend you do that afaik
[03:42:40] sevenseacat: its the only way to ensure the right versions of packages
[03:42:58] Arcaire: Nah they have a version designation now.
[03:43:22] Arcaire: dependencies { "crypto": "0.0.3" }
[03:44:52] IrishGringo: has joined #RubyOnRails
[03:45:12] Arcaire: FLeiXiuS_: We have groups like AARNet (university coalition) that mirror a lot of things like Linux distros and WoW patches.
[03:45:26] Cohedrin: has joined #RubyOnRails
[03:45:36] Arcaire: But CDN networks are getting a lot better about putting at least a Core2Duo in or around Australia so we can get something and call it "local mirror".
[03:45:44] Arcaire: e.g., Valve, Fastly, Cloudflare.
[03:46:39] Sawbones: has joined #RubyOnRails
[03:46:47] chouhoulis: has joined #RubyOnRails
[03:47:19] seductiveerror_: this is essentially what I need: https://gist.github.com/anonymous/d7093f1e2e83872caf4750712bbf66d4
[03:47:29] seductiveerror_: when I do this I want to be able to do player.accounts_user to get the associated user, likewise accounts_user.player
[03:48:17] seductiveerror_: the user model is general though, so I don't think (?) I can put has_one similar to whats in the player.rb because not ever user is a player
[03:48:25] Arcaire: how are you keeping track of whether or not they're offshore accounts?
[03:49:24] Arcaire: w/r/t user has_one player, yes you can
[03:49:28] kadoppe: has joined #RubyOnRails
[03:49:44] seductiveerror_: arcaire offshore?
[03:50:25] Arcaire: I was talking about the User has_one :Player
[03:50:40] sevenseacat: I'd question what "has_many :accounts_user" means
[03:50:48] sevenseacat: because it does not follow rails conventions
[03:50:52] Radar: player.accounts_user to get the associated user,
[03:50:56] Radar: But there are many of them associated?
[03:51:01] seductiveerror_: theres only one
[03:51:12] Arcaire: user.player
[03:51:14] Arcaire: player.user
[03:51:14] seductiveerror_: sorry I typo'd :P
[03:51:35] Arcaire: You don't need that second model.
[03:51:57] Radar: yeah I'm confused about what this is doing even with the code.
[03:52:03] sevenseacat: yeah whats the purpose of this PlayerAccountLink model?
[03:52:05] Radar: Does a player link to only one user? Does a user link to only one player?
[03:52:22] Radar: So why not a belongs_to + has_one association?
[03:52:36] sevenseacat: 1 to 1 doesnt mean has_many
[03:52:38] Radar: And why is Player separate from Accounts::User in the first place?
[03:52:45] Radar: Is this another case of User + Profile?
[03:53:14] Arcaire: shitty pseudo
[03:53:14] Arcaire: https://gist.github.com/Arcaire/b44bb911aa75d782233eb567a0bd8725
[03:53:18] seductiveerror_: because a user is not necessarily a player in every case, which is why I mentioned just subclassing rather than a role column. the player is separate because the player is vastly unrelated to the login/logout/sessions
[03:53:27] Arcaire: That's fine.
[03:53:30] djbkd: has joined #RubyOnRails
[03:53:39] Radar: Arcaire: !gist-usage bro
[03:53:39] helpa: Arcaire: How to use Gist properly: https://github.com/radar/guides/blob/master/using-gist.markdown
[03:53:51] Radar: Arcaire: :troll:
[03:54:00] Arcaire: seductiveerror_: updated
[03:54:00] sevenseacat: thats fine, for those Account::Users, player will just be nil
[03:54:16] Arcaire: line 20 of gist
[03:54:36] Arcaire: Radar: meh
[03:54:43] Arcaire: this isn't a big enough gist to warrant super formatting
[03:55:14] sevenseacat: i question people who immediately rush to HM:T all of the associations
[03:55:20] sevenseacat: i deal with it allllll the time
[03:55:32] Arcaire: It's very rarely actually the solution.
[03:55:33] seductiveerror_: sevenseacat wouldn't that pollute the users model, though? say I have 10 or so different user types, that's a lot of nils
[03:55:34] Arcaire: Same with HABTM.
[03:55:47] seductiveerror_: its a has_one ^^
[03:56:03] sevenseacat: seductiveerror_: there is no has_one anywhere in the code you posted
[03:56:23] Arcaire: they wrote has_many instead of has_one
[03:56:23] sevenseacat: what is your actual code then?
[03:56:44] sevenseacat: then they typoed other things too, like the name of the associationsa
[03:56:47] Arcaire: seductiveerror_: Best solution is Player model is User model.
[03:56:53] seductiveerror_: https://gist.github.com/anonymous/63052d7d44ff5d556d366e898ba4014a
[03:56:54] Arcaire: Call it User. Use 'nil' a lot.
[03:57:01] Arcaire: Second-best solution is the gist I linked.
[03:57:06] Arcaire: Two models, proper associations.
[03:57:18] Arcaire: Third best solution is writing it in Sinatra instead.
[03:57:20] Arcaire: Fourth is using Brainfuck
[03:57:23] Arcaire: Fifth is using HM:T
[03:57:27] sevenseacat: I don't get the problem here. you have no link from User -> Player at the moment, which wouldnt change by removing the PlayerAccountLink model, which appears to be useless
[03:57:49] sevenseacat: it would just be Player belongs_to User
[03:57:58] sevenseacat: done. move on.
[03:58:05] Arcaire: we're repeating stuff I gisted five minutes ago tbh
[03:58:32] sevenseacat: maybe you are, but I'm not
[03:59:17] Arcaire: 1:57 PM <sevenseacat> it would just be Player belongs_to User
[03:59:21] Arcaire: https://gist.github.com/Arcaire/b44bb911aa75d782233eb567a0bd8725#file-rare_pepe-rb-L9
[03:59:37] sevenseacat: read the line above that and tell me how that correlates to your gist
[03:59:46] Arcaire: 1:57 PM <sevenseacat> I don't get the problem here. you have no link from User -> Player at the moment, which wouldnt change by removing the PlayerAccountLink model, which appears to be useless
[03:59:52] Arcaire: https://gist.github.com/Arcaire/b44bb911aa75d782233eb567a0bd8725#file-rare_pepe-rb-L1
[04:00:03] sevenseacat: yes, you have added a link to player from user
[04:00:08] Arcaire: ¯\_(ツ)_/¯
[04:00:11] sevenseacat: which I have said we still don't have
[04:00:18] Arcaire: And also deleted the superfluous model.
[04:00:46] baweaver: has joined #RubyOnRails
[04:00:59] seductiveerror_: im going with player model is user model. that appears to be best. it doesnt make sense to me to have a single user model that encompasses every type, so I'd rather just subclass and implement relationships there
[04:01:42] petor: has joined #RubyOnRails
[04:02:07] Arcaire: What "types" are you referring to?
[04:02:15] Arcaire: Different types of players or what?
[04:02:40] seductiveerror_: yes. such as admin, players, guests of site
[04:02:57] Arcaire: So they're different types of >users<, not players?
[04:03:09] seductiveerror_: thats whats there so yeagh
[04:03:35] Arcaire: Are guests registered or what
[04:03:48] Arcaire: or are they playing but not registered users
[04:04:00] seductiveerror_: guests have a login and do register, but do not have a profile associated with player stats
[04:04:24] seductiveerror_: how the business works
[04:04:43] Arcaire: I don't really see a viable business model out of this. :^)
[04:04:50] Arcaire: If they're registered users, they're not guests. They're users.
[04:04:55] Arcaire: Just have an attribute called `premium` or something.
[04:05:06] seductiveerror_: the business isnt the software, its the physical orghanization itself.
[04:05:11] seductiveerror_: i dont have control over how that is run
[04:05:19] Arcaire: I know a lot of people get very hot and heavy over having a separate admin table but tbh just have an attribute too.
[04:05:57] baweaver: has joined #RubyOnRails
[04:06:47] crameth: has joined #RubyOnRails
[04:07:13] chipotle: has joined #RubyOnRails
[04:07:30] crameth: has joined #RubyOnRails
[04:08:16] levifig: anybody running rails+nginx+puma+capistrano?
[04:08:20] seductiveerror_: the playerLink was also a preliminary model for holding status of the link, email_confirmed, player_confirmed, admin_approval, etc etc so that's why it was there
[04:08:37] Arcaire: Some of those should be on the user model
[04:08:42] Arcaire: if not all of them
[04:08:55] levifig: when I run `cap production puma:stats` (or restart), I get `undefined method `[]' for false:FalseClass`
[04:09:05] petor: has joined #RubyOnRails
[04:09:48] Arcaire: levifig: Do you have a .state file anywhere
[04:09:57] levifig: Arcaire, I touched one
[04:10:02] levifig: didn't exist before
[04:10:14] Arcaire: cap deploy:cold
[04:10:45] seductiveerror_: arcaire semantically, the admin approval isn't for the user accounts its for the junction of players profile with email (the reasoning is players without user accounts still will be able to sign up and join even if they played without an account)
[04:11:20] levifig: Arcaire, I don't have a deploy:cold task… :o
[04:11:43] Arcaire: Just try cap puma:start then
[04:11:58] Arcaire: You should have that task.
[04:12:28] levifig: Arcaire, I do, I did, and still `State file not found: /var/www/publisher/shared/tmp/pids/puma.state`
[04:12:41] Arcaire: lmao what the fuck
[04:13:11] Arcaire: what's your start command?
[04:13:14] Arcaire: s/command/task/
[04:13:23] levifig: puma:start
[04:13:27] levifig: it does start
[04:14:14] jenrzzz: has joined #RubyOnRails
[04:14:14] jenrzzz: has joined #RubyOnRails
[04:14:26] Arcaire: i mean the content of it in your capistrano
[04:14:38] lxsameer: has joined #RubyOnRails
[04:15:07] levifig: https://gist.github.com/levifig/aec6c693765dbc8259578caa8dbf0cba
[04:16:38] Arcaire: >one way you have to have a state file
[04:16:43] Arcaire: >another way the state file causes the issue
[04:17:05] theery: has joined #RubyOnRails
[04:17:09] kadoppe: has joined #RubyOnRails
[04:17:13] johnflux_: has left #RubyOnRails: ("Konversation terminated!")
[04:17:45] duncannz: has joined #RubyOnRails
[04:18:05] Arcaire: not sure, sorry man
[04:18:08] levifig: Arcaire, after starting it, it still doesn't show up in my processes… so it's not starting :P
[04:18:09] Arcaire: FailBit: n e?
[04:18:13] Arcaire: ah he's not here
[04:18:24] Arcaire: I think he uses puma+cap
[04:21:04] bronson: has joined #RubyOnRails
[04:23:27] lxsameer: hi there, asset_path does not return the correct path in rails5 ( no digest and no prefix ) is it a known issue ?
[04:23:54] Radar: lxsameer: config.assets.digest is set to false?
[04:27:01] sevenseacat: lxsameer: checking the rails issues will tell you if its a known issue
[04:27:33] lxsameer: sevenseacat: it seems that there were several issues but it seems all fixed
[04:27:43] sevenseacat: then there's your answer :)
[04:28:38] duderono_: has joined #RubyOnRails
[04:28:40] watersoul_: has joined #RubyOnRails
[04:28:48] adre: has joined #RubyOnRails
[04:28:57] jstransky_: has joined #RubyOnRails
[04:29:12] seductiveerror_: has joined #RubyOnRails
[04:29:41] tvon[laptop]: has joined #RubyOnRails
[04:30:11] lxsameer: but the issue exists in rails5
[04:30:18] `adaedra: has joined #RubyOnRails
[04:30:38] Dreamer3_: has joined #RubyOnRails
[04:30:58] oweff: has joined #RubyOnRails
[04:31:15] Thai_: has joined #RubyOnRails
[04:31:30] sevenseacat: great, file it as a new issue then
[04:31:33] philtr: has joined #RubyOnRails
[04:31:41] thorgi: has joined #RubyOnRails
[04:31:43] sevenseacat: but likely you're just doing something wrong in your code
[04:31:52] coffeejunk: has joined #RubyOnRails
[04:31:58] anna`: has joined #RubyOnRails
[04:32:12] adam|: has joined #RubyOnRails
[04:32:13] knight_: has joined #RubyOnRails
[04:32:19] raldu: has joined #RubyOnRails
[04:32:22] cydrobolt: has joined #RubyOnRails
[04:32:22] cydrobolt: has joined #RubyOnRails
[04:32:29] dcope: has joined #RubyOnRails
[04:32:45] dmz: has joined #RubyOnRails
[04:33:08] fluxsource: has joined #RubyOnRails
[04:33:33] djinni`: has joined #RubyOnRails
[04:34:41] ruurd: has joined #RubyOnRails
[04:34:52] vladr: has joined #RubyOnRails
[04:35:10] Davey: has joined #RubyOnRails
[04:35:10] Davey: has joined #RubyOnRails
[04:35:23] SteenJobs: has joined #RubyOnRails
[04:35:40] zz_timnovinger: has joined #RubyOnRails
[04:36:00] Cohedrin: has joined #RubyOnRails
[04:37:44] hoylemd: has joined #RubyOnRails
[04:38:22] AmiMoench: has left #RubyOnRails: ()
[04:43:52] diegoaguilar: has joined #RubyOnRails
[04:47:03] SteenJobs: sevenseacat: why the hate on cancancan? (that’s the end of the visible chat for me)
[04:47:20] FLeiXiuS`: Looking to prepend to a route helper. Any suggestions? https://gist.github.com/anonymous/4836b24b4c97b6ae29364db87884da65
[04:47:42] sevenseacat: it encourages a lot of bad practices that get reeeally reeeeally confusing once you start building up realistic-sized rule sets
[04:47:43] kadoppe: has joined #RubyOnRails
[04:48:24] FLeiXiuS`: I guess if I dont nest the route, I can probably do it.
[04:48:33] SteenJobs: FLeiXiuS_: nah you can
[04:48:36] SteenJobs: write it as
[04:48:48] chouhoulis: has joined #RubyOnRails
[04:48:56] SteenJobs: if it’s nested it’ll prepend the name of the outer resource
[04:49:10] Arcaire: FLeiXiuS_: customer_disable is in line with the convention almost everywhere else in your application.
[04:49:12] Arcaire: You should stick with it
[04:49:13] SteenJobs: thought you were asking something else, not sure how to override the parent resource name from being appended
[04:49:36] SteenJobs: sevenseacat: encourages based on the way they expect you to implement it?
[04:49:45] FLeiXiuS`: Arcaire, scaffolds prepend the actions to the model. edit_customer, new_customer, etc.
[04:49:55] sevenseacat: based on all the documentation, guides, etc.
[04:50:15] cgfbee: has joined #RubyOnRails
[04:51:05] Arcaire: FLeiXiuS_: That's a resource route.
[04:51:08] Arcaire: Different.
[04:52:29] User458764: has joined #RubyOnRails
[04:52:36] andrew-l: has joined #RubyOnRails
[04:52:42] SteenJobs: sevenseacat: yikes. cause i’m about to start building authorization for the platform we just finished building an mvp of sorts for (read: the flow works) and was planning on using cancancan as usual
[04:54:20] Arcaire: Use Clearance. :^)
[04:56:10] levifig: has joined #RubyOnRails
[04:56:42] zz_timnovinger: has joined #RubyOnRails
[04:58:02] Devalo: has joined #RubyOnRails
[04:59:32] theery: has joined #RubyOnRails
[05:00:24] ekem: http://classicprogrammerpaintings.tumblr.com/post/142737403879/programmers-at-work-maintaining-a-ruby-on-rails
[05:01:38] hxegon: has joined #RubyOnRails
[05:02:49] Arcaire: http://classicprogrammerpaintings.tumblr.com/post/142649999919/javautildate-salvador-dali-oil-on-canvas-1931?is_related_post=1
[05:04:07] Arcaire: http://classicprogrammerpaintings.tumblr.com/image/142631064154
[05:04:18] Arcaire: “Frontend developers approach newly released JS framework” - Michele Cammarano, 1871, oil on canvas
[05:05:04] ekem: they're running from zulus right?
[05:08:19] hxegon: has joined #RubyOnRails
[05:11:05] yfeldblum: has joined #RubyOnRails
[05:15:09] Sawbones: has joined #RubyOnRails
[05:15:15] pawnbox: has joined #RubyOnRails
[05:18:33] merida: has joined #RubyOnRails
[05:18:45] krz: has joined #RubyOnRails
[05:21:17] ornerymoose: has joined #RubyOnRails
[05:23:58] pawnbox: has joined #RubyOnRails
[05:24:17] zpe: has joined #RubyOnRails
[05:27:12] kadoppe: has joined #RubyOnRails
[05:28:01] mosez: has joined #RubyOnRails
[05:30:39] Radar: FLeiXiuS_: You should put that route inside a member block
[05:31:27] Technodrome: has joined #RubyOnRails
[05:31:43] FLeiXiuS`: Radar, nested under the resources do?
[05:31:48] Radar: FLeiXiuS_: yes
[05:31:52] Radar: FLeiXiuS_: !routig
[05:31:53] Radar: FLeiXiuS_: !routing
[05:31:53] helpa: FLeiXiuS_: http://guides.rubyonrails.org/routing.html - Rails Routing From the Outside In - Rails Guide - by Mike Gunderloy
[05:31:58] Radar: Look up member inside that guide.
[05:33:22] merida_: has joined #RubyOnRails
[05:34:18] merida__: has joined #RubyOnRails
[05:34:53] emachnic: has joined #RubyOnRails
[05:35:17] petor: has joined #RubyOnRails
[05:39:01] Palsson: has joined #RubyOnRails
[05:39:48] mices: has joined #RubyOnRails
[05:40:04] mices: should users be able to delete posts that have comments
[05:40:17] FLeiXiuS`: Radar, Thanks mate!
[05:42:08] sevenseacat: mices: are you asking us to tell you what your system should do?
[05:42:30] mices: yikes ... uh oh
[05:42:44] triptec: has joined #RubyOnRails
[05:43:32] mices: asking for opinions from the people who know best
[05:45:47] sevenseacat: mices: only if its tuesday.
[05:45:55] Arcaire: you should be careful with too many opinions
[05:45:56] sevenseacat: if its wednesday, they can't.
[05:46:04] Arcaire: my uncle died of a opinion overdose
[05:46:13] sevenseacat: and if its thursday, only if they pass a charisma check
[05:46:31] agent_white: has joined #RubyOnRails
[05:47:36] mices: i dunno how you knew i was just thinking about tuesday weld
[05:47:41] Radar: Arcaire: omg mine too
[05:49:50] chouhoulis: has joined #RubyOnRails
[05:51:01] polyidus: has joined #RubyOnRails
[05:56:49] DragonPunch: has joined #RubyOnRails
[05:57:09] sarink: has joined #RubyOnRails
[06:00:12] helpa-bot: has joined #RubyOnRails
[06:02:04] Y_Ichiro_: has joined #RubyOnRails
[06:02:04] Y_Ichiro_: has joined #RubyOnRails
[06:02:40] Scientz: has joined #RubyOnRails
[06:03:15] hyperdri-: has joined #RubyOnRails
[06:03:26] jamo: has joined #RubyOnRails
[06:03:38] dopieee: has joined #RubyOnRails
[06:03:50] Spaceghost|work: has joined #RubyOnRails
[06:03:50] russt_: has joined #RubyOnRails
[06:03:51] raldu_: has joined #RubyOnRails
[06:03:58] bahar: has joined #RubyOnRails
[06:04:03] Leeky_: has joined #RubyOnRails
[06:04:14] tweeaks: has joined #RubyOnRails
[06:04:23] jglauche_: has joined #RubyOnRails
[06:04:25] Silex^^: has joined #RubyOnRails
[06:04:36] jtoy: has joined #RubyOnRails
[06:04:52] targaf_: has joined #RubyOnRails
[06:05:04] Ikzi: has joined #RubyOnRails
[06:05:04] Papierko-: has joined #RubyOnRails
[06:05:07] jgrevich: has joined #RubyOnRails
[06:05:58] Dreamer3: has joined #RubyOnRails
[06:05:59] Puffball_: has joined #RubyOnRails
[06:06:01] fryguy9: has joined #RubyOnRails
[06:06:51] eyck_: has joined #RubyOnRails
[06:06:54] Trynemjoel: has joined #RubyOnRails
[06:06:59] LBRapid_: has joined #RubyOnRails
[06:07:25] JoshL_: has joined #RubyOnRails
[06:07:32] cschneid_: has joined #RubyOnRails
[06:07:40] Kilobyte22: has joined #RubyOnRails
[06:08:09] humding3r: has joined #RubyOnRails
[06:08:09] spion_: has joined #RubyOnRails
[06:08:19] Coldblackice: has joined #RubyOnRails
[06:08:31] bruno-: has joined #RubyOnRails
[06:09:06] urkle-: has joined #RubyOnRails
[06:09:07] djbkd: has joined #RubyOnRails
[06:09:19] adaedra: has joined #RubyOnRails
[06:09:40] chrisml: has joined #RubyOnRails
[06:09:47] chagel: has joined #RubyOnRails
[06:10:24] merida: has joined #RubyOnRails
[06:11:33] solars: has joined #RubyOnRails
[06:11:37] elaptics`away: has joined #RubyOnRails
[06:12:31] bool_: has joined #RubyOnRails
[06:12:35] Diabolik: has joined #RubyOnRails
[06:12:51] lawton: has joined #RubyOnRails
[06:13:46] squiercaster: has joined #RubyOnRails
[06:13:47] speakingcode: has joined #RubyOnRails
[06:14:19] ruurd: has joined #RubyOnRails
[06:14:39] gremly: has joined #RubyOnRails
[06:17:06] krz: has joined #RubyOnRails
[06:17:54] Palsson: has joined #RubyOnRails
[06:18:32] Expanse: has joined #RubyOnRails
[06:21:11] sp1rs: has joined #RubyOnRails
[06:21:14] bronson: has joined #RubyOnRails
[06:23:12] djinni`: has joined #RubyOnRails
[06:23:37] kadoppe: has joined #RubyOnRails
[06:24:29] ramfjord: has joined #RubyOnRails
[06:26:33] SuppliedRelic_: has joined #RubyOnRails
[06:27:08] chipotle: has joined #RubyOnRails
[06:27:29] aganov: has joined #RubyOnRails
[06:29:17] tetraktys: has joined #RubyOnRails
[06:35:47] tvw: has joined #RubyOnRails
[06:37:04] Emily: has joined #RubyOnRails
[06:37:15] lxsameer: asset_path('application.js') should returns '/assets/application.js' but it returns 'application.js'
[06:37:19] lxsameer: is it a bug
[06:37:20] Emily: has joined #RubyOnRails
[06:38:30] AlexJakeGreen: has joined #RubyOnRails
[06:39:38] Radar: lxsameer: You're the one telling the story.
[06:39:41] Radar: Does the asset still work?
[06:39:49] Technodrome: has joined #RubyOnRails
[06:41:17] merida_: has joined #RubyOnRails
[06:41:30] ja: has joined #RubyOnRails
[06:43:11] lxsameer: Radar: nope,
[06:43:22] Radar: Can you reproduce the problem in a new app?
[06:44:03] lxsameer: Radar: assets with using javascript_include_tag are working, but using asset_path or javascript_path won't
[06:44:19] Radar: lxsameer: ERROR: Expected "yes" or "no" answer.
[06:44:53] Radar: lxsameer: Did you file a bug about it yet on github.com/rails/rails?
[06:44:57] sevenseacat: push that app to github
[06:45:44] lxsameer: Radar: no, I just wanted to make sure that this is not what expected from asset_path
[06:45:56] lxsameer: I'll fix it my self.
[06:46:13] mark2: has joined #RubyOnRails
[06:46:18] lxsameer: sevenseacat: what's funny ?
[06:46:29] diegoviola: has joined #RubyOnRails
[06:46:31] sevenseacat: lxsameer: you're funny.
[06:47:15] lxsameer: sevenseacat: :and why ?
[06:47:44] sevenseacat: because you ask all these random unanswerable questions and when we try to pin down whats actually going on, you go all squirrelly
[06:47:50] sevenseacat: and it happens all the time
[06:47:59] bbrowning: has joined #RubyOnRails
[06:48:49] lxsameer: sevenseacat: hmm maybe there is a problem with your attitude ( with all due respect )
[06:48:56] pwnd_nsfw: has joined #RubyOnRails
[06:49:28] FreddieFresh: has joined #RubyOnRails
[06:49:35] lxsameer: sevenseacat: it's easier to be helpful instead of being sarcastic
[06:50:21] sevenseacat: I wasn't being sarcastic, I was being serious
[06:50:28] sevenseacat: I wish you would stop being all squirrelly
[06:50:35] chouhoulis: has joined #RubyOnRails
[06:53:28] Palsson: has joined #RubyOnRails
[06:53:59] AzaToth: has joined #RubyOnRails
[06:56:44] tpendragon: has joined #RubyOnRails
[06:59:05] kadoppe: has joined #RubyOnRails
[06:59:11] artto: has joined #RubyOnRails
[06:59:31] crdpink: has joined #RubyOnRails
[07:03:50] robbkidd: has joined #RubyOnRails
[07:05:01] DukeDave: has joined #RubyOnRails
[07:05:51] arBmind: has joined #RubyOnRails
[07:06:03] jstransky: has joined #RubyOnRails
[07:06:04] Radar: fwiw, I agree with sevenseacat
[07:10:22] lxsameer: Radar: what's serious about 'lol'
[07:11:03] lxsameer: Radar: and again with all due respect, you wanted me to answer with yes or no, and my question was a yes/no question to begin with
[07:11:26] Radar: lxsameer: We both gave you the answer but apparently you never followed throguh with it?
[07:11:41] Radar: Why do we have the situation now; where we have given you advice and you haven't followed it?
[07:11:52] Radar: What do you think that means for our wanting to give you advice in the future?
[07:12:01] Radar: Do you think that this encourages us to give further advice to you?
[07:13:08] lxsameer: Radar: hmm to be honest personally i don't like to be mocked. and you were kinda mocking me . you could just ask me to answer with yes or no,
[07:13:15] bruce_lee: has joined #RubyOnRails
[07:13:15] bruce_lee: has joined #RubyOnRails
[07:13:31] Radar: lxsameer: If I ask a yes/no question I expect to be given a yes/no answer.
[07:13:46] lxsameer: Radar: yeah exactly like me :)
[07:13:57] n008f4g_: has joined #RubyOnRails
[07:13:57] ur5us: has joined #RubyOnRails
[07:13:59] Radar: Can you please 1) do that in the future and 2) follow all advice given to you?
[07:14:14] dionysus69: has joined #RubyOnRails
[07:14:18] lxsameer: Radar: ok. sure
[07:14:33] Radar: Thank you.
[07:14:55] many: has joined #RubyOnRails
[07:16:11] j3r0: has joined #RubyOnRails
[07:17:16] bmf: has joined #RubyOnRails
[07:17:53] Lloyd: has joined #RubyOnRails
[07:18:20] jstransky: has joined #RubyOnRails
[07:20:47] ur5us: has joined #RubyOnRails
[07:21:57] User458764: has joined #RubyOnRails
[07:22:47] arup_r: has joined #RubyOnRails
[07:22:54] arup_r: hi ropeney
[07:23:12] merida: has joined #RubyOnRails
[07:23:51] antgel: has joined #RubyOnRails
[07:25:21] jbrinkmusic: has joined #RubyOnRails
[07:26:05] arup_r: ropeney: only 1 extension is outdated, and no more update since 1 year... So it seems I need to fork it and bounce the version number. But I never did it, do you have advises to guide me how to proceed ?
[07:26:25] Ropeney: arup_r, you've never forked?
[07:26:47] arup_r: but if just bump the version number, will it work?
[07:27:02] Ropeney: it'll update then, I can't guarantee it will work though
[07:27:03] arup_r: I mean what else I need to look into..?
[07:27:06] Ropeney: (fingers crossed)
[07:28:17] Ropeney: So far, everytime I have done it with a spree gem, I have been successful
[07:28:22] Ropeney: if that makes you feel better
[07:28:55] patrick_star: has joined #RubyOnRails
[07:29:41] arup_r: ropeney: this is the gem, and holding the old one as a reference https://github.com/b8in/spree-blogging-spree/blob/spree-3-0-rc2/spree_blogging_spree.gemspec#L19 . and I want to upgrade to https://github.com/spree/spree/tree/3-0-stable . Now question is master brach is too old, so based on what branch i should create the PR?
[07:30:06] kadoppe: has joined #RubyOnRails
[07:30:44] arup_r: ok then? sorry confused.. can I dm you?
[07:31:04] arup_r: I just need some advice
[07:31:21] arup_r: someone told me to make a PR to bump the version number
[07:31:28] Ropeney: i'd fork 3-0-rc2 then update that gemspec to ~> 3-0-stable
[07:31:47] Ropeney: then point your gem file at it and see if it works
[07:32:08] arup_r: let me try
[07:33:01] FreddieFresh: has joined #RubyOnRails
[07:34:40] arathald: has joined #RubyOnRails
[07:36:18] darutoko: has joined #RubyOnRails
[07:38:05] DukeDave: has joined #RubyOnRails
[07:41:41] chipotle: has joined #RubyOnRails
[07:44:08] petor: has joined #RubyOnRails
[07:47:16] djbkd: has joined #RubyOnRails
[07:47:35] djbkd_: has joined #RubyOnRails
[07:47:53] jgt1: has joined #RubyOnRails
[07:48:34] kadoppe: has joined #RubyOnRails
[07:48:59] DoubleMalt: has joined #RubyOnRails
[07:51:39] crdpink: has joined #RubyOnRails
[07:52:38] Klumben: has joined #RubyOnRails
[07:53:11] petor: has joined #RubyOnRails
[07:55:45] emachnic: has joined #RubyOnRails
[07:57:11] Ropeney: arup_r, the outcome is...?
[07:58:30] universa1: why didn't you just point to to the git repo? git: "blabla", branch: "blub" ?!
[07:58:38] edwinvdgraaf: has joined #RubyOnRails
[07:58:39] arup_r: ropeney: upgrade is going on. I forked and created a new branch from 3-0-rc.. and bumped the version and push to my fork. And then used my fork and that branch Gemfile. And then started upgrading. it is still in process.
[07:59:28] dgncn: has joined #RubyOnRails
[07:59:38] arup_r: universa1: I did exactly like that, but in forked repo.
[07:59:39] mikecmpbll: has joined #RubyOnRails
[08:00:28] artto: has joined #RubyOnRails
[08:00:40] universa1: arup_r: ok, then why did you fork then?
[08:00:45] Junaos: has joined #RubyOnRails
[08:00:54] Ropeney: universa1, because the branch has a dependancy restriction for a rc version
[08:01:03] universa1: probably...
[08:01:13] Ropeney: no, it did
[08:01:33] universa1: the probably was for the than ;)
[08:01:36] universa1: ropeney: ok :-)
[08:02:16] universa1: sounded like he was just bumping the forked gem from rc to non-rc ;)
[08:02:31] universa1: mikecmpbll: ty :-)
[08:03:04] Ropeney: he is, but there isn't a branch without rc as a dependancy
[08:03:52] universa1: hmm, i'm lost ;) and before i talk more stupid things i'll restrain myself ;)
[08:04:12] marr: has joined #RubyOnRails
[08:04:16] Ropeney: https://github.com/b8in/spree-blogging-spree there is no branch for 3-0-stable
[08:05:13] universa1: so you are changing the dependency from rc to non-rc ;) not the gem itself :-)
[08:05:38] opal: has joined #RubyOnRails
[08:05:39] Begi: has joined #RubyOnRails
[08:06:09] Begi: has joined #RubyOnRails
[08:06:57] FreddieFresh: has joined #RubyOnRails
[08:08:57] arup_r: ropeney: I must have done something stupid.. this is the fork https://github.com/aruprakshit/spree-blogging-spree/branches .. and this is the branch upgrade_to_spree_3_0_stable .. but same error. what wrong I did? :/
[08:09:25] Ropeney: can you post that error?
[08:09:25] arup_r: it is still erroring spree_blogging_spree (>= 0) ruby depends on spree_core (3.0.0.rc1)
[08:09:41] arup_r: In Gemfile I have gem 'spree_blogging_spree', github: 'aruprakshit/spree-blogging-spree', branch: 'upgrade_to_spree_3_0_stable'
[08:09:43] universa1: arup_r: bundle update spree-blogging-spree
[08:09:57] arup_r: i did bundle update only
[08:10:28] universa1: arup_r: and also, are you sure there is a 3.0-stable release for spree-core ?!
[08:10:36] universa1: https://rubygems.org/gems/spree_core
[08:10:48] Ropeney: https://github.com/spree/spree/tree/3-0-stable/core
[08:11:01] universa1: gem version != git branch name!
[08:11:17] GodFodder: has joined #RubyOnRails
[08:11:59] GodFodder: has joined #RubyOnRails
[08:12:12] universa1: because i could name my branches after the hobbits in lord of the rings, but the gem version still would be 3.0.0 ...
[08:12:39] yos7ph: has joined #RubyOnRails
[08:12:50] arup_r: so what wrong I did..?
[08:13:02] universa1: https://github.com/aruprakshit/spree-blogging-spree/blob/upgrade_to_spree_3_0_stable/spree_blogging_spree.gemspec#L19
[08:13:11] universa1: https://rubygems.org/gems/spree_core
[08:13:12] Ropeney: you do have a valid point
[08:14:32] Ixio: has joined #RubyOnRails
[08:16:18] Ropeney: arup_r, use https://github.com/spree/spree/blob/3-0-stable/core/lib/spree/core/version.rb as your version number
[08:16:51] Ixio: Hi there everyone, I have a question about the limit tag for binary fields in migrations that don't seem to make it to the schema, I put it nicely in a SO question: https://stackoverflow.com/questions/36608861/getting-a-binary-limit-from-a-migration-to-the-schema-in-rails. Does anyone know the answer here? If not, I'd be gratefull if you can help me out by upvoting. Thanks ;)
[08:18:55] zpe: has joined #RubyOnRails
[08:20:21] delgiudices: has joined #RubyOnRails
[08:23:25] bronson: has joined #RubyOnRails
[08:26:29] artto: has joined #RubyOnRails
[08:29:16] Palsson: has joined #RubyOnRails
[08:29:44] Sylario: has joined #RubyOnRails
[08:30:22] nodejunkie: has joined #RubyOnRails
[08:31:09] User458764: has joined #RubyOnRails
[08:32:32] srinidhi: has joined #RubyOnRails
[08:32:51] Ergo: has joined #RubyOnRails
[08:32:59] bartocc: has joined #RubyOnRails
[08:33:07] bartocc: hi folks. I don't find the right way to prevent rake assets:precompile to run for my heroku app
[08:33:13] blackhuey: has joined #RubyOnRails
[08:33:25] triptec: has joined #RubyOnRails
[08:33:39] bartocc: I have commented out require 'sprockets/railtie' in application.rb but it does not seem to be enough
[08:33:50] baweaver: has joined #RubyOnRails
[08:33:52] arup_r: has joined #RubyOnRails
[08:33:54] bartocc: I still get the Running: rake assets:precompile message when pushing
[08:33:59] arup_r: sorry long power cut :/
[08:34:39] arup_r: looking at the log
[08:36:37] chouhoulis: has joined #RubyOnRails
[08:36:53] jsrn: has joined #RubyOnRails
[08:37:07] artto: has joined #RubyOnRails
[08:38:52] arup_r: ropeney: trying now with that version number.. there are many to learn still.. :)
[08:39:32] i: has joined #RubyOnRails
[08:40:32] rickmasta: has joined #RubyOnRails
[08:40:48] matthias_: has joined #RubyOnRails
[08:40:53] Palsson: has joined #RubyOnRails
[08:42:03] zeel_: has joined #RubyOnRails
[08:46:47] cabotto: has joined #RubyOnRails
[08:47:29] delgiudices: has joined #RubyOnRails
[08:50:12] yfeldblum: has joined #RubyOnRails
[08:50:16] FreddieFresh: has joined #RubyOnRails
[08:50:32] jgt: has joined #RubyOnRails
[08:51:05] neanderslob: has joined #RubyOnRails
[08:51:29] bartj3: has joined #RubyOnRails
[08:53:33] bartj3: has left #RubyOnRails: ("Leaving")
[08:54:04] artto: has joined #RubyOnRails
[08:54:43] arBmind: has joined #RubyOnRails
[08:56:11] arup_r: has joined #RubyOnRails
[08:56:24] rbr: has joined #RubyOnRails
[08:59:35] bruce_lee: has joined #RubyOnRails
[08:59:59] jhass: has joined #RubyOnRails
[09:06:04] Palsson: has joined #RubyOnRails
[09:07:22] Ropeney: arup_r, got it?
[09:08:43] arup_r: ropeney: new error https://gist.github.com/aruprakshit/2bfb236a4b55bf926ab34e201fb6b793. now I changed version of spree_contact_us and trying again.. :/
[09:08:56] arup_r: They don't say at once. it comes one by obne
[09:09:24] squiercaster: has joined #RubyOnRails
[09:10:42] AimlessRAven: has joined #RubyOnRails
[09:11:00] sp1rs: has joined #RubyOnRails
[09:11:07] AimlessRAven: hi all, i translate my site to bulgarian lang but the problem is my paginations rails tell me error translation missing: bg.views.pagination.next
[09:11:15] AimlessRAven: ok i add kaminari.bg.yml
[09:11:20] AimlessRAven: trannslate this
[09:11:24] kadoppe: has joined #RubyOnRails
[09:11:24] AimlessRAven: and got same error
[09:13:15] moep: has joined #RubyOnRails
[09:14:20] mentero: has joined #RubyOnRails
[09:15:12] Spami: has joined #RubyOnRails
[09:15:28] Quintasan: Hi, I have a Project which has many ReportTypes and hasmany Reports, each Report must belong to a Report type. Can I somehow make Report accept nested attributes for ReportType? I just added accepts_nested_attributes_for :report_type but I'm getting "errors": {"report_type.project": [ "can't be blank" ]
[09:17:01] arup_r: ropeney: now https://gist.github.com/aruprakshit/2bfb236a4b55bf926ab34e201fb6b793 :)
[09:20:18] jstransky: has joined #RubyOnRails
[09:20:47] wenchenx_: has joined #RubyOnRails
[09:25:13] jstransky: has joined #RubyOnRails
[09:25:29] czerasz: has joined #RubyOnRails
[09:27:23] AzaToth: has joined #RubyOnRails
[09:30:06] Lloyd: has joined #RubyOnRails
[20:17:20] helpa: has joined #RubyOnRails
[20:21:09] ur5us_: has joined #RubyOnRails
[20:22:11] sarink: has joined #RubyOnRails
[20:22:19] aegis3121: has joined #RubyOnRails
[20:22:44] baweaver: has joined #RubyOnRails
[20:22:58] rickmasta: has joined #RubyOnRails
[20:25:31] bruno-: has joined #RubyOnRails
[20:26:32] Rafcio: has joined #RubyOnRails
[20:26:36] Radar: GOOD MORNING
[20:27:00] Rafcio: hey guys.. i’m trying to use a Hash as an ID in a link_to tag, but i can’t seem to do it.. is there a way around it?
[20:27:13] capin: good afternoon Radar
[20:29:17] StaticVoid: has joined #RubyOnRails
[20:29:31] KensoDev: has joined #RubyOnRails
[20:29:48] hxegon: has joined #RubyOnRails
[20:30:03] Radar: Rafcio: do you have an example of what you're trying to do?
[20:30:18] Rafcio: Radar <%= link_to "Download PDF", invoice_path(@invoice.hash, format: "pdf") %>
[20:30:30] Radar: Rafcio: and how is hash defined?
[20:30:42] Rafcio: it’s a string field on the object
[20:31:12] Rafcio: it’s odd as it works in the mailer, but won’t work in the html view
[20:31:34] triptec: has joined #RubyOnRails
[20:31:38] Radar: Can you please show me what its contents are?
[20:31:45] n008f4g_: has joined #RubyOnRails
[20:31:53] Rafcio: acafcea6-dbe5-40e3-b854-10d30c631e9a
[20:32:01] Radar: oh so it's not a regular hash
[20:32:06] Radar: How is it not working for you?
[20:32:41] sypheren: has joined #RubyOnRails
[20:32:55] Rafcio: this is what the link_to generates /invoices/-1465881311515952657.pdf
[20:32:58] fox_mulder_cp: b.include?(IPAddr.new("")) - is ok
[20:33:20] Radar: Rafcio: Oh, I think it's because Object class already defines the hash method. You should call it something else, like uuid
[20:33:22] kadoppe: has joined #RubyOnRails
[20:33:25] jenrzzz: has joined #RubyOnRails
[20:33:38] jenrzzz: has joined #RubyOnRails
[20:33:39] fox_mulder_cp: Rafcio: wicked_pdf, as example
[20:33:39] Rafcio: ahh ok i’ll give it a shot
[20:33:57] Rafcio: fox_mulder_cp: yes using wiicked_pdf
[20:34:48] fox_mulder_cp: Rafcio: in my blog i use it as render method
[20:35:26] fox_mulder_cp: such as default json, html, i add pdf, and add link on generated page
[20:35:59] Rafcio: fox_mulder_cp: i use that too..
[20:37:57] Radar: ACTION is not sure the point of this conversation
[20:37:58] fox_mulder_cp: Rafcio: see my github for blogapp repo
[20:38:19] Radar: fox_mulder_cp: The issue here is that Rafcio is using a reserved method. I think they've got the other parts worked out already.
[20:38:45] skyjumper: hey all... this feels like a super noob question, but...
[20:38:50] Rafcio: yes I have :) just renaming the column name now :)
[20:39:07] FailBit: I have not been drinking no
[20:39:17] skyjumper: when I call a class method on an AR relation, I lose the scope/relation: https://gist.github.com/anonymous/3827ad4b56ff32afb7b01211f3ac854b
[20:39:34] Radar: skyjumper: "lose"?
[20:39:39] skyjumper: in that example, `each` on line 3 is no longer available
[20:39:42] FailBit: that shouldn't work
[20:39:49] skyjumper: Radar: well, "self" becomes the class again
[20:39:51] FailBit: it shouldn't call maybe_update at all
[20:39:52] skyjumper: and not the relation
[20:40:06] jtong: has joined #RubyOnRails
[20:40:36] skyjumper: I'd like to keep the relation, so class methods can be chained
[20:43:40] Rafcio: Radar: Beer for you. Didn’t work because of hte reserve method :) Thanks a bunch!
[20:44:22] mwlang: looking for some help on boosting by an external field’s value in Sunspot/Solr: http://stackoverflow.com/questions/36633387/sunspot-solr-how-to-boost-by-popularity-field
[20:45:13] mhoungbo: has joined #RubyOnRails
[20:46:55] mhoungbo: has joined #RubyOnRails
[20:47:14] triptec: has joined #RubyOnRails
[20:47:59] kadoppe: has joined #RubyOnRails
[20:48:16] lbotos_: has left #RubyOnRails: ()
[20:50:51] redondos: has joined #RubyOnRails
[20:50:59] SteenJobs: has joined #RubyOnRails
[20:51:22] bronson: has joined #RubyOnRails
[20:54:19] arup_r1: has joined #RubyOnRails
[20:54:59] baweaver: has joined #RubyOnRails
[20:56:35] Anubix: has joined #RubyOnRails
[20:59:16] czerasz: has joined #RubyOnRails
[21:01:23] zave: has joined #RubyOnRails
[21:01:24] Anubix: Hello, I have question about search form with get method. I used Site analysis report soft and found that search form with GET /search is marked as broken link "not found". Don't you know how can i repair this?
[21:02:56] redondos: has joined #RubyOnRails
[21:06:23] marr: has joined #RubyOnRails
[21:09:54] dionysus69: ssh address goes into server 'some ip address or domain' for deploy/production.rb in capistrano config right?
[21:10:32] mwlang: dionysus69: yes.
[21:11:04] dionysus69: just made sure because my domain for the site is different from ssh address, its behind cloudflare so
[21:11:33] mwlang: dionysus69: yeah, you want the server’s IP address, not the cloudflare one.
[21:11:59] rubyonrailed: has joined #RubyOnRails
[21:12:09] mwlang: dionysus69: I like to add my ip addresses to ~/.ssh/config as a named host entry there and put the named entry into the deploy scripts.
[21:13:23] rubyonrailed: Can anyone give me a second set of eyes? Why isn't the send_billing_message getting called? It's not getting paused at my binding.pry https://gist.github.com/anonymous/b065216abd6d004fe68d8582930fd485
[21:13:51] rlf: has joined #RubyOnRails
[21:14:14] rlf: cnk: I fixed the issue by overwriting the engine route, just if you were curious :p
[21:14:22] diegoaguilar: has joined #RubyOnRails
[21:14:50] mwlang: rubyonrailed: I’m guessing that’s from better errors or an exception page trying to render?
[21:15:07] Anubix: Can o look eye on my problem with facebook sdk loading with turbolinks? http://stackoverflow.com/questions/36627415/facebook-plugin-page-in-rails-turbolinks-doesnt-load thanks
[21:15:31] rubyonrailed: mwlang: What do you mean?
[21:16:10] mwlang: rubyonrailed: it’s from web-console gem. white list your IP address https://github.com/rails/web-console
[21:16:29] smathy: rubyonrailed, did you switch to ruby 2 and maybe not switch from pry-debugger to pry-byebyg ?
[21:16:34] dionysus69: mwlang: i do have ssh config, can I put the alias in place of server 'alias', user, 'someuser' ?
[21:16:51] cnk: rlf: Thanks I was curious
[21:17:05] smathy: rubyonrailed, mwlang is talking about the error in your log: https://gist.github.com/anonymous/b065216abd6d004fe68d8582930fd485#file-log-log-L2
[21:17:19] cnk: And the super do |post| works?
[21:17:23] mwlang: dionysus69: that’s what I do. for example, if I have a server at rackspace, I might name it simply “rackspace” Then I set in my deploy *.rb file “rackspace” as my server.
[21:17:30] cnk: cool. I'll have to look into that syntax
[21:17:48] rubyonrailed: Ah, I see. I don't think webconsole is the problem though.
[21:17:56] mwlang: dionysus69: really nice way to do it because I can also specify user and PKI file in the ssh config and keep all that out of the repo
[21:17:57] rubyonrailed: smathy: This app was built on ruby 2
[21:18:02] dionysus69: mwlang: cool then haha I use digitalocean :D
[21:18:24] FailBit: I have a problem
[21:18:30] FailBit: how do I get the same effect as an after_create block
[21:18:36] FailBit: but outside of the transaction that rails does
[21:18:46] Synthead: has joined #RubyOnRails
[21:18:51] mwlang: dionysus69: me, too. :-) actually starting to move things over from RS to DO one app at a time.
[21:19:28] yfeldblum: has joined #RubyOnRails
[21:20:01] yfeldblum: has joined #RubyOnRails
[21:20:15] brainslug: has joined #RubyOnRails
[21:20:23] dionysus69: what is this ? my_property: :my_value
[21:21:06] joelsmith: has joined #RubyOnRails
[21:21:23] dionysus69: never tried rackspace, I just using 5$ plan so far and I am really glad I chose it because for 5$ i think it has great performance and connection speed
[21:21:31] dionysus69: I am just using*
[21:21:36] mwlang: FailBit: wrap it yourself. for example, def always_do_this &block; yield; do_my_thing; end Then you can call your save, update, delete ops with: always_do_this { record.save! }
[21:22:03] sypheren: has joined #RubyOnRails
[21:22:40] renegadeandy: has joined #RubyOnRails
[21:22:41] mwlang: dionysus69: I started a server on digital ocean a few years back for my own stuff…watched it go down/offline far too many times for a while…it’s been fairly solid last couple years, though.
[21:22:58] mwlang: so, I think it’s solid enough to host my client’s important apps there now.
[21:23:01] dionysus69: mwlang: I was just thinking btw, did you ever think, if you deploy app on 4 different dropplets worth 5$ versus one dropplet for 20$, you get 4x5$(1core) vs 1x20$(2cores) 4cores vs 2cores
[21:23:21] dionysus69: I dont even remember amount of ram for 20$ plan
[21:23:28] smathy: rubyonrailed, no clue then.
[21:24:37] triptec: has joined #RubyOnRails
[21:24:47] kadoppe: has joined #RubyOnRails
[21:25:10] srinidhi: has joined #RubyOnRails
[21:25:20] mwlang: dionysus69: yeah. that’s actually what I’m doing…I have two *large* RS servers serving somewhere around 20 or so Ruby apps (Rails, Sinatra, Padrino, and even a camping one). As I move ‘em over to DO, I’m placing only one or two on each server.
[21:25:34] aegis3121: has joined #RubyOnRails
[21:26:21] mwlang: rubyonrailed: your app is attempting to display an error to you, but webconsole is in the mix and is noticing you’re not hitting the site with a local request.
[21:26:31] dionysus69: you sound experienced lol, 20 apps haha I have like 2 so far in total one work in progress
[21:26:52] mwlang: rubyonrailed: line #2 of your log.log file: https://gist.github.com/anonymous/b065216abd6d004fe68d8582930fd485#file-log-log-L2
[21:27:32] dionysus69: also what i meant was like for one huge app you could loadbalance it between 10x5$ dropplets and get better performance than you would get out of twice the money from single dropplet
[21:27:36] mwlang: dionysus69: started with Rails 0.10 :-D
[21:29:04] dionysus69: P.s if u have spare time I have an idea lemme know x)
[21:29:44] rubyonrailed: mwlang: I removed web-console and the error is gone. But i'm still not calling the method correctly. The log is the same as before without the web-console error
[21:35:23] bmf: has joined #RubyOnRails
[21:35:27] Adamp: has joined #RubyOnRails
[21:36:45] Adamp: Hi, I am a noobie to Ruby and Rails
[21:37:14] rubyonrailed: ahhh, it was cancancan
[21:38:14] Adamp: Been reading a lot about how to create a dynamic model. In essence, I need to certain data for each status. But since status can be customized per project I need it to support n number of unknown statuses.
[21:38:58] Adamp: Based on my reading, I think the best way to achieve this is to use serialize, Hash and have it store the hash in a text field to add flexibility
[21:39:41] Cohedrin: Adamp is there any way you can segment the data
[21:39:51] Cohedrin: like is there always going to be specific categories
[21:39:54] Adamp: Failbit, do you mean serialize, json or how else do I convert an object/Hash (I am still open on the implementation) into json to store into the db
[21:41:01] Adamp: Ah, not specific categoreis. So, in our project we have the following status 'new', 'in progress', resolved, feedback, closed
[21:41:11] bruno-: has joined #RubyOnRails
[21:41:19] FailBit: that's a candidate for an AASM-driven model
[21:41:41] Adamp: But, I don't want my plugin to break if we decide to add a new issue status so I need a way to be able to store the data I get based on what is currently defined in the project.
[21:41:43] FailBit: https://i.imgur.com/6ZKCcbR.png
[21:42:00] mikecmpbll: has joined #RubyOnRails
[21:42:02] Cohedrin: Adamp there's a json field you _can_ use in postgres
[21:42:07] Cohedrin: which is what failbit is taking about
[21:42:16] FailBit: you shuold really just AASM
[21:42:22] FailBit: that will handle your concern nicely
[21:42:27] Cohedrin: if you use that, you cannot properly index your data
[21:42:29] Adamp: we are using mysql right now. To get off the ground, we used the bitnami installer which uses mysql.
[21:42:38] FailBit: aasm works fine with mysql
[21:42:44] Adamp: web searching aasm now
[21:42:57] kadoppe: has joined #RubyOnRails
[21:44:34] GG: has joined #RubyOnRails
[21:44:38] SteenJobs: has joined #RubyOnRails
[21:44:46] drbayer: has joined #RubyOnRails
[21:44:53] lemur: has joined #RubyOnRails
[21:45:08] VeryBewitching: FailBit: That looks pretty cool actually.
[21:45:19] Adamp: based on my few minutes of reading, aasm might be overkill
[21:45:49] VeryBewitching: FailBit: When I used to receive a create request, I used to tag the table to grab an ID before I validated data, but not insert the rest of the fields.
[21:46:08] Adamp: Really, for each status I am only storing one piece of data and that is the cumulative time spend in that status for that issue
[21:46:40] FailBit: what looks cool
[21:46:53] VeryBewitching: I hadn't seen it before.
[21:48:05] dionysus69: i have a passpharese on id_rsa and it asks me for it before I pull from github. How do I fix this for capistrano?
[21:48:17] FailBit: use a deploy key
[21:48:20] FailBit: on the production server
[21:48:30] dionysus69: meaning ? how what is that?
[21:48:42] FailBit: https://developer.github.com/guides/managing-deploy-keys/
[21:49:33] bruno-_: has joined #RubyOnRails
[21:50:37] smathy_: has joined #RubyOnRails
[21:51:15] Macaveli: has joined #RubyOnRails
[21:51:16] Pupeno: has joined #RubyOnRails
[21:52:40] dionysus69: thanks FailBit one question though, it asks me to generate ssh key for the deploy key, do I save it in something other than id_rsa? it doesnt matter right?
[21:53:01] FailBit: save it in id_rsa, but do this on the server
[21:53:25] dionysus69: it will overwrite current id_rsa though, that didnt sound too good to me thats why i asked :D
[21:53:40] FailBit: the one on the server is your own?
[21:53:57] dionysus69: yes what do you mean if its my own?
[21:54:00] mhoungbo: has joined #RubyOnRails
[21:54:02] replay_: has joined #RubyOnRails
[21:54:20] dionysus69: yes its on my server a vps
[21:54:21] FailBit: replace it with the deploy key
[21:54:47] tweeeaks: has joined #RubyOnRails
[21:54:50] dionysus69: hmm I won't loose ssh access to it correct ? :D
[21:54:51] funnel: has joined #RubyOnRails
[21:54:57] FailBit: that's only if you touch .authorized_keys
[21:55:08] dionysus69: just making sure :D
[21:55:18] dionysus69: dont remembe rhow I set it up
[21:55:32] FailBit: if you want to make extra sure, hold another ssh session while you copy out the ids
[21:55:52] FailBit: then wait a minute and try to reopen the one where you deleted ids
[21:55:57] ruurd: has joined #RubyOnRails
[21:55:58] FailBit: if it doesn't work you'll have your backup
[21:56:37] Dreamer3_: has joined #RubyOnRails
[21:56:44] jenrzzz_: has joined #RubyOnRails
[21:56:51] Haydos: has joined #RubyOnRails
[21:56:54] triptec: has joined #RubyOnRails
[21:57:21] dionysus69: I figured why not use existing public key?
[21:57:22] Adamp: failbit/cohedrin thanks for the info
[21:57:30] Guest32186: has joined #RubyOnRails
[21:57:42] FailBit: because it's yours
[21:57:55] FailBit: you don't want your server getting potentially compromised to mean that your github is compromised too
[21:58:08] ql6wlld: has joined #RubyOnRails
[21:58:22] disgrntld1: has joined #RubyOnRails
[21:58:31] Adamp: AASM is way more than I need. So, do you see an issue with using serialize, Hash to have the data stored as YAML? I haven't done this before and am looking for pitfalls
[21:58:47] dcope: has joined #RubyOnRails
[21:58:51] benlieb: has joined #RubyOnRails
[21:59:02] dionysus69: whats the difference if I rewrite current id_rsa.pub with a new one I will be sharing pretty much another public key
[21:59:11] dionysus69: where does the extra risk come from I don't get
[21:59:30] FailBit: if your personal private key is compromised your entire github is compromised
[21:59:44] FailBit: if your deploy key is compromised only the repo it's configure for is, and it can't write to it
[21:59:55] edwinvdg_: has joined #RubyOnRails
[22:00:26] dionysus69: that means I should create something like this, ssh-keygen, write name: deploy (and not id_rsa)
[22:00:37] FailBit: as long as ssh can find it
[22:00:40] jtong_: has joined #RubyOnRails
[22:01:01] rubyonrailed: has joined #RubyOnRails
[22:01:02] dionysus69: it does write every file under .ssh correct?
[22:01:12] FailBit: I think so
[22:01:23] dionysus69: hmm ok i will try
[22:03:04] SteenJobs: has joined #RubyOnRails
[22:03:33] Helheim: has joined #RubyOnRails
[22:04:11] sypheren: has joined #RubyOnRails
[22:05:02] macsteps: has joined #RubyOnRails
[22:06:50] kadoppe: has joined #RubyOnRails
[22:07:08] neanderslob: has joined #RubyOnRails
[22:08:40] kies: has joined #RubyOnRails
[22:09:09] mwlang: hmmm…one of my clients is “taking off” in popularity…their MySQL database has grown to 18gb in just a couple months….so this is the largest MySQL database I’ve dealt with. Q: can MySQL grow to sizes of 100gb+ or do I need to tell ‘em to seriously start considering a switch to Postgres?
[22:10:09] FailBit: I know someone with a mysql database of I believe around 100gb
[22:10:12] FailBit: they aren't having any issues
[22:10:18] FailBit: but they are using php so their app is horrid
[22:10:33] mwlang: stop the madness!
[22:11:33] yellow5: has joined #RubyOnRails
[22:11:40] smathy: mwlang, mysql doesn't have any per-DB size limit, like any DB it will boil down to table/index management.
[22:12:31] triptec: has joined #RubyOnRails
[22:13:07] rafaelfranca: has joined #RubyOnRails
[22:13:25] mwlang: smathy: well, that’s good to know…I somewhat suspected it didn’t have a theoretical limit, but I really hadn’t heard of any uncommonly large deployments out there. Postgres, on the other hand, it’s like an old hat trick.
[22:16:25] mwlang: github? most of their data sits on the lowly filesystem…but yeah, they may very well be in the 100’s of GB on their database side by now…
[22:17:47] FailBit: facebook though
[22:18:03] FailBit: and github has 150 million issue comments and probably half as many commit comments, which says something
[22:18:57] mwlang: FailBit: didn’t even know about FB being on MySQL, TBH.
[22:19:48] mwlang: and yeah, I know MySQL can be load balanced with masters and slaves. I suppose I have just always used PG as “goto” solution for the larger installments.
[22:20:09] njero: has joined #RubyOnRails
[22:21:24] dionysus69: FailBit: so i ended up adding second ssh key to the ssh-agent
[22:21:30] cnk: Pretty sure FB is MySQL - but a customized version if I recall correctly
[22:21:40] FailBit: wtf are you doing, dionysus69…
[22:21:46] FailBit: the deploy key is supposed to not have a password
[22:21:51] FailBit: it's not supposed to be in the agent
[22:21:56] FailBit: it's only for the server
[22:21:59] dionysus69: yes it doesnt have a password
[22:22:39] dionysus69: but git pull didnt see the deploy ssh key in .ssh, I figured it needed to be handled by ssh-agent and after I added it, it worked
[22:23:02] kadoppe: has joined #RubyOnRails
[22:23:19] gabr13l: has left #RubyOnRails: ()
[22:23:39] FailBit: I think that if you name it id_[something] and id_[something].pub ssh will find it automatically
[22:24:05] njero: has joined #RubyOnRails
[22:24:21] dionysus69: ok i am willing to test it, how do i remove it from ssh agent, i mean the second key :D
[22:24:44] FailBit: just unset the agent pid in your shell
[22:24:50] patrick_star: has joined #RubyOnRails
[22:26:50] dionysus69: is there a better way to start agent than this? eval `ssh-agent -s`
[22:31:03] pwnd_nsfw: dionysus69, make an alias
[22:31:10] pwnd_nsfw: and alias it to "butts"
[22:32:43] dionysus69: agent is for keys that have passphareses right? that's the sole purpose of it right? to handle them already unencrypted
[22:34:50] Jasaka: has joined #RubyOnRails
[22:34:50] pwnd_nsfw: http://unix.stackexchange.com/questions/72552/whats-the-purpose-of-ssh-agent
[22:34:52] pwnd_nsfw: yeay google
[22:38:51] dionysus69: nah id_deploy didn't work, it doesn't get read by ssh by default
[22:40:47] triptec: has joined #RubyOnRails
[22:41:17] baweaver: has joined #RubyOnRails
[22:41:37] dionysus69: it only works for predefined names like id_dsa is another example
[22:42:19] dionysus69: defined in /etc/ssh/sshd_config fyi
[22:44:34] malcolmva: has joined #RubyOnRails
[22:45:19] quazimodo: has joined #RubyOnRails
[22:46:22] akshat: has joined #RubyOnRails
[22:47:23] rubyonrailed: has joined #RubyOnRails
[22:47:42] smathy: dionysus69, just use the IdentityFile option in your ~/.ssh/config file
[22:47:58] petor: has joined #RubyOnRails
[22:51:58] bronson: has joined #RubyOnRails
[22:52:27] rubyonrailed: has joined #RubyOnRails
[22:53:11] dionysus69: and what do I use as a hostname? repo url?
[22:53:59] Axilla: has joined #RubyOnRails
[22:55:15] Axilla: hey all how can I pass multiple instance variables to a function inside a js.erb file? Foo.function('<%= instance_variable %>', '<%= variable2 %>') doesn't do the job. only the first variable passes through
[22:56:05] bruno-: has joined #RubyOnRails
[22:56:27] triptec: has joined #RubyOnRails
[22:57:06] smathy: axilla, assuming you're rendering from a controller all the controller's defined instance vars are available in the js.erb
[22:58:20] _Tariq: has joined #RubyOnRails
[22:58:25] Cache_Money: has joined #RubyOnRails
[22:59:00] FailBit: what I see there is two function calls or local variable interpolations
[23:01:03] Cache_Money: I have a table of records. Is there an easy way to create a link to "Duplicate" an existing record that will take me to the New view with each attribute filled in with the record I'm attempting to duplicate?
[23:01:08] quazimodo: has joined #RubyOnRails
[23:01:14] quazimod1: has joined #RubyOnRails
[23:02:14] FailBit: nope, hope you like reading params
[23:02:50] tw1sted: has joined #RubyOnRails
[23:04:13] yfeldblum: has joined #RubyOnRails
[23:04:24] smathy: Cache_Money, you'd need a specific controller action, but then just: @foo = Foo.find(params[:id]).dup
[23:05:49] macsteps: has joined #RubyOnRails
[23:07:28] Cache_Money: smathy: I'd like to go from the #index view to the #new view with the fields filled out. So, I link to the #duplicate controller actrion and the redirect to the #new action?
[23:07:49] smathy: Cache_Money, no, just set the right @var and render :new
[23:08:15] smathy: Cache_Money, ...just like you do in `create` for the failure case.
[23:08:33] smathy: Cache_Money, I'm assuming you're using something like: form_for @foo ...
[23:08:34] triptec: has joined #RubyOnRails
[23:08:45] Cache_Money: smathy: yeah. Okay, I'll give that a try
[23:10:31] Technodrome: has joined #RubyOnRails
[23:11:26] bruno-: has joined #RubyOnRails
[23:11:47] Cache_Money: smathy: That worked. Thanks!
[23:11:53] smathy: Cache_Money, you're welcome.
[23:13:54] aegis3121: has joined #RubyOnRails
[23:15:45] mikeiniowa: has joined #RubyOnRails
[23:17:23] DLSteve: has joined #RubyOnRails
[23:24:11] triptec: has joined #RubyOnRails
[23:25:43] Haydos: has joined #RubyOnRails
[23:26:52] baweaver: has joined #RubyOnRails
[23:31:20] twilling: has joined #RubyOnRails
[23:32:22] ramfjord: has joined #RubyOnRails
[23:35:07] RegulationD: has joined #RubyOnRails
[23:35:10] emachnic: has joined #RubyOnRails
[23:41:04] bruno-: has joined #RubyOnRails
[23:45:39] lemur: has joined #RubyOnRails
[23:46:35] quazimodo: has joined #RubyOnRails
[23:46:43] quazimod1: has joined #RubyOnRails
[23:47:30] Ropeney: has joined #RubyOnRails
[23:47:33] Synthead: has joined #RubyOnRails
[23:47:37] triptec: has joined #RubyOnRails
[23:51:43] SteenJobs: has joined #RubyOnRails
[23:53:56] dionysus69: wow 4 am and i made capistrano actually work
[23:57:35] ekinmur: has joined #RubyOnRails
[23:58:05] rubyonrailed: has joined #RubyOnRails