« Back to channel list

#RubyOnRails - 04 October 2015

« Back 1 day Forward 1 day »
[00:00:20] IceyEC: has joined #RubyOnRails
[00:00:20] mehwork: mine says map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
[00:00:28] mehwork: but / is at 52%
[00:01:26] sonofdirt: has joined #RubyOnRails
[00:01:43] Guest6756: has joined #RubyOnRails
[00:04:56] mehwork: ugh why doesn't anything just work. https://github.com/rspec/rspec-rails says i can make bin/rspec work by doing 'bundle binstubs rspec-core' but that just says 'cannot find gem rspec-core'
[00:05:04] mehwork: even though bundle install just said it installed it
[00:05:17] Trynemjoel: has joined #RubyOnRails
[00:05:57] darrencauthon: has joined #RubyOnRails
[00:06:44] jun: has joined #RubyOnRails
[00:06:56] sonofdirt: has joined #RubyOnRails
[00:08:25] one_zero: has joined #RubyOnRails
[00:09:15] mehwork: ok it was because i didn't have gem rspec-rails specifed in my Gemfile
[00:09:32] Radar: so bundle install DIDN'T say it installed it? :)
[00:09:48] mehwork: Radar: it did though
[00:10:27] mehwork: i think it's just because bundle binstub only cares about what's in Gemfile. It's error message is a little vague though
[00:10:51] mehwork: it should have said "cannot find gem rspec-rails in Gemfile"
[00:11:39] mehwork: alright i'm bundled out. Time to get back on the rails
[00:11:57] elway7777: anyone using react.js in rails projects
[00:12:23] willardg: has joined #RubyOnRails
[00:12:50] mehwork: mvc will at least make sense, i've done it enough times. package/dependency managers are always hell even though they're trying to 'exit hell'
[00:14:39] bronson: has joined #RubyOnRails
[00:15:19] mehwork: binstubs are actually pretty great, i'm glad i'm starting with rails 4
[00:15:54] FailBit: ~$ du -sh shared/public/system/images/
[00:15:57] FailBit: 1.7T shared/public/system/images/
[00:16:00] FailBit: god help us all
[00:16:41] iateadonut: has joined #RubyOnRails
[00:17:08] Miron_: has joined #RubyOnRails
[00:17:16] mehwork: too many cat pics
[00:18:32] FailBit: cat pics are 0.03% of the images
[00:18:56] FailBit: although you'll be happy to know that 75.94% are completely safe
[00:19:09] ahmgeek_: has joined #RubyOnRails
[00:19:40] FailBit: https://i.imgur.com/eD84p4i.jpg this is my approach to moderation
[00:25:34] cih: has joined #RubyOnRails
[00:28:15] annlewis: has joined #RubyOnRails
[00:28:16] EminenceHC: has joined #RubyOnRails
[00:30:42] iliketurtles: has joined #RubyOnRails
[00:31:43] chills42: has joined #RubyOnRails
[00:36:09] Uptime: has joined #RubyOnRails
[00:36:25] doublemalt_: has joined #RubyOnRails
[00:37:45] chipotle: has joined #RubyOnRails
[00:40:14] nya: has joined #RubyOnRails
[00:41:41] lasker85: has joined #RubyOnRails
[00:41:44] lasker85: What is considered to be the best way to import .csv data into active record?
[00:41:44] someguy1010: has joined #RubyOnRails
[00:43:29] pwnd_nsfw: How would Apple say that, but adapted for Ruby? "There's a gem for that!"
[00:45:32] seank_: has joined #RubyOnRails
[00:48:40] workmad3: has joined #RubyOnRails
[00:51:05] stannard: has joined #RubyOnRails
[00:54:00] SteenJobs: has joined #RubyOnRails
[00:56:23] smathy: has joined #RubyOnRails
[00:58:07] SteenJobs: has anyone used Parse as a backend before? if only there was a parse channel that was actually active...
[00:59:22] workmad3: has joined #RubyOnRails
[00:59:35] lasker85: pwnd_nsfw, were you answering my question?
[00:59:48] FailBit: well okay then
[01:00:14] lasker85: has joined #RubyOnRails
[01:00:33] lasker85: has joined #RubyOnRails
[01:04:39] SteenJobs: FailBit: you weren???t speaking to me???were you?
[01:04:58] FailBit: <lasker85> pwnd_nsfw, were you answering my question?
[01:05:01] FailBit: <FailBit> yes
[01:05:06] FailBit: that was in response to you.
[01:05:25] SteenJobs: bummer haha
[01:05:30] lasker85: It looks like some of the off-the-shelf gems don't handle association columns well.
[01:06:06] nathanjo: has joined #RubyOnRails
[01:06:21] FailBit: if you feel so inclined you can always just split(',')
[01:06:45] darrencauthon: has joined #RubyOnRails
[01:07:41] pwnd_nsfw: unless it's an apostrophe separated value
[01:08:18] lasker85: It looks like there is this gem: https://github.com/autotelik/datashift
[01:08:25] lasker85: Anyone have any experience with that?
[01:10:00] pwnd_nsfw: ooo, uses JRuby
[01:10:48] pwnd_nsfw: Only for certain things however
[01:11:41] stardiviner: has joined #RubyOnRails
[01:15:59] bronson: has joined #RubyOnRails
[01:21:10] lasker85: I'm going to use that, unless anyone has a better idea.
[01:27:47] wldcordeiro: has joined #RubyOnRails
[01:27:53] circ-user-Q44G2: has joined #RubyOnRails
[01:28:16] montgomjean: has joined #RubyOnRails
[01:28:28] montgomjean: has left #RubyOnRails: ()
[01:29:25] annlewis: has joined #RubyOnRails
[01:30:18] circ-user-Q44G2: Hey all... I have a kind of basic question
[01:30:42] circ-user-Q44G2: how do you make backtrace silencers work in rails 4.2.2?
[01:30:59] circ-user-Q44G2: I'm working through the hartl tutorial and have followed it exactly as far as I can tell
[01:31:28] circ-user-Q44G2: Rails.backtrace_cleaner.add_silencer { |line| line =~ /rvm/ }
[01:31:43] circ-user-Q44G2: is in my backtrace_silencers.rb
[01:32:00] circ-user-Q44G2: based what I saw on stack overflow there's a problem with minitest
[01:32:11] circ-user-Q44G2: so I tried remove it, but it's still not working
[01:32:14] msyvich: has joined #RubyOnRails
[01:32:34] circ-user-Q44G2: anyone else run into this problem?
[01:33:06] circ-user-Q44G2: everybody pinging out? woah
[01:33:26] machty: has joined #RubyOnRails
[01:33:41] michael_mbp: has joined #RubyOnRails
[01:33:44] Avon: has joined #RubyOnRails
[01:33:54] tejasmanohar: has joined #RubyOnRails
[01:33:57] fryguy: has joined #RubyOnRails
[01:34:10] GreySyntax: has joined #RubyOnRails
[01:34:11] toydestroyer: has joined #RubyOnRails
[01:35:02] mostlybadfly: has joined #RubyOnRails
[01:35:18] Lloyd: has joined #RubyOnRails
[01:35:57] elektronaut: has joined #RubyOnRails
[01:35:58] joaomdmoura: has joined #RubyOnRails
[01:36:15] FailBit: circ-user-Q44G2: there are people here occasionally
[01:36:15] lasker85: pwnd_nsfw, you still there?
[01:36:26] lasker85: thor datashift:export:csv -m, --model=MODEL -r, --result=RESULT
[01:36:35] lasker85: This is the example syntax that datashift is giving me
[01:36:43] lasker85: To export to a .csv file
[01:36:54] aruntomar: has joined #RubyOnRails
[01:37:12] circ-user-Q44G2: I'm a n00b working through the rails tutorial
[01:37:19] lasker85: When I do thor datashift:export:csv -m, --model=Product -r, --result=Product.csv it gives me "ERROR: "thor csv" was called with arguments ["-m,", "-r,"]"
[01:37:27] circ-user-Q44G2: and trying to silence backtraces
[01:37:28] leeky: has joined #RubyOnRails
[01:37:29] circ-user-Q44G2: http://stackoverflow.com/questions/28836767/backtrace-silencer-not-working
[01:37:44] msyvich: Newish to Rails, created method for my models: ???create_unless_exists(params)??? ??? surely this already exists in some capacity?
[01:37:49] circ-user-Q44G2: tried removing minitest since other other answers mentioned that
[01:37:59] msyvich: It does a find_by, then creates a new model if this doesn???t exist in the DB
[01:38:01] twohlix: has joined #RubyOnRails
[01:38:18] FailBit: msyvich: upsert!
[01:38:27] msyvich: that???s what I figured
[01:38:29] FailBit: upsert is what you want
[01:38:32] msyvich: nice thanks
[01:38:49] lele: has joined #RubyOnRails
[01:39:04] circ-user-Q44G2: do you ppl use the rails console?
[01:39:13] FailBit: I use it a lot.
[01:39:58] msyvich: Thanks FailBit!
[01:39:59] circ-user-Q44G2: have you had problems with all kinds of huge long stack traces that are mostly in the /.rvm/gems... directories?
[01:40:14] FailBit: I mentally filter them, circ-user-Q44G2
[01:40:23] FailBit: also it is waaay past my bedtime now
[01:40:25] circ-user-Q44G2: I guess I should do that
[01:40:44] circ-user-Q44G2: It's just weird following a big tutorial exactly and having it fail
[01:40:48] FailBit: circ-user-Q44G2: the key is to start at the top and read around the first 5 entries
[01:40:48] mission712: has joined #RubyOnRails
[01:40:50] circ-user-Q44G2: well get some sleep
[01:41:02] FailBit: that will get you most of what you need to know.
[01:41:08] circ-user-Q44G2: I'm just a tools optimizer
[01:41:08] FailBit: and good night
[01:42:03] blackhuey: has joined #RubyOnRails
[01:42:38] Klumben: has joined #RubyOnRails
[01:42:38] paradisaeidae: has joined #RubyOnRails
[01:46:54] chills42: has joined #RubyOnRails
[01:47:27] seank_: has joined #RubyOnRails
[01:47:54] smathy: circ-user-Q44G2, I've seen other people complain about it not working too, and I've not been able to get it to work in any modern Rails version.
[01:48:02] lasker85: Is there a safe way to remove and reinstall all the existing gems in my project?
[01:48:31] lasker85: I added stuff to my gem file, then did bundle install. How do I reset those bad decisions?
[01:48:41] jun: has joined #RubyOnRails
[01:49:53] smathy: lasker85, remove it and do another bundle install
[01:50:08] lasker85: Remove each unwanted gem individually?
[01:51:15] lasker85: I'm using bundle install --path
[01:51:20] lasker85: Let's see if that works.
[01:52:35] smathy: Oh, you care about the gem being present on your drive?
[01:52:57] lasker85: I don't know?
[01:53:07] xcesariox: has joined #RubyOnRails
[01:53:33] smathy: If you remove the gem you don't want from your Gemfile and re-run `bundle install` then your app will no longer be using that gem.
[01:58:39] circ-user-Q44G2: @smathy thanks, I won't worry about it so much then
[01:58:49] circ-user-Q44G2: I'm a tools over-optimizer
[01:58:55] Miron_: has joined #RubyOnRails
[01:59:46] smathy: circ-user-Q44G2, heh :) Honestly, the times I'm using the backtrace in Rails, I usually want to see everything it's going into because it's usually some gem doing something unexpected.
[02:00:30] circ-user-Q44G2: I'm just making typos in the console!
[02:00:51] Depili: has joined #RubyOnRails
[02:01:01] aruntomar: has joined #RubyOnRails
[02:01:13] Mession: has joined #RubyOnRails
[02:04:07] bruce_pom: has joined #RubyOnRails
[02:04:47] apow: has joined #RubyOnRails
[02:07:03] K3VA: has joined #RubyOnRails
[02:08:45] deavid: has joined #RubyOnRails
[02:11:06] Guam: has joined #RubyOnRails
[02:11:32] wildlander: has joined #RubyOnRails
[02:11:33] chipotle_: has joined #RubyOnRails
[02:16:52] bronson: has joined #RubyOnRails
[02:17:45] arooni: has joined #RubyOnRails
[02:17:48] ngscheurich: has joined #RubyOnRails
[02:19:49] Guam: Hey guys I have a association question. Let's for example say I have an event, a menu, and a drink. Each event has one menu each menu has some number of drinks. Each drink represents a specific type of drink: Old fashion, Gin and tonic etc. If i have a menu do a has many on a drink and a drink do a belongs to on the menu. Then deleting a menu is going to delete a drink. In my mind i need some type of join table on the menu drink relationship making it
[02:21:16] yfeldblum: has joined #RubyOnRails
[02:23:04] ahmgeek_: has left #RubyOnRails: ()
[02:23:52] Guam: can i just use teh standard many-to-many in this situation?
[02:27:34] benlieb_: has joined #RubyOnRails
[02:30:08] rhinon: has joined #RubyOnRails
[02:30:11] annlewis: has joined #RubyOnRails
[02:31:04] wildlander: has joined #RubyOnRails
[02:36:06] elway7777: has joined #RubyOnRails
[02:38:24] baweaver: has joined #RubyOnRails
[02:39:08] aruntomar_: has joined #RubyOnRails
[02:39:51] Maletor: has joined #RubyOnRails
[02:41:25] RockLee: has joined #RubyOnRails
[02:42:17] teegee543: has joined #RubyOnRails
[02:43:58] arooni: has joined #RubyOnRails
[02:44:26] bkulbida: has joined #RubyOnRails
[02:47:43] baweaver: http://baweaver.com/blog/2015/09/28/association-aggregates-explained/ - New article out
[02:48:01] baweaver: not particularly proud of some of the sql joins hackery necessary for the last section.
[02:48:14] seank_: has joined #RubyOnRails
[02:49:28] lasker85: has joined #RubyOnRails
[02:51:19] Mia: has joined #RubyOnRails
[02:53:06] lasker85_: has joined #RubyOnRails
[02:53:48] FCser: has joined #RubyOnRails
[02:54:33] a1fa: has joined #RubyOnRails
[02:55:30] ariedler: has joined #RubyOnRails
[02:56:24] SiliconDon: has joined #RubyOnRails
[02:56:26] rickmasta: has joined #RubyOnRails
[02:56:56] joshsmith: has joined #RubyOnRails
[03:01:31] lasker85: has joined #RubyOnRails
[03:02:27] workmad3: has joined #RubyOnRails
[03:04:36] joshsmith: has joined #RubyOnRails
[03:05:05] Miron_: has joined #RubyOnRails
[03:11:09] robbyoconnor: has joined #RubyOnRails
[03:12:26] oflannabhra: has joined #RubyOnRails
[03:12:46] bifflechip: has joined #RubyOnRails
[03:13:01] aruntomar: has joined #RubyOnRails
[03:13:08] montgomjean: has joined #RubyOnRails
[03:13:18] braincrash: has joined #RubyOnRails
[03:13:58] montgomjean: has left #RubyOnRails: ()
[03:14:36] msyvich: has joined #RubyOnRails
[03:15:04] msyvich: has left #RubyOnRails: ()
[03:15:27] jun: has joined #RubyOnRails
[03:16:01] aruntomar: has joined #RubyOnRails
[03:19:50] toretore: has joined #RubyOnRails
[03:23:20] idd2d: has joined #RubyOnRails
[03:26:30] lasker85: has joined #RubyOnRails
[03:28:09] ValicekB: has joined #RubyOnRails
[03:29:09] K3VA_: has joined #RubyOnRails
[03:30:15] Guam: has joined #RubyOnRails
[03:30:25] lasker85: has joined #RubyOnRails
[03:30:58] annlewis: has joined #RubyOnRails
[03:32:51] l_tonz: has joined #RubyOnRails
[03:33:50] n1lo: has joined #RubyOnRails
[03:35:10] sunya7a: has joined #RubyOnRails
[03:35:57] sunya7a: hi, when i inspect my browsers cookies i see something called _heroku_session. why does the value change on page reloads. I thought cookies are held constant in browser memory
[03:36:40] Maletor: has joined #RubyOnRails
[03:40:39] subshad: has joined #RubyOnRails
[03:41:28] subshad: has joined #RubyOnRails
[03:42:39] lasker85: has joined #RubyOnRails
[03:44:37] simplyianm: has joined #RubyOnRails
[03:45:26] jun: has joined #RubyOnRails
[03:46:23] xcv: has joined #RubyOnRails
[03:47:32] quazimodo: has joined #RubyOnRails
[03:49:21] willardg: has joined #RubyOnRails
[03:50:35] lasker85: has joined #RubyOnRails
[03:50:57] rickmasta: has joined #RubyOnRails
[03:51:14] DmitryBochkarev: has joined #RubyOnRails
[03:52:03] hightower4: has joined #RubyOnRails
[03:52:04] chipotle: has joined #RubyOnRails
[03:52:22] sunya7a: has joined #RubyOnRails
[03:54:44] cih: has joined #RubyOnRails
[03:56:59] reeve_: has joined #RubyOnRails
[03:58:35] lasker85: has joined #RubyOnRails
[04:03:16] lasker85: has joined #RubyOnRails
[04:07:17] lasker85: has joined #RubyOnRails
[04:07:23] Guam: has joined #RubyOnRails
[04:09:37] SteenJobs: has joined #RubyOnRails
[04:11:29] mheld: has joined #RubyOnRails
[04:18:48] bronson: has joined #RubyOnRails
[04:24:43] jun: has joined #RubyOnRails
[04:25:13] konsolebox: has joined #RubyOnRails
[04:30:41] michael_mbp: has joined #RubyOnRails
[04:31:42] sevenseacat: has joined #RubyOnRails
[04:31:45] annlewis: has joined #RubyOnRails
[04:40:22] baweaver: has joined #RubyOnRails
[04:40:41] sdwrage: has joined #RubyOnRails
[04:41:47] ramfjord: has joined #RubyOnRails
[04:44:33] cih: has joined #RubyOnRails
[04:45:08] sdwrage: has joined #RubyOnRails
[04:45:27] sppp: has joined #RubyOnRails
[04:49:09] chipotle: has joined #RubyOnRails
[04:49:47] aruntomar: has joined #RubyOnRails
[04:50:10] workmad3: has joined #RubyOnRails
[04:50:20] markelite: has joined #RubyOnRails
[04:51:15] octophore2: has joined #RubyOnRails
[04:51:54] octophore2: has left #RubyOnRails: ()
[04:54:14] duncannz: has joined #RubyOnRails
[04:54:34] deface: has joined #RubyOnRails
[04:56:36] aruntomar: has joined #RubyOnRails
[04:57:28] lasker85: has joined #RubyOnRails
[05:03:18] lxsameer: has joined #RubyOnRails
[05:14:30] Deshy: has joined #RubyOnRails
[05:15:45] wethu: has joined #RubyOnRails
[05:19:46] bronson: has joined #RubyOnRails
[05:20:50] oflannabhra: has joined #RubyOnRails
[05:21:58] aruntomar: has joined #RubyOnRails
[05:23:18] mehwork: when i try to use pow, http://myapp.dev errors with "LoadError: cannot load such file -- bundler/setup". I did what https://github.com/basecamp/pow/wiki/Troubleshooting says to do for rbenv / zsh but it still happens. Anyone know what to do?
[05:30:38] Maletor: has joined #RubyOnRails
[05:30:40] jun: has joined #RubyOnRails
[05:32:31] annlewis: has joined #RubyOnRails
[05:32:41] jiarong: has joined #RubyOnRails
[05:37:32] deavid: has joined #RubyOnRails
[05:38:57] jiarong: has left #RubyOnRails: ()
[05:39:26] towski_: has joined #RubyOnRails
[05:43:56] dionysus69: has joined #RubyOnRails
[05:49:35] quazimodo: has joined #RubyOnRails
[05:57:35] towski_: has joined #RubyOnRails
[06:14:18] phon: has joined #RubyOnRails
[06:14:32] xcesariox: has joined #RubyOnRails
[06:20:48] bronson: has joined #RubyOnRails
[06:21:23] tenderlo_: has joined #RubyOnRails
[06:21:32] phon: has joined #RubyOnRails
[06:23:03] Netun0: has joined #RubyOnRails
[06:24:41] charliesome: has joined #RubyOnRails
[06:24:52] EvilEpoch: has joined #RubyOnRails
[06:24:57] EvilEpoch: Warm Greetings to all, I am The EvilEpoch.
[06:25:15] SteenJobs: has joined #RubyOnRails
[06:25:37] baweaver: baweaver welcomes the EvilEpoch, and wonders to himself if the EvilEpoch wishes to ask a question
[06:25:53] EvilEpoch: Greetings to baweaver from The EvilEpoch.
[06:29:26] benlieb: has joined #RubyOnRails
[06:31:30] dideler: has joined #RubyOnRails
[06:33:17] annlewis: has joined #RubyOnRails
[06:33:40] C0L0R: Noobish question I feel like, but I am struggling. The instagram gem documentation says that to post a tweet with a photo the syntax is this: client.update_with_media("I'm tweeting with @gem!", File.new("/path/to/media.png")) How can I do this with an image on a remote server? Currently I have this: user.twitter.update_with_media(tweet_body, File.new(media)) and it returns ArgumentError (string contains null byte):
[06:34:41] rhizome: i don't know, but i have to think you have to upload it yourself, they wouldn't pull it from somewhere else.
[06:36:06] ChadyG: has joined #RubyOnRails
[06:36:25] C0L0R: What is special about File.new("/path/to/media.png") as compared to File.new("www.remote-server.com/path/to/media.jpg")?
[06:38:10] sangwoojoo: has joined #RubyOnRails
[06:38:18] workmad3: has joined #RubyOnRails
[06:43:20] C0L0R: Okay I replaced File.new() with open(URI.parse(media)) and now I get this error: Errno::ENOENT (No such file or directory - http://www.remote-server.com/link/to/image.png)
[06:43:36] C0L0R: Any thoughts?
[06:43:58] baweaver: File.new('/tmp/img.ext').do |f| f.write(open('url').read) end
[06:46:10] Spami: has joined #RubyOnRails
[06:47:45] C0L0R: Thanks for the response baweaver. I'm now getting this in the log: Twitter::Error::UnacceptableIO (The IO object for media must respond to to_io):
[06:48:27] xcv: has joined #RubyOnRails
[06:49:09] workmad3: has joined #RubyOnRails
[06:49:20] C0L0R: What is weird is that the error is coming through on line 43 (the code you just sent me) and not line 44 (the line where I call twitter)
[06:50:02] baweaver: you have to put it in a variable y'know
[06:54:16] jun: has joined #RubyOnRails
[06:54:25] Spami: has joined #RubyOnRails
[06:54:35] C0L0R: baweaver that would make sense. Now that I've done that, it says it has crash code H10 status 503
[06:56:45] rhizome: i don't think File is built to handle urls
[06:59:36] tenderlove: has joined #RubyOnRails
[06:59:51] C0L0R: rhizome, is there anyway that I can go from client.update_with_media("I'm tweeting with @gem!", File.new("/path/to/media.png")) to user.twitter.update_with_media(tweet_body, SOME.FUNCTION("http://remote-server.com/link/to/image.png")) ?
[07:06:21] cih: has joined #RubyOnRails
[07:09:16] arup_r: has joined #RubyOnRails
[07:12:25] sdwrage: has joined #RubyOnRails
[07:12:51] cih: has joined #RubyOnRails
[07:16:04] chipotle: has joined #RubyOnRails
[07:20:16] C0L0R: I finally got it to work: user.twitter.update_with_media(tweet_body, open(media))
[07:21:09] C0L0R: I could've sworn that was the first thing I tried, but nevertheless thank you rhizome and baweaver for entertaining my question
[07:21:46] bronson: has joined #RubyOnRails
[07:22:26] bruce_pom: has joined #RubyOnRails
[07:25:18] tenderlo_: has joined #RubyOnRails
[07:25:19] Lytol: has joined #RubyOnRails
[07:26:48] Deshy: has joined #RubyOnRails
[07:34:13] annlewis: has joined #RubyOnRails
[07:37:35] aruntomar: has joined #RubyOnRails
[07:39:20] rubyonrails325: has joined #RubyOnRails
[07:39:25] tenderlove: has joined #RubyOnRails
[07:40:29] darutoko: has joined #RubyOnRails
[07:42:33] jminch: has joined #RubyOnRails
[07:42:46] sonofdirt: has joined #RubyOnRails
[07:48:10] jminch: is this working now
[07:48:24] jminch: is anybody alive
[07:49:15] jminch: has joined #RubyOnRails
[07:49:28] jminch: hello????
[07:49:36] jminch: ACTION slaps adam12 around a bit with a large fishbot
[07:49:45] jminch: HELOOOOOOOOOOOO
[07:49:45] arup_r: myself is
[07:49:55] arup_r: HIIIIIIIIIIIIIII
[07:49:58] jminch: hello arup
[07:50:04] arup_r: hi jminch
[07:50:09] jminch: are you proficient in ruby?
[07:50:25] seank_: has joined #RubyOnRails
[07:50:26] jminch: i have an issue and its bugging me
[07:50:36] jminch: and i dont want to quit learning rails :////
[07:50:45] jminch: its just so confusing not knowing what anything means
[07:51:21] arup_r: ask .. lets see .. if I reach till that point or not.. :D
[07:51:43] jminch: ugh i dont even know how to ask
[07:51:49] jminch: so basically im taking this class on lynda
[07:51:53] jminch: rails essentials 4
[07:52:47] jminch: and basically i try to run the server
[07:53:06] jminch: im using the default server i believe its WEBlock or something??
[07:55:12] arup_r: WebRick :)
[07:55:20] arup_r: and then next ?
[08:13:59] jgt: has joined #RubyOnRails
[08:15:08] reeve_: has joined #RubyOnRails
[08:16:11] sevenseacat: nothing, apparently
[08:17:26] n008f4g_: has joined #RubyOnRails
[08:22:30] srinidhi: has joined #RubyOnRails
[08:22:41] bronson: has joined #RubyOnRails
[08:27:08] apow: has joined #RubyOnRails
[08:27:37] Deshy: has joined #RubyOnRails
[08:30:03] mloy: has joined #RubyOnRails
[08:31:20] voker57: has joined #RubyOnRails
[08:34:32] eGGsha: has joined #RubyOnRails
[08:34:48] annlewis: has joined #RubyOnRails
[08:37:19] workmad3: has joined #RubyOnRails
[08:45:59] arup_r: I want to make my Notification model as polymorphic .. So I need to give as: option to other model. What is the correct english word, I am thinking notificationable
[08:46:04] arup_r: Is this correct word ?
[08:46:36] rails698: has joined #RubyOnRails
[08:48:32] mloy: arup_r, perhaps notifiable?
[08:49:24] arup_r: yes.. mloy
[08:49:29] arup_r: Thanks :)
[08:49:42] mloy: arup_r, glad to help
[08:49:43] arup_r: my english is not good
[08:50:35] stardiviner: has joined #RubyOnRails
[08:52:04] moeabdol: has joined #RubyOnRails
[08:52:19] arup_r: mloy: what is the time there ?
[08:52:56] mloy: arup_r, 5am, probably crashing soon honestly
[08:53:08] arup_r: haha... yes.. pls sleep
[08:53:53] moeabdol: has joined #RubyOnRails
[09:03:38] chipotle: has joined #RubyOnRails
[09:05:09] Deshy: has joined #RubyOnRails
[09:05:40] sadaf2606: has joined #RubyOnRails
[09:08:12] foolsh: has joined #RubyOnRails
[09:10:35] aruntomar: has joined #RubyOnRails
[09:14:22] baash05: has joined #RubyOnRails
[09:14:52] baash05: Hey all.. I'm having a hard time with a template.. the rails app isn't finding it..
[09:15:19] baash05: I've got a binding.pry in the controller.. is there a way to get the path of the view it's looking for?
[09:15:36] moeabdol: has joined #RubyOnRails
[09:17:08] sevenseacat: the error message will tell you
[09:17:20] sevenseacat: gist the error message?
[09:18:44] frzn: has joined #RubyOnRails
[09:21:52] baash05: https://gist.github.com/baash05/bd9ba7dfab3ec5b27279
[09:22:24] baash05: That looks to be looking in the root folder of the views.
[09:22:56] baash05: but the controller is under admin
[09:23:12] sevenseacat: baash05: the application layout is missing
[09:23:18] sevenseacat: what did you do to it?
[09:23:40] baash05: There wasn't a layout..
[09:23:42] bronson: has joined #RubyOnRails
[09:23:52] baash05: the layout is in admin/admin_notes
[09:23:59] SteenJobs: wow that was a nightmare. just want to say gnight to my favorite channel, and hope you never have to integrate Parse with third-party OAuth, that???s my blessing to you all.
[09:24:06] sevenseacat: so where are you telling your controller to use that layout
[09:24:07] SteenJobs: sevenseacat: yooo. can???t stop by and not say whatup.
[09:24:13] sevenseacat: SteenJobs: halloo.
[09:24:15] baash05: app/controllers/admin/admin_notes_controller.rb
[09:24:16] SteenJobs: aright gnight everyone.
[09:24:28] baash05: That's the path to the controller.
[09:24:33] sevenseacat: baash05: I am not a mindreader and cannot see that code
[09:24:45] baash05: Yeah yeah..
[09:24:54] SteenJobs: she???s pretty close to a mindreader though
[09:25:07] habitullence: has joined #RubyOnRails
[09:25:09] baash05: I've got nothing in the normal view folder related to this.
[09:25:25] sevenseacat: baash05: please just answer the question. where are you telling the controller to use that layout?
[09:25:32] sevenseacat: show me the code which is doing so
[09:25:41] baash05: I'm not sure how to tell the controller where the layout is.
[09:26:59] ramfjord: has joined #RubyOnRails
[09:27:00] RegulationD: has joined #RubyOnRails
[09:27:08] apow: has joined #RubyOnRails
[09:27:14] sevenseacat: http://api.rubyonrails.org/classes/ActionView/Layouts.html
[09:27:18] sevenseacat: have a read :)
[09:28:03] baash05: I'll read that..
[09:28:08] baash05: but my controller is dirt simple
[09:28:11] hightower4: Hey, if I would want request for e.g. /test.js to go directly to some file under an arbitrary path, like /somewhere/my/test.js, what should I specify in config/routes.rb?
[09:28:18] sevenseacat: or for a shortcut version, http://api.rubyonrails.org/classes/ActionView/Layouts/ClassMethods.html#method-i-layout
[09:28:21] baash05: I added a comment to my gist.
[09:28:22] darutoko-: has joined #RubyOnRails
[09:28:25] sevenseacat: baash05: the fix is also dirt simple.
[09:28:40] cih: has joined #RubyOnRails
[09:28:56] sevenseacat: you need to specify the layout for your controller, if you dont want it to use the default one.
[09:28:59] arup_r: hightower4: format: :js
[09:29:26] arup_r: rails route allow you to add default format
[09:30:12] baash05: woot.. thanks sevenseacat..
[09:30:14] baash05: layout 'admin'
[09:30:15] hightower4: arup_r, right, I mean how would I add a currently non-existing route (for /test.js), and make it return a file from an arbitrary location on the disk?
[09:30:36] AzaToth: has joined #RubyOnRails
[09:31:16] arup_r: I didn't get you ... without route.. How would you reach to controller..Are you talking about static files ?
[09:31:38] hightower4: arup_r, right, static file, /test.js to return contents of e.g. /my/file/test.js
[09:31:45] arup_r: static file can be kept inside public/ dir
[09:31:55] arup_r: mloy: please sleep... :(
[09:31:56] darutoko: has joined #RubyOnRails
[09:32:12] hightower4: arup_r, oh right, I thought I had to have a route for that as well. Certainly, thanks
[09:32:49] mloy: arup_r, lol i just checked irc one last time before bed. gnight!
[09:33:29] arup_r: yes.. mloy nothing new.. you can catch your zzZZZ safely..
[09:33:46] arup_r: good night man
[09:35:35] annlewis: has joined #RubyOnRails
[09:37:06] hightower4: arup_r, although I see now my files are not exactly static, they are supposed to go through a handler before being delivered, so I'll have to add some routes to help that
[09:37:45] arup_r: hum. so add routes..
[09:37:49] arup_r: in route.rb file
[09:42:18] charliesome: has joined #RubyOnRails
[09:43:44] Craigen: has joined #RubyOnRails
[09:43:49] Craigen: has left #RubyOnRails: ()
[09:44:55] xcv: has joined #RubyOnRails
[09:45:57] DmitryBochkarev: has joined #RubyOnRails
[09:51:27] charliesome: has joined #RubyOnRails
[09:54:48] dideler: has joined #RubyOnRails
[10:00:40] stamina: has joined #RubyOnRails
[10:09:27] Ekami: has joined #RubyOnRails
[10:13:58] cih: has joined #RubyOnRails
[10:21:47] chills42: has joined #RubyOnRails
[10:24:39] bronson: has joined #RubyOnRails
[10:30:55] xcesariox: has joined #RubyOnRails
[10:33:18] darkxploit: has joined #RubyOnRails
[10:36:20] annlewis: has joined #RubyOnRails
[10:40:01] aruntomar_: has joined #RubyOnRails
[10:40:17] stardiviner: has joined #RubyOnRails
[10:43:43] dici: has joined #RubyOnRails
[10:45:30] lalalaaa: has joined #RubyOnRails
[10:48:15] sararegan: has joined #RubyOnRails
[10:48:31] lalalaaa: Hi! In my helper, why does `foo << content_tag(:span, bar)` result in `Foo<span>Bar</span>` -- whereas `foo << " " + content_tag(:span, bar)` results in `Foo &lt;span&gt;Bar&lt;/span&gt;`? Trying to get `Foo <span>Bar</span>`.
[10:52:43] eikood: has joined #RubyOnRails
[10:53:49] aruntomar: has joined #RubyOnRails
[10:54:27] FailBit: foo + (" " + content_tag(:span, bar)).html_safe
[10:56:41] pjammer: has joined #RubyOnRails
[10:57:38] htmldrum: has joined #RubyOnRails
[11:00:45] stannard: has joined #RubyOnRails
[11:03:32] lalalaaa: FailBit: testing one sec
[11:05:32] lalalaaa: FailBit: it worked!! cheers mate :)
[11:05:52] p1k: has joined #RubyOnRails
[11:06:21] habitullence: has joined #RubyOnRails
[11:06:35] stamina: has joined #RubyOnRails
[11:07:15] stannard: has joined #RubyOnRails
[11:07:43] crdpink: has joined #RubyOnRails
[11:12:59] p1k: hey, so according to both the online docs and the auto-generated gemfile I should be able to install the edge version of rails with bundle
[11:13:05] p1k: e.g. # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
[11:13:28] p1k: but they do not seem to be correctly linked: Could not find gem 'arel (= 7.0.0.alpha) ruby', which is required by gem 'activerecord (= 5.0.0.alpha) ruby', in any of the sources.
[11:18:13] sevenseacat: you'll need to add a bunch of other github gems to your Gemfile, starting with arel
[11:18:33] harmen: has joined #RubyOnRails
[11:20:51] p1k: why doesn't rails install those as dependencies automatically?
[11:22:07] darrencauthon: has joined #RubyOnRails
[11:22:11] deavid: has joined #RubyOnRails
[11:25:34] bronson: has joined #RubyOnRails
[11:26:43] benhuda: has joined #RubyOnRails
[11:27:58] apow: has joined #RubyOnRails
[11:28:42] sevenseacat: because it doesnt know where to find them
[11:28:56] sevenseacat: you need to specify the github repos
[11:29:10] FailBit: just sittin' here programming in my snuggie =3
[11:29:44] p1k: well neither do I, i can guess github: 'rack/rack' and 'rails/arel' but I have no way to know that the master of those is what what the master of rails is built against, vs the one tagged '7.0.0'
[11:30:19] sevenseacat: there is no one tagged 7.0.0, thats the point
[11:30:33] sevenseacat: thats why you need to specify the github repo
[11:31:26] p1k: https://github.com/rails/arel/commit/2345b80c0cfa0766875274a9e4e237a09e08b302 ?
[11:31:52] sevenseacat: thats a) not a tag, and b) not 7.0.0
[11:32:26] umang: has joined #RubyOnRails
[11:32:43] The_Phoenix: has joined #RubyOnRails
[11:33:13] p1k: oh you're right, the latest tag is actually 6.0.3
[11:35:38] p1k: but over all wouldn't having a directive which is like, build the dependency from the head tag or if this is higher than their highest tag build from the latest head -- still be better than the user manually finding the github repos and assuming he has the right one?
[11:36:09] FailBit: don't think so, the rubygems info doesn't know about the github
[11:36:52] p1k: bundler does github though?
[11:37:00] sevenseacat: I can think of more cases when that would go wrong, than when it would go right
[11:37:06] annlewis: has joined #RubyOnRails
[11:37:22] arBmind: has joined #RubyOnRails
[11:37:27] sevenseacat: plus it adds a metric buttload of overhead for no good reason
[11:37:36] ruurd: has joined #RubyOnRails
[11:37:51] umang: Hi everyone. I've made Statusify. Statusify is a web-application status app, written in Ruby on Rails. It aims to be fast, reliable and awesome.
[11:38:03] umang: I was wondering if anyone would join me.
[11:38:04] sevenseacat: if you want to use unreleased gems, you have to do a little bit more work
[11:38:12] sevenseacat: umang: in what?
[11:38:33] umang: Per se, in further development. Here's the GitHub URL: https://github.com/ur0/Statusify/wiki
[11:38:44] arup_r: umang: opensource ?
[11:39:27] p1k: how that be worse than each user guessing? if the dependencies were specified to a commit/tag at least it would have been tested with those specific dependencies
[11:39:47] umang: Made it to 100+ commits but realized that it's impossible to go on without someone's help.
[11:39:55] umang: Sorry if I'm interrupting
[11:42:26] umang: Anyone up?
[11:45:08] rromanch_: has joined #RubyOnRails
[11:45:27] lalalaaa: umang: I remember I used to spam freenode too years ago looking for people to join my projects
[11:46:21] n008f4g_: has joined #RubyOnRails
[11:46:22] umang: Yeah. It's pretty bad, @lalalaaa, but I can't help.
[11:46:40] lalalaaa: umang: In the end I found noone. I found plenty of help though, and i still do to this day. But for people to actually join my projects I had to pay them
[11:47:14] mostlybadfly: has joined #RubyOnRails
[11:47:27] umang: lalalaa: That's sad. Still bit hopeful, anyways.
[11:47:37] lalalaaa: umang: which is why im broke as f****, working 9-5 sorting letters at the post office and sending all my money to freelancers abroad
[11:47:59] lalalaaa: Not really that sad, im about to become a millionaire any day now ;)
[11:48:34] umang: Yeah, @lalaa. That's but I thought that people like OSS stuff.
[11:49:05] circ-user-fpDxS: has joined #RubyOnRails
[11:49:25] circ-user-wsGMR: has joined #RubyOnRails
[11:51:14] lalalaaa: i dont think they care unless its gems, rails engines or js libs that can benefit their existing work.. full apps from what ive seen have a tendency to die out
[11:51:19] sevenseacat: people do like OSS stuff, but people aren't just going to donate time to something they know nothing about or no interest in
[11:51:23] ruurd: has joined #RubyOnRails
[11:51:40] sevenseacat: your best bet is to get people using it, and then getting those people chipping in
[11:51:57] seank_: has joined #RubyOnRails
[11:52:06] umang: @sevenseacat, I'll try. Any ideas on how to get people to use my stuff?
[11:52:21] sevenseacat: umang: you can start by telling people what exactly it is :P
[11:52:35] harmen: Hello, can somebody help me with a AR query? I want to know how many times a track is played on a radiostation on a certain date. In my view I want to display how many times a song has been played (count track_id), date, station, and trackinformation (from the tracks table through orig_tracktitle) with as less queries as possible.
[11:52:35] harmen: The problem is I can't figure out how to display the count value and always get the error: undefined method `playcount' for #<Playlistitem:0x007f6b4ed893f0>. My model, query and view are here: http://pastebin.com/j2eX3r0X
[11:53:12] lalalaaa: umang: get to the front page of hackernews :P
[11:54:38] umang: @sevenseacat, there goes. Statusify is like one of those apps you run on status.*.com. It informs your about current service incidents, and keeps them updated. Statusify also has support for private incidents, for matters that might not concern the public and are best kept private, say within an organization. I've got a demo at https://statusify-de
[11:54:38] umang: v.herokuapp.com
[11:55:21] sevenseacat: you might want to look at submitting it to things like ruby weekly, hacker news, etc.
[11:55:39] umang: On it. Thanks, everyone.
[11:57:52] Pupeno: has joined #RubyOnRails
[11:59:16] reeve_: has joined #RubyOnRails
[11:59:34] Cervajz: has joined #RubyOnRails
[12:00:47] The_Phoenix: has joined #RubyOnRails
[12:01:18] Cervajz_: has joined #RubyOnRails
[12:03:46] sadaf2606: has joined #RubyOnRails
[12:07:25] aruntomar: has joined #RubyOnRails
[12:11:56] wethu: has joined #RubyOnRails
[12:13:32] workmad3: has joined #RubyOnRails
[12:14:28] pwnd_nsfw: harmen, what does your schema look like?
[12:14:57] harmen: pwnd_nsfw, tnx. one moment I will paste it to pastie
[12:15:12] Grundell: has joined #RubyOnRails
[12:15:25] quazimodo: has joined #RubyOnRails
[12:16:02] harmen: pwnd_nsfw, http://pastie.org/private/tzzy5j7mcbsakd9egvxxpq
[12:19:28] harmen: pwnd_nsfw, the orig_* tables are automatically filled by the radio stations. however the different stations do not write a song the same way, so that's the reason there is a table tracks where I link the different writings to an uniform name.
[12:20:21] pwnd_nfsw: has joined #RubyOnRails
[12:20:52] oyshu29jha: has joined #RubyOnRails
[12:21:01] oyshu29jha: has left #RubyOnRails: ()
[12:21:15] charliesome: has joined #RubyOnRails
[12:21:25] pwnd_nfsw: harmen, playcount isn't even in your schema
[12:21:40] harmen: true, that's a calculated value
[12:21:58] pwnd_nfsw: Where is it being calculated?
[12:22:23] harmen: here: @playlist = Playlistitem
[12:22:24] harmen: .select('count(orig_tracktitles.track_id) as playcount')
[12:22:37] jaopp17sup: has joined #RubyOnRails
[12:22:54] pwnd_nfsw: @playlist.inspect
[12:22:58] vfbah29xpu: has joined #RubyOnRails
[12:24:50] harmen: pwnd_nfsw, it isnt there
[12:25:12] harmen: #<ActiveRecord::Relation [#<Playlistitem id: 10347225, station_id: 40, datetime: "2015-10-03 22:43:38", orig_tracktitle_id: 78, created_at: nil, updated_at: nil>, #<Playlistitem id: 10347404, station_id: 40, datetime: "2015-10-04 09:27:12", orig_tracktitle_id: 90, created_at: nil, updated_at: nil>, etc
[12:25:26] pwnd_nfsw: why don't you just
[12:25:35] pwnd_nfsw: Playlistitem.all.count
[12:26:30] xcv: has joined #RubyOnRails
[12:26:31] qejk: has joined #RubyOnRails
[12:26:32] bronson: has joined #RubyOnRails
[12:26:40] harmen: I don't want to calculate how many songs are played in total, but I wan't to know how many times track X and Y and Z are played on a certain day (or interval)
[12:26:50] lasker85: has joined #RubyOnRails
[12:27:17] arup_r: harmen: use group by
[12:28:30] harmen: arup_r, I already use a group: http://pastie.org/private/anoqjphwdmyydjmelwfba
[12:28:38] ruurd: has joined #RubyOnRails
[12:29:18] The_Phoenix: has joined #RubyOnRails
[12:29:53] xilju31yyp: has joined #RubyOnRails
[12:29:56] harmen: It works fine if I leave out the includes in my query, but then there are thousends of queries afterwards if I want to display the track information in my view
[12:30:59] reeve_: has joined #RubyOnRails
[12:31:23] User458764: has joined #RubyOnRails
[12:32:49] irvhw12ntq: has joined #RubyOnRails
[12:33:04] pwnd_nfsw: erm, it seems like what you're doing can easily be done with AR
[12:33:32] pwnd_nfsw: playlistitem.origtracktitle
[12:33:53] pwnd_nfsw: Your naming bothers me
[12:34:09] harmen: yes naming is a bit complicated
[12:34:22] pwnd_nfsw: OriginalTrackTitle would have been nice lol
[12:34:23] User458764: Hi with Rack how do I map an url to another url? For instance I want that http://www.mysite.com/foo display the content of bar.myserver.com
[12:34:27] pwnd_nfsw: original_track_title
[12:35:50] rromanch_: has joined #RubyOnRails
[12:37:52] annlewis: has joined #RubyOnRails
[12:40:07] lalalaaa: much better
[12:40:24] wethu: has joined #RubyOnRails
[12:40:55] RegulationD: has joined #RubyOnRails
[12:41:17] harmen: pwnd_nfsw, not really I think. (I think I messed up a bit in my paste). A Track can have multiple OrigTrackTitles. and a OrigTrackTitle can be played multiple times a day. I want to count (and display) how many times a Track has been played on a day
[12:41:37] harmen: (on 1 or multiple radio stations)
[12:42:34] banister: has joined #RubyOnRails
[12:44:24] harmen: the reason of this OrigTrackTitle is that a station can play version A and version B of the same song and I want to combine this into 1 track
[12:44:44] pwnd_nsfw: has joined #RubyOnRails
[12:47:51] pontiki: has joined #RubyOnRails
[12:51:04] arathald: has joined #RubyOnRails
[12:53:39] tsujp: has joined #RubyOnRails
[13:01:13] reeve_: has joined #RubyOnRails
[13:02:33] xcv: has joined #RubyOnRails
[13:02:57] yfeldblum: has joined #RubyOnRails
[13:04:36] chipotle: has joined #RubyOnRails
[13:05:42] xcv_: has joined #RubyOnRails
[13:06:11] rails063: has joined #RubyOnRails
[13:10:05] DoubleMalt: has joined #RubyOnRails
[13:13:50] darkxploit: has joined #RubyOnRails
[13:14:11] bitkiller: has joined #RubyOnRails
[13:14:28] stannard: has joined #RubyOnRails
[13:16:27] Spami: has joined #RubyOnRails
[13:17:23] GFF: has joined #RubyOnRails
[13:18:48] xcv: has joined #RubyOnRails
[13:23:47] aruntomar: has joined #RubyOnRails
[13:25:19] cih: has joined #RubyOnRails
[13:27:21] Seich: has joined #RubyOnRails
[13:27:31] bronson: has joined #RubyOnRails
[13:28:57] apow: has joined #RubyOnRails
[13:35:45] xcv: has joined #RubyOnRails
[13:36:33] Fire-Dragon-DoL: has joined #RubyOnRails
[13:37:27] deavid: has joined #RubyOnRails
[13:38:38] annlewis: has joined #RubyOnRails
[13:40:35] havenwood: has joined #RubyOnRails
[13:43:00] ericjphillips: has joined #RubyOnRails
[13:45:29] johnflux: has joined #RubyOnRails
[13:49:11] User458764: has joined #RubyOnRails
[13:50:52] Vats: has joined #RubyOnRails
[13:52:42] seank_: has joined #RubyOnRails
[13:53:17] lasker85: has joined #RubyOnRails
[13:54:29] rclanan: has joined #RubyOnRails
[13:58:04] mhib: has joined #RubyOnRails
[14:00:10] mclee_: has joined #RubyOnRails
[14:00:40] disl: has joined #RubyOnRails
[14:01:42] workmad3: has joined #RubyOnRails
[14:04:33] DoubleMalt: has joined #RubyOnRails
[14:08:32] ruurd: has joined #RubyOnRails
[14:12:12] jgt: has joined #RubyOnRails
[14:13:49] bmalum: has joined #RubyOnRails
[14:14:32] nathanjo: has joined #RubyOnRails
[14:23:21] cashnguns: has joined #RubyOnRails
[14:24:04] chills42: has joined #RubyOnRails
[14:24:11] arup_r: I am using this Gem https://github.com/Nerian/bootstrap-wysihtml5-rails#using-bootstrap-wysihtml5-rails-with-simple_form .. How to use it with form_for ?
[14:24:19] arup_r: I am not using simple_form
[14:25:41] sevenseacat: arup_r: read the section before that then
[14:28:26] bronson: has joined #RubyOnRails
[14:28:29] arup_r: humm sevenseacat I missed it.. thanks
[14:30:04] jgt: has joined #RubyOnRails
[14:30:14] michael_mbp: has joined #RubyOnRails
[14:30:30] shinnya: has joined #RubyOnRails
[14:31:59] FailBit: https://github.com/vmg/houdini is there an existing gem for rails for this?
[14:32:23] FailBit: oh herp https://github.com/brianmario/escape_utils
[14:33:24] sdwrage: has joined #RubyOnRails
[14:36:20] workmad3: has joined #RubyOnRails
[14:36:32] lasker85: has joined #RubyOnRails
[14:36:33] sonofdirt: has joined #RubyOnRails
[14:37:14] simplyianm: has joined #RubyOnRails
[14:38:47] mary5030: has joined #RubyOnRails
[14:38:49] rickmasta: has joined #RubyOnRails
[14:39:24] annlewis: has joined #RubyOnRails
[14:39:30] lasker85: has joined #RubyOnRails
[14:40:37] sonofdirt: has joined #RubyOnRails
[14:41:17] reeve_: has joined #RubyOnRails
[14:41:42] sonofdirt: has joined #RubyOnRails
[14:43:03] darrencauthon: has joined #RubyOnRails
[14:43:58] darrencauthon: has joined #RubyOnRails
[14:44:09] blackmesa: has joined #RubyOnRails
[14:44:47] alex88: has joined #RubyOnRails
[14:44:52] darrencauthon: has joined #RubyOnRails
[14:45:12] srinidhi: has joined #RubyOnRails
[14:46:47] stannard: has joined #RubyOnRails
[14:47:16] Cervajz: has joined #RubyOnRails
[14:49:23] Quintasan: has joined #RubyOnRails
[14:49:23] Quintasan: has joined #RubyOnRails
[14:51:30] bmalum: has joined #RubyOnRails
[14:52:46] lalalaaa: Hi! Why is an "empty cache and hard reload" in Chrome no longer enough in development mode? Seems I have to restart my Rails server (despite having `spring` installed) and start a new incognito window every time I want to see a new change.
[14:52:53] lalalaaa: This was anyhow the case with changes I just made to my application helper.
[14:53:00] Ekami: has joined #RubyOnRails
[14:55:18] FailBit: changes in helpers should auto reload
[14:55:36] FailBit: (and don't change the compiled assets, so you don't need to purge asset caches)
[14:56:28] kixdl38lxp: has joined #RubyOnRails
[14:57:00] jessemcgilallen: has joined #RubyOnRails
[14:58:10] kixdl38lxp: has left #RubyOnRails: ()
[14:59:43] mehwork: when i try to use pow, http://myapp.dev errors with "LoadError: cannot load such file -- bundler/setup". I did what https://github.com/basecamp/pow/wiki/Troubleshooting says to do for rbenv / zsh but it still happens. Anyone ideas?
[15:00:52] lasker85: has joined #RubyOnRails
[15:04:15] lalalaaa: FailBit: yup, idk what this fuss is all about though
[15:09:14] jokke-: has joined #RubyOnRails
[15:10:36] brnpcn: has joined #RubyOnRails
[15:11:00] sdwrage: has joined #RubyOnRails
[15:12:31] aruntomar: has joined #RubyOnRails
[15:12:52] krz: has joined #RubyOnRails
[15:15:32] pontiki: has joined #RubyOnRails
[15:19:40] brnpcn: has left #RubyOnRails: ()
[15:21:27] banister: has joined #RubyOnRails
[15:21:43] darrencauthon: has joined #RubyOnRails
[15:22:13] bmalum: has joined #RubyOnRails
[15:23:03] mary5030: has joined #RubyOnRails
[15:23:59] mehwork: nm it's because i needed to restart pow, which that page didn't mention
[15:25:13] lxsameer: has joined #RubyOnRails
[15:25:14] Pumukel: has joined #RubyOnRails
[15:26:33] Quintasan: has joined #RubyOnRails
[15:26:48] User458764: has joined #RubyOnRails
[15:29:25] bronson: has joined #RubyOnRails
[15:29:45] apow: has joined #RubyOnRails
[15:33:54] DmitryBochkarev: has joined #RubyOnRails
[15:40:10] annlewis: has joined #RubyOnRails
[15:42:03] willardg: has joined #RubyOnRails
[15:44:50] Cervajz_: has joined #RubyOnRails
[15:45:50] User458764: has joined #RubyOnRails
[15:50:19] greengriminal: has joined #RubyOnRails
[15:52:27] lasker85: has joined #RubyOnRails
[15:53:26] seank_: has joined #RubyOnRails
[15:56:27] Lytol: has joined #RubyOnRails
[15:56:32] Guam: has joined #RubyOnRails
[15:57:09] konsolebox: has joined #RubyOnRails
[15:58:35] arup_r: what is `pow` ?
[16:01:31] reeve_: has joined #RubyOnRails
[16:01:59] konsolebox: has joined #RubyOnRails
[16:03:41] ruurd: has joined #RubyOnRails
[16:04:32] moeabdol: has joined #RubyOnRails
[16:06:24] konsolebox: has joined #RubyOnRails
[16:07:12] mehwork: a ruby web/app server for macs that's better than webrick for local development
[16:07:42] mehwork: http://pow.cx/
[16:08:17] FailBit: why not just use puma
[16:08:34] mehwork: haven't heard of it
[16:08:55] havenwood: has joined #RubyOnRails
[16:10:01] capin: ACTION uses puma ;)
[16:14:24] qejk: has joined #RubyOnRails
[16:16:39] octo2: has joined #RubyOnRails
[16:18:35] mehwork: puma looks like it's more for production. Pow is more just a simple way to have a local app server that makes it so you have app.dev dns automatically set up without having to use /etc/hosts
[16:20:17] mehwork: one thing i like about pow is you don't have to have some terminal tab running somewhere, it runs in the background
[16:20:39] lasker85_: has joined #RubyOnRails
[16:24:30] workmad3: has joined #RubyOnRails
[16:24:40] lalalaaa: has joined #RubyOnRails
[16:25:32] banister: has joined #RubyOnRails
[16:25:47] moeabdol: has joined #RubyOnRails
[16:26:39] meoblast001: has joined #RubyOnRails
[16:26:55] mehwork: but i'll have to check it out when i get to production. I was planning to use unicorn but that looks better
[16:27:41] konsolebox: has joined #RubyOnRails
[16:29:32] bruno-: has joined #RubyOnRails
[16:30:25] bronson: has joined #RubyOnRails
[16:30:48] corioliss: has joined #RubyOnRails
[16:32:29] Lytol: has joined #RubyOnRails
[16:33:37] mary5030: has joined #RubyOnRails
[16:33:48] Grundell: has joined #RubyOnRails
[16:34:05] alex88: has joined #RubyOnRails
[16:37:04] nathanjo: has joined #RubyOnRails
[16:37:43] EvilEpoch: has joined #RubyOnRails
[16:38:17] acti0nman: has joined #RubyOnRails
[16:38:57] Contigi: has joined #RubyOnRails
[16:40:56] annlewis: has joined #RubyOnRails
[16:41:04] ascarter: has joined #RubyOnRails
[16:41:15] lasker85: has joined #RubyOnRails
[16:43:18] jun: has joined #RubyOnRails
[16:43:47] habitullence: has joined #RubyOnRails
[16:51:08] darrencauthon: has joined #RubyOnRails
[16:51:48] willardg: has joined #RubyOnRails
[16:53:21] quazimod1: has joined #RubyOnRails
[16:55:47] havenwood: has joined #RubyOnRails
[16:55:54] ruurd: has joined #RubyOnRails
[16:57:02] gerep: has joined #RubyOnRails
[16:58:15] EminenceHC: has joined #RubyOnRails
[17:01:24] johnflux: has joined #RubyOnRails
[17:01:56] mloy: has joined #RubyOnRails
[17:08:29] stannard: has joined #RubyOnRails
[17:13:24] disl_: has joined #RubyOnRails
[17:13:58] Trynemjoel: has joined #RubyOnRails
[17:14:01] stannard: has joined #RubyOnRails
[17:14:19] arup_r: I am getting html content from outside which I will then send as a email body. should I need to use both html_safe and sanitaize ?
[17:14:24] arup_r: https://gist.github.com/aruprakshit/63f2115f0be69f6de3df
[17:16:12] ishikawa91: has joined #RubyOnRails
[17:21:39] workmad3: has joined #RubyOnRails
[17:23:53] Maletor: has joined #RubyOnRails
[17:24:35] banister: has joined #RubyOnRails
[17:25:04] ruurd: has joined #RubyOnRails
[17:26:47] rickmasta: has joined #RubyOnRails
[17:26:57] workmad3: has joined #RubyOnRails
[17:30:45] apow: has joined #RubyOnRails
[17:31:18] bronson: has joined #RubyOnRails
[17:31:54] yaymukund: has joined #RubyOnRails
[17:33:44] johnnygoodman: has joined #RubyOnRails
[17:33:49] stannard: has joined #RubyOnRails
[17:34:09] PhantomSpank: has joined #RubyOnRails
[17:35:30] cornerma1: has joined #RubyOnRails
[17:35:32] toretore: has joined #RubyOnRails
[17:36:05] lrocksmashtime1: has joined #RubyOnRails
[17:36:40] deavid: has joined #RubyOnRails
[17:38:03] johnnygoodman: I have a model with :first_name and :last_name attributes, I???d like to alias them so that :name outputs #{:first_name} {:last_name}. The alias attribute only allows one attribute to be called another. What method or keyword should be googled?
[17:38:28] Kjarva: has joined #RubyOnRails
[17:40:24] aruntomar: has joined #RubyOnRails
[17:41:26] vigasdeep: has joined #RubyOnRails
[17:41:27] darrencauthon: has joined #RubyOnRails
[17:41:41] annlewis: has joined #RubyOnRails
[17:42:19] smathy: has joined #RubyOnRails
[17:42:40] FailBit: def name; "#{first_name} #{last_name}"; end
[17:42:44] Kjarva: hey folks, was wondering if anyone can suggest where I go next with rails ;) I've finished the rails tutorial, I'm just finishing up the book agile web development with rails 4 - Is there anything else I should probably read before just jumping in and creating something from scratch?
[17:42:45] johnnygoodman: "#{first_name} #{last_name}"
[17:43:04] johnnygoodman: thank you FailBit
[17:43:12] FailBit: johnnygoodman: the better way to do it is to just have "name"
[17:43:17] FailBit: and then not care about first or last
[17:43:27] FailBit: depends on your use case, though
[17:44:16] FailBit: (as someone with two last names, I often get irritated at web forms that don't let me put a space in the last name field)
[17:44:52] gambl0re: has joined #RubyOnRails
[17:45:38] dikaio: has joined #RubyOnRails
[17:45:52] baweaver: has joined #RubyOnRails
[17:46:31] jun: has joined #RubyOnRails
[17:49:17] C0L0R: has joined #RubyOnRails
[17:49:42] SteenJobs: has joined #RubyOnRails
[17:52:33] mclunar: has joined #RubyOnRails
[17:52:41] yottanami: has joined #RubyOnRails
[17:53:02] mclunar: i apparently installed a rails app inside my base directory
[17:53:04] mclunar: like, at ~
[17:53:07] mclunar: how do i get rid of it lol
[17:53:18] mclunar: cause now i can't do any rails stuff anywhere
[17:54:05] yottanami: I need to create code/deployment/build/server configuration DOCUMENTATION. do you have any recommend?
[17:54:13] seank_: has joined #RubyOnRails
[17:54:21] yottanami: Is there any solution/standard?
[17:58:21] octo2: has joined #RubyOnRails
[17:58:31] Coldblackice_: has joined #RubyOnRails
[17:59:47] stannard: has joined #RubyOnRails
[18:00:52] solars: has joined #RubyOnRails
[18:01:50] iliketurtles: has joined #RubyOnRails
[18:05:37] bkulbida: has joined #RubyOnRails
[18:06:42] willardg: has joined #RubyOnRails
[18:07:31] arup_r: mclunar: Installed in local machine ?
[18:07:47] The_Phoenix: has joined #RubyOnRails
[18:08:17] arup_r: johnnygoodman: see this is why we say use gist. :D
[18:08:44] arup_r: kjarva: put shit inside your method.. now ask him to clean it
[18:08:50] FailBit: and why we don't say "use pastie"
[18:09:06] The_Phoenix: has joined #RubyOnRails
[18:13:48] atmosx_laptop: has joined #RubyOnRails
[18:14:33] nfk: has joined #RubyOnRails
[18:14:57] bendangelo: has joined #RubyOnRails
[18:15:28] yottanami: arup_r, Hey
[18:15:42] arup_r: yottanami: 0/
[18:15:42] samgranieri: has joined #RubyOnRails
[18:16:22] yottanami: arup_r, I am looking for a solution to document the code and deployment steps, any suggestion?
[18:16:41] youngbaks: has joined #RubyOnRails
[18:17:22] arup_r: yottanami: I saw your question. But I don't know this. I never used anything. Wait for sometime here.. then ask #ruby
[18:17:37] atmosx_laptop: I'm using flash.each do |key, value|; <div class="alert alert-<%=key %>"<%= value %> </div>; <% end %> - to display flash messages on rails. But the 'key' is 'alert' instead of warning. It's devise after failed login. Shouldn't an 'error' or 'warning' or something else be returned instead?
[18:22:04] EminenceHC: has joined #RubyOnRails
[18:25:04] Balzrael: has joined #RubyOnRails
[18:25:26] stannard: has joined #RubyOnRails
[18:26:38] nickjj: yottanami, i typically use a readme file
[18:27:00] nickjj: and if your deploy related code requires too much documentation then you might want to look at ways of simplifying it a lot
[18:27:37] EvilEpoch: Warm Greetings to all, I am The EvilEpoch.
[18:29:51] benhuda: has joined #RubyOnRails
[18:30:15] Maletor: has joined #RubyOnRails
[18:30:49] jun: has joined #RubyOnRails
[18:31:10] bmalum: has joined #RubyOnRails
[18:32:17] bronson: has joined #RubyOnRails
[18:33:45] lalalaaa: what's up EvilEpoch?
[18:33:57] arup_r: atmosx_laptop: Probably you overrode the controller method ans sending your notice ?
[18:34:05] arup_r: I meant alerts..
[18:34:16] atmosx_laptop: no idea, I'm downloading subs for my wife
[18:34:29] atmosx_laptop: Onoce I'm done with it, I'll take a look at the controller agian
[18:34:36] arup_r: Devise wouldn't give you alert key as flash message
[18:34:47] arup_r: I am sure it is you :)
[18:34:50] arup_r: not devise
[18:34:53] EvilEpoch: Greetings to lalalaaa from The EvilEpoch.
[18:35:28] atmosx: ACTION It's probably me - Sting
[18:35:41] arup_r: umm.. I knew
[18:36:10] atmosx: arup_r: here https://www.youtube.com/watch?v=SUYI7kIR0S4 :-)
[18:36:19] atmosx: really awesome music by Sting and Clapton
[18:37:18] arup_r: I am broke some functionality after adding a new feature... So I'm now it.
[18:37:24] arup_r: I broke**
[18:38:15] arup_r: EvilEpoch: Don't ask.. event don't answer.. confusing character...
[18:38:16] solars: has joined #RubyOnRails
[18:38:36] arup_r: are you here to watch us.. ? :D
[18:40:11] bkulbida: has joined #RubyOnRails
[18:40:39] aruntomar_: has joined #RubyOnRails
[18:40:50] samgranieri: has joined #RubyOnRails
[18:42:27] annlewis: has joined #RubyOnRails
[18:42:43] marr: has joined #RubyOnRails
[18:44:38] Guam: has joined #RubyOnRails
[18:45:20] banister: has joined #RubyOnRails
[18:46:22] chrislotix: has joined #RubyOnRails
[18:50:32] ruurd: has joined #RubyOnRails
[19:05:02] penguinpowernz: has joined #RubyOnRails
[19:11:06] bmalum: has joined #RubyOnRails
[19:15:04] workmad3: has joined #RubyOnRails
[19:16:51] tenderlo_: has joined #RubyOnRails
[19:17:35] yaymukund: has joined #RubyOnRails
[19:17:48] das3in: has joined #RubyOnRails
[19:19:22] atomical: has joined #RubyOnRails
[19:19:40] Jet4Fire: has joined #RubyOnRails
[19:21:37] stamina: has joined #RubyOnRails
[19:25:21] Guam1: has joined #RubyOnRails
[19:25:22] Lat: has joined #RubyOnRails
[19:25:48] \13k_: has joined #RubyOnRails
[19:26:12] diprotic: has joined #RubyOnRails
[19:26:16] arup_: has joined #RubyOnRails
[19:26:37] ereslibre_laptop: has joined #RubyOnRails
[19:26:37] ereslibre_laptop: has joined #RubyOnRails
[19:26:55] workmad3: has joined #RubyOnRails
[19:27:30] WhereIsMySpoon: has joined #RubyOnRails
[19:27:30] WhereIsMySpoon: has joined #RubyOnRails
[19:27:36] jxie_: has joined #RubyOnRails
[19:28:35] samgranieri_: has joined #RubyOnRails
[19:28:48] lagweezl1: has joined #RubyOnRails
[19:28:48] aujt74_: has joined #RubyOnRails
[19:28:53] RTG`: has joined #RubyOnRails
[19:28:59] Hamled|Erp: has joined #RubyOnRails
[19:29:16] freedrul1: has joined #RubyOnRails
[19:29:32] atmosx: has joined #RubyOnRails
[19:30:32] sonofdirt: has joined #RubyOnRails
[19:30:39] chridal_: has joined #RubyOnRails
[19:30:55] djinni`_: has joined #RubyOnRails
[19:31:01] raunicolae: has joined #RubyOnRails
[19:31:05] neanias: has joined #RubyOnRails
[19:31:06] atrius_: has joined #RubyOnRails
[19:31:06] shawnacscott: has joined #RubyOnRails
[19:31:15] bmalum: has joined #RubyOnRails
[19:31:16] humd1ng3r: has joined #RubyOnRails
[19:31:28] OnkelTem_: has joined #RubyOnRails
[19:31:32] apow: has joined #RubyOnRails
[19:31:37] tekk: has joined #RubyOnRails
[19:31:53] Scientz: has joined #RubyOnRails
[19:32:04] reber: has joined #RubyOnRails
[19:32:04] apeiros: has joined #RubyOnRails
[19:32:06] Siyo: has joined #RubyOnRails
[19:32:06] Siyo: has joined #RubyOnRails
[19:32:09] wenchenx_: has joined #RubyOnRails
[19:32:18] DylanJ: has joined #RubyOnRails
[19:32:18] Radar: has joined #RubyOnRails
[19:32:34] yardenbar: has joined #RubyOnRails
[19:32:41] baweaver: has joined #RubyOnRails
[19:32:55] Takumo: has joined #RubyOnRails
[19:32:56] Takumo: has joined #RubyOnRails
[19:33:03] royvandermeij: has joined #RubyOnRails
[19:33:12] bronson: has joined #RubyOnRails
[19:33:18] diegobiavati: has joined #RubyOnRails
[19:33:54] shaman42: has joined #RubyOnRails
[19:34:08] diegobiavati: has joined #RubyOnRails
[19:34:13] linocisco: has joined #RubyOnRails
[19:34:40] Radar: GOOD MORNING
[19:34:49] lurkmaster: has joined #RubyOnRails
[19:34:49] linocisco: I am on ubuntu 15.04, what do I install to learn and develop ruby on rails on it?
[19:35:01] Radar: linocisco: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[19:35:04] tweeeaks: has joined #RubyOnRails
[19:35:11] uxp: has joined #RubyOnRails
[19:35:16] FailBit: you install a ruby version manager, get latest ruby, and then bundle from there
[19:35:16] workmad3: has joined #RubyOnRails
[19:35:51] linocisco: thanks let me check what they are
[19:36:04] joshsmith: has joined #RubyOnRails
[19:39:03] MissionCritical: has joined #RubyOnRails
[19:39:13] linocisco: I was to install alot during my one day training course of ruby on rails , atom, vagrant, etc. it is a crash course and didn't really understand them well. afraid my ruby on rails has messed up inside
[19:40:46] annlewis: has joined #RubyOnRails
[19:44:42] Guam: has joined #RubyOnRails
[19:45:41] EminenceHC: has joined #RubyOnRails
[19:45:47] atmosx: morning Radar
[19:45:52] atmosx: ACTION its 22:45 here lol
[19:46:10] Radar: how about them time zones
[19:46:55] baweaver: it be noon here
[19:47:03] atmosx: UTC/GMT +3 here
[19:48:12] mary5030: has joined #RubyOnRails
[19:48:36] idd2d: has joined #RubyOnRails
[19:49:45] chills42: has joined #RubyOnRails
[19:54:35] j0sephandres: has joined #RubyOnRails
[19:54:57] seank_: has joined #RubyOnRails
[19:55:42] rickmasta: has joined #RubyOnRails
[19:55:47] j0sephandres: Hello, Do you know how to make paperclip gem store and display rectangular images?
[19:57:00] jessemcgilallen: has joined #RubyOnRails
[19:58:22] gavit: i have a model holidays, and a model users which has birthdays
[19:58:45] gavit: is there a way to get all the dates together and display yhem as events?
[19:59:00] dllama: has joined #RubyOnRails
[20:00:37] das3in: Hi everyone, this gist is long but I'm trying to make a survey that accepts multiple-answers via a checkbox. I'm really confused about the error message about a foreign_key constraint and I'm not sure if it's hte form or the data model https://gist.github.com/das3in/bd2b855d7eeae4235080
[20:02:44] j0sephandres: Hello, Do you know how to make paperclip gem store and display rectangular images?
[20:02:55] bendangelo: has joined #RubyOnRails
[20:03:07] FailBit: is there a problem with what you're doing, j0sephandres
[20:03:13] Guam: has joined #RubyOnRails
[20:03:58] lasker85: has joined #RubyOnRails
[20:04:30] Pupeno: has joined #RubyOnRails
[20:04:41] j0sephandres: FailBit, i'v used paperclip before, successfully but always with square images now i need to rectangular but i don't know how to do that
[20:04:57] cihad: has joined #RubyOnRails
[20:05:05] FailBit: okay but paperclip is made for storing any images
[20:05:15] FailBit: you're thinking about this waaaay too hard
[20:05:36] jun: has joined #RubyOnRails
[20:06:31] lalalaaa: j0sephandres: if i recall correctly paperclip uses imagemagick, so find out how to set imagemagick-style image dimensions in your paperclip styles
[20:07:09] jgt: anyone using the public activity gem?
[20:07:13] Pavster: has joined #RubyOnRails
[20:11:24] jgt: arup_: do you know how custom fields work? I'm building a multi-tenant thing, and every segregated model belongs to a Tenant
[20:11:34] jgt: I'm doing it with default scopes
[20:11:48] jgt: I'd like to set a default scope on activities
[20:11:58] jgt: well, I think I do anyway???
[20:13:55] arup_: so issue solved.. coo :)
[20:15:06] arup_: What is the issue
[20:16:20] jgt: arup_: actually, I might have been confusing myself. I'll test if the tenant is set correctly if the default scope is set on the tracked model
[20:17:02] jgt: I was trying to do something like `tracked custom_field: current_tenant`, but it was just collapsing
[20:20:17] arup_: no idea. I didn't meet such a requirement..
[20:20:21] jenrzzz: has joined #RubyOnRails
[20:20:58] arup_: it tracks create, update n destroy
[20:22:04] noodle: has joined #RubyOnRails
[20:24:24] Maletor: has joined #RubyOnRails
[20:24:42] Guam: has joined #RubyOnRails
[20:25:03] lasker85: has joined #RubyOnRails
[20:25:05] arup_: u want to track a custom field ?
[20:25:25] jgt: arup_: my `activities` table has a `tenant_id` field
[20:25:39] jgt: arup_: but when I try and set it I get NoMethodError: undefined method `tenant=' for #<PublicActivity::Activity:0x007fa1cc418438>
[20:27:59] imp4t: has joined #RubyOnRails
[20:31:21] linocisco: Radar, you got me short to the point I was looking for
[20:31:22] quazimodo: has joined #RubyOnRails
[20:31:37] smathy: jgt, !code
[20:31:37] helpa: jgt: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
[20:31:46] linocisco: Radar, big thanks for your link that save time alot
[20:32:04] ariedler: has joined #RubyOnRails
[20:32:17] linocisco: Radar, the next thing would be to find IDE
[20:32:58] lalalaaa: sorry helpa
[20:33:04] lalalaaa: helpa: help
[20:33:21] yaymukund: has joined #RubyOnRails
[20:33:27] jgt: lalalaaa: sure, one moment
[20:33:40] lalalaaa: maybe we could add a suggestion for http://code.runnable.com to helpa's !code as well?
[20:34:12] bronson: has joined #RubyOnRails
[20:34:53] EminenceHC: has joined #RubyOnRails
[20:36:41] blackmesa: has joined #RubyOnRails
[20:37:11] imp4t: has joined #RubyOnRails
[20:37:35] omnicoda: has joined #RubyOnRails
[20:39:15] smathy: People struggle enough with making a gist.
[20:39:33] EminenceHC: has joined #RubyOnRails
[20:39:52] rhizome: jsfiddle is a pain
[20:40:10] jgt: lalalaaa: this is the thing I'm trying to do: https://gist.github.com/jezen/9cc10287cae76372a74a
[20:40:28] omnicoda: has left #RubyOnRails: ()
[20:43:17] smathy: jgt, and you get the error on the `tracked` call?
[20:44:19] jgt: smathy: I *think* it was because I was trying to assign a Tenant object to `tenant`. I'll do it by assigning an integer to `tenant_id` now instead.
[20:44:50] smathy: Didn't answer my question.
[20:46:31] imp4t: has joined #RubyOnRails
[20:47:02] EminenceHC: has joined #RubyOnRails
[20:47:56] rromanch_: has joined #RubyOnRails
[20:49:26] Guam: has joined #RubyOnRails
[20:52:48] EminenceHC: has joined #RubyOnRails
[20:55:55] imp4t: has joined #RubyOnRails
[20:56:34] lasker85: What is the best way to get .csv or .xls data into a rails database?
[20:57:20] smathy: lasker85, the CSV module for the former, convert to CSV for the latter.
[21:01:17] Guam: has joined #RubyOnRails
[21:04:35] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[21:05:06] workmad3: has joined #RubyOnRails
[21:06:20] Trynemjoel: has joined #RubyOnRails
[21:08:13] mary5030: has joined #RubyOnRails
[21:10:23] ciree: how can i have strong parameters specific to certain actions?
[21:10:29] ciree: i dont want all my actions to have the same strong parameters
[21:12:03] ciree: derp....you define private methods that are the permitted
[21:13:02] marsik: has joined #RubyOnRails
[21:13:36] imp4t: has joined #RubyOnRails
[21:13:37] Guam: has joined #RubyOnRails
[21:16:29] Quintasan: has joined #RubyOnRails
[21:16:29] Quintasan: has joined #RubyOnRails
[21:18:11] pecpec: has joined #RubyOnRails
[21:20:36] TheNet: has joined #RubyOnRails
[21:22:14] mices: i'm trying to do a boolean select in a _form like with No for 0 and Yes for 1 i don't understand how to pass the value/option pairs to f.select
[21:22:42] TheNet: I'm in a situation where I want to store events (in an events model) where one player (player model) kills another player. Is there an association type that would fit my need? Or should I just store the ids of the related players in separate columns?
[21:22:56] mices: the name of the field is subscribed
[21:23:13] Radar: mices: wtf
[21:23:27] marsik: has left #RubyOnRails: ()
[21:23:29] marsik: has joined #RubyOnRails
[21:23:30] Radar: mices: Why are you using a select box for what a set of two radio buttons should be used for?
[21:23:41] Radar: Or even a check box!
[21:24:23] lasker85: has joined #RubyOnRails
[21:24:37] FailBit: I added peek-rblineprof to my gemfile and the results are terrifying
[21:25:58] Seich: has joined #RubyOnRails
[21:26:05] deavid: has joined #RubyOnRails
[21:26:22] FailBit: form_tag takes an average of 0.9ms to run
[21:26:24] shinnya: has joined #RubyOnRails
[21:26:50] Guam: has joined #RubyOnRails
[21:27:03] zhkirill: has joined #RubyOnRails
[21:29:13] Zesky: has joined #RubyOnRails
[21:30:05] Radar: 0.9ms?! why won't somebody think of the children?
[21:30:05] devdazed: has joined #RubyOnRails
[21:31:44] FailBit: cancancan is rather slow, at 0.5ms per authorization check
[21:31:54] pontiki: has joined #RubyOnRails
[21:32:01] jwang: has joined #RubyOnRails
[21:32:03] imp4t: has joined #RubyOnRails
[21:32:06] lalalaaa: FailBit: interesting tool
[21:32:08] disl: has joined #RubyOnRails
[21:32:26] lalalaaa: FailBit: does it replace rack-mini-profiler?
[21:32:34] apow: has joined #RubyOnRails
[21:32:43] FailBit: you also want to install the main Peek gem
[21:33:17] sameerynho: has joined #RubyOnRails
[21:33:41] lasker85: has joined #RubyOnRails
[21:33:46] tubbo: the question is...what is form_tag doing in there that takes so long?
[21:33:50] tubbo: err, "so long"
[21:34:43] Radar: first day back at work
[21:34:53] Radar: time to play everyone's favourite game: "email"
[21:35:04] pontiki: whack-a-mail
[21:35:04] FailBit: 0.9ms is a pretty long time considering the other helpers take microseconds to run
[21:35:17] tubbo: email, aka "adult tetris"
[21:35:26] bronson: has joined #RubyOnRails
[21:35:29] pontiki: what happens when you fill a row?
[21:35:35] ruurd: has joined #RubyOnRails
[21:35:41] tubbo: pontiki: the point is to get to zero but you can never get to zero
[21:35:51] tubbo: as soon as you do another block starts coming in
[21:36:02] pontiki: now the theme music is running through my head
[21:36:11] lalalaaa: does it really replace rack-mini-profiler though or should they be working together
[21:36:37] SteenJobs: has joined #RubyOnRails
[21:36:49] Aeyrix: Radar: My solution is to select all and mark as read.
[21:36:50] lalalaaa: oh yes it does, my bad
[21:36:51] sarink: has joined #RubyOnRails
[21:36:58] Aeyrix: If it was important they'll email again. Or call.
[21:37:03] mices: how do i pass values to check_box_tag(:subscribed)
[21:37:07] Radar: Aeyrix: Yes but there might be something in there that people really want me to read! #lol
[21:37:31] Aeyrix: So they'll email you again!
[21:37:53] Radar: HELPA HAS SPOKEN
[21:38:05] gavit: I have a User with a day_of_birth, and a Holiday with a date_of_holiday. Can I make a model 'without' a db migration which just uses these these two models?
[21:38:07] Aeyrix: Concentrate and email again.
[21:38:11] elwristo: has joined #RubyOnRails
[21:38:16] tubbo: FailBit: if you have something like form_tag url: users_path(user), i think rails is executing the db query lazily and so it appears as though the form_tag is taking a long time
[21:38:33] FailBit: tubbo: I'm not doing a db query here
[21:38:36] FailBit: hence, form_tag
[21:38:41] FailBit: if I was I would use form_for
[21:39:01] tubbo: FailBit: some people don't use form_for in certain circumstances for a variety of reasons
[21:39:04] tubbo: or at all
[21:40:04] Guam: has joined #RubyOnRails
[21:40:54] lalalaaa: man i love stumbling upon awesome gems like peek & co thanks again FailBit
[21:42:11] FailBit: cancancan is consistently very slow
[21:43:15] FailBit: string interpolation is 0.1ms per string
[21:43:42] uberjar: has joined #RubyOnRails
[21:44:47] FailBit: nice, there's a big architectural design error that I wasn't even thinking of and that just reminded me of it
[21:45:29] mices: <%= check_box_tag('subscribed','1') %><%= f.label :subscribed %> doesn't update the database
[21:46:07] pontiki: of course not, it's just a form tag
[21:46:54] mices: it's not updating the table when i submit
[21:46:56] pontiki: if you want it associated with a model record, use f.check_box
[21:47:04] mices: yikes sorry
[21:49:05] yaymukund: has joined #RubyOnRails
[21:50:23] imp4t: has joined #RubyOnRails
[21:50:47] htmldrum: has joined #RubyOnRails
[21:51:03] mices: <%= f.check_box("subscribed","1") %><%= f.label :subscribed %> not
[21:51:10] msyvich: has joined #RubyOnRails
[21:51:20] Guest82158: has left #RubyOnRails: ()
[21:51:47] mices: pontiki:^
[21:52:45] yfeldblum: has joined #RubyOnRails
[21:52:52] uberjar: has left #RubyOnRails: ()
[21:54:19] tubbo: mices: are you permitting that parameter?
[21:54:39] tubbo: also i don't think that's how you pass a value to check_box
[21:55:31] mloy: has joined #RubyOnRails
[21:55:46] seank_: has joined #RubyOnRails
[21:57:19] mices: oh that's what the problem is i just added it i forgot to permit it ty
[21:58:00] rodfersou: has joined #RubyOnRails
[21:58:05] mices: shouldn't it be :subscribed to fill in the form when it loads
[21:58:34] pontiki: but i think it might be smart enough to make it a symbol if need be
[21:58:53] pontiki: if it's just doing a .send, then you can pass either
[21:58:59] Pumukel: has joined #RubyOnRails
[21:58:59] darrencauthon: has joined #RubyOnRails
[21:59:03] pontiki: but i don't know what's underneath that
[21:59:14] mices: a boolean
[21:59:29] pontiki: no i mean when it sets the value in the record
[22:00:00] mices: it's on one of my admin forms when i check the box it sets to 1
[22:00:09] pontiki: obj.send("scheduled=",value) is the same as obj.send(:scheduled=, value) is what i mean
[22:00:20] darrencauthon: has joined #RubyOnRails
[22:00:41] mices: in my code i never use the send method
[22:00:47] pontiki: of course not
[22:00:57] pontiki: that doesn't mean AR isn't using it
[22:01:19] darrencauthon: has joined #RubyOnRails
[22:01:20] mices: what about ":scheduled"
[22:01:56] mices: would that work too?
[22:02:12] pontiki: obj.send("method") is the same as obj.send(:method) -- is that generic enough to convey the point?
[22:03:00] bmalum: has joined #RubyOnRails
[22:03:02] mices: the rails guide to checkbox i was looking at wasn't using oo format
[22:03:24] hangtime21: has joined #RubyOnRails
[22:07:03] hangtime21: has joined #RubyOnRails
[22:07:08] A124: has joined #RubyOnRails
[22:09:55] Lytol: has joined #RubyOnRails
[22:10:03] Guam: has joined #RubyOnRails
[22:10:09] Guam: has left #RubyOnRails: ()
[22:10:37] lalalaaa: pontiki: a friend of mine just got accepted into the kontiki2 expedition (http://www.kontiki2.com/)
[22:12:32] rickmasta: has joined #RubyOnRails
[22:13:34] mices: this gets me an undefined method 'merge' for "1":String <%= f.check_box(:subscribed,"1") %>
[22:14:41] mices: pontiki: ^
[22:15:27] pwnd_nsfw: has joined #RubyOnRails
[22:15:39] IceyEC: has joined #RubyOnRails
[22:16:54] imp4t: has joined #RubyOnRails
[22:18:45] mary5030: has joined #RubyOnRails
[22:20:50] idd2d: has joined #RubyOnRails
[22:22:26] mices: ok i got it working
[22:22:36] mices: i did it like this
[22:22:51] willardg: has joined #RubyOnRails
[22:22:55] mices: <%= f.check_box(:subscribed) %> <%= f.label :subscribed %>
[22:23:08] mices: i didn't have to pass any values it defaults to 1
[22:23:14] mices: i dunno how
[22:23:45] OscuroAA: has joined #RubyOnRails
[22:23:51] annlewis: has joined #RubyOnRails
[22:24:11] IceyEC: has joined #RubyOnRails
[22:24:23] mices: i guess in knowing it's a boolean field
[22:25:51] pontiki: pontiki means 'mouse' in Greek: ??????????????
[22:28:01] insu: has joined #RubyOnRails
[22:28:42] OscuroAA: pontiki, that's a fun fact!
[22:32:14] jun: has joined #RubyOnRails
[22:35:19] imp4t: has joined #RubyOnRails
[22:35:35] SteenJobs: has joined #RubyOnRails
[22:36:05] bronson: has joined #RubyOnRails
[22:37:02] pontiki: i'm mostly known as tamouse around the 'net
[22:38:52] pydave6367: has joined #RubyOnRails
[22:39:34] lalalaaa: cool i didnt know that
[22:40:06] SteenJobs: has joined #RubyOnRails
[22:40:58] pontiki: i wish i could get it on g+ and fb
[22:41:08] pontiki: stupid real name policies
[22:42:23] alan_andrade: has joined #RubyOnRails
[22:42:23] FailBit: I'm staying the hell away from bookface
[22:42:40] pontiki: it's still the best way for me to stay in touch with my kids
[22:42:40] alan_andrade: has left #RubyOnRails: ()
[22:42:46] pontiki: otherwise, i'd be long gone
[22:42:47] SteenJobs: has joined #RubyOnRails
[22:43:25] pontiki: i don't much like g+, although the contacts i have on there seem to be far more intelligent, thoughtful, and considerate
[22:43:25] xcv: has joined #RubyOnRails
[22:43:39] pontiki: fb is mostly family :P
[22:43:56] FailBit: I do not like my family
[22:43:59] dllama: has joined #RubyOnRails
[22:44:05] FailBit: our relationship is very strained
[22:44:19] FailBit: they are religious bigots and right wing nutcases
[22:44:28] pontiki: when my mom got on fb my level of posting went to near zero
[22:44:46] htmldrum: has joined #RubyOnRails
[22:45:12] pontiki: i live with my mom; i'm her caretaker, and it's already such a PITA i don't want to have to deal with her online too
[22:47:26] pontiki: i'm sure they all consider me a left wing nutcase
[22:47:53] FailBit: but are they voting for trump
[22:50:45] Hyperfocal: has joined #RubyOnRails
[22:51:25] lasker85: has joined #RubyOnRails
[22:53:10] workmad3: has joined #RubyOnRails
[22:53:13] pontiki: i think the US deserves trump as a president
[22:53:31] pontiki: this is way off-topic, tho
[22:53:49] alan_andrade: has joined #RubyOnRails
[22:55:12] Radar: ##politics
[22:56:48] deavid: has joined #RubyOnRails
[22:57:30] sarink: has joined #RubyOnRails
[22:59:24] FailBit: is that like /pol/
[22:59:33] FailBit: I heard stories about /pol/
[22:59:39] pontiki: i'd rather stop talking about it, really :) it's rather crazy-making
[23:00:22] Radar: ERROR: REALITY DOES NOT MATCH EXPECTATIONS
[23:01:06] pontiki: no, really
[23:01:11] towski_: has joined #RubyOnRails
[23:02:00] darrencauthon: has joined #RubyOnRails
[23:02:24] imp4t: has joined #RubyOnRails
[23:03:00] darrencauthon: has joined #RubyOnRails
[23:03:40] OnkelTem_: has joined #RubyOnRails
[23:03:55] darrencauthon: has joined #RubyOnRails
[23:04:52] darrencauthon: has joined #RubyOnRails
[23:05:26] Aeyrix: Of all the words of tongue and pen
[23:05:33] Aeyrix: the saddest are these: /pol/ was right, again.
[23:05:50] darrencauthon: has joined #RubyOnRails
[23:07:06] FailBit: ima quote you on that
[23:07:20] Radar: TIL: Aeyrix has become a poet
[23:07:35] Aeyrix: Not my words.
[23:07:46] willardg: has joined #RubyOnRails
[23:08:10] Maletor: has joined #RubyOnRails
[23:08:57] sanjayu: has joined #RubyOnRails
[23:09:31] charliesome: has joined #RubyOnRails
[23:10:54] smathy: has joined #RubyOnRails
[23:10:55] cih: has joined #RubyOnRails
[23:12:18] lasker85: has joined #RubyOnRails
[23:13:02] bmalum: has joined #RubyOnRails
[23:13:58] greengriminal: has joined #RubyOnRails
[23:14:51] Grundell_: has joined #RubyOnRails
[23:18:57] EminenceHC: has joined #RubyOnRails
[23:20:24] Ekami: has joined #RubyOnRails
[23:20:53] imp4t: has joined #RubyOnRails
[23:24:40] annlewis: has joined #RubyOnRails
[23:25:48] eggoez: has joined #RubyOnRails
[23:25:48] Moonlight-Angel: has joined #RubyOnRails
[23:26:34] hnanon: has joined #RubyOnRails
[23:26:57] hnanon: What's the difference between the koala and fb_graph2 gems?
[23:27:03] w0rd-driven: has joined #RubyOnRails
[23:27:20] chills42: has joined #RubyOnRails
[23:27:35] Radar: one is called koala, one is called fb_graph2
[23:27:57] Radar: One has a million downloads, one has 42,000.
[23:31:18] FailBit: kaminari is surprisingly very slow
[23:31:24] FailBit: 13ms for a render
[23:32:10] FailBit: 2 of those per page, so if I can cut some time off that, I get double the effect for free
[23:32:45] Radar: FailBit: If you're that interested in performance why not switch to Elixir/Phoenix? :D
[23:33:04] lasker85: has joined #RubyOnRails
[23:33:06] hnanon: Radar, I get it, but do they generally serve the same purpose (they look like they do)?
[23:33:22] Radar: hnanon: !8ball
[23:33:26] apow: has joined #RubyOnRails
[23:33:27] Radar: HELPA HAS SPOKEN
[23:33:41] FailBit: Radar: outside current scope
[23:33:53] FailBit: if I was really interested in maximum performance I would write in C
[23:34:25] Aeyrix: >not hand-crafting your system in flat assembler
[23:34:28] Aeyrix: Just fucking give up
[23:34:36] charliesome: has joined #RubyOnRails
[23:34:49] yaymukund: has joined #RubyOnRails
[23:34:51] FailBit: https://1.bp.blogspot.com/-3wHCYHd_yf4/Uwk0bpUPqII/AAAAAAAAEeE/BTCJlN_HGXI/s1600/image-773266.jpeg
[23:35:14] Aeyrix: that subtitle is great
[23:37:06] bronson: has joined #RubyOnRails
[23:37:22] bkulbida: has joined #RubyOnRails
[23:39:20] imp4t: has joined #RubyOnRails
[23:41:05] chills42: has joined #RubyOnRails
[23:42:14] Radar: hnanon: If I was going to use one of those in production, I would use koala.
[23:42:21] Radar: Because it has... 20x more downloads?
[23:42:37] uberjar: has joined #RubyOnRails
[23:44:44] baweaver: has joined #RubyOnRails
[23:47:15] ramfjord: has joined #RubyOnRails
[23:48:51] FailBit: but then how many production users does activeadmin have
[23:49:11] zhkirill: has joined #RubyOnRails
[23:49:14] FailBit: 1,320,432 downloads
[23:50:40] kies: has joined #RubyOnRails
[23:51:37] montagesoftware: has joined #RubyOnRails
[23:52:30] ramfjord: has joined #RubyOnRails
[23:52:43] mary5030: has joined #RubyOnRails
[23:52:46] lasker85: has joined #RubyOnRails
[23:53:17] montagesoftware: has joined #RubyOnRails
[23:53:34] harisamin: has joined #RubyOnRails
[23:55:24] diegoviola: has joined #RubyOnRails
[23:56:29] seank_: has joined #RubyOnRails
[23:57:41] TheNet: has joined #RubyOnRails
[23:58:16] sarink: has joined #RubyOnRails