« Back to channel list

#RubyOnRails - 09 August 2015

« Back 1 day Forward 1 day »
[00:01:35] Kallis: has joined #RubyOnRails
[00:01:55] drale2k_: has joined #RubyOnRails
[00:02:09] werelivinginthef: has joined #RubyOnRails
[00:02:11] sdwrage: has joined #RubyOnRails
[00:03:18] drollwit: has joined #RubyOnRails
[00:03:25] DoctorMonocular: has joined #RubyOnRails
[00:04:19] lwu: has joined #RubyOnRails
[00:05:43] ekain: has joined #RubyOnRails
[00:08:34] paulcsmith: has joined #RubyOnRails
[00:08:35] joshkovach: has joined #RubyOnRails
[00:08:51] idd2d: has joined #RubyOnRails
[00:10:22] renews: has joined #RubyOnRails
[00:10:43] choke: has joined #RubyOnRails
[00:10:51] Kallis: has joined #RubyOnRails
[00:15:29] choke: has joined #RubyOnRails
[00:17:49] mary5030: has joined #RubyOnRails
[00:17:50] nofxx: m0r0n, controllers don't need to be pluralized, it what makes sense: foos_controller will have index/show foo_controller index will be it's show
[00:18:14] arooni-mobile: has joined #RubyOnRails
[00:18:32] nofxx: hehe, guess didn't make myself very clear, but got it? many -> [index, show] one -> [index] (but it's kind a show)
[00:18:33] arooni-mobile__: has joined #RubyOnRails
[00:18:53] choke: has joined #RubyOnRails
[00:19:37] nofxx: m0r0n, if what confuses you is models (singular) again common sense: you're defining 1 of them
[00:20:38] nofxx: actually their class* both way to picture it
[00:21:05] bronson: has joined #RubyOnRails
[00:21:10] lethjakman: has joined #RubyOnRails
[00:23:02] workmad3: has joined #RubyOnRails
[00:24:43] fighella: has joined #RubyOnRails
[00:27:13] ktchup: has joined #RubyOnRails
[00:32:10] aaronds: has joined #RubyOnRails
[00:32:41] aaronds: Hi. I've got a rails-specific issue here I'm wondering if someone could help me with. I'm trying to write a test for my controller, specifically the update action of my resource. The action works great in the browser, I just can't get a test to pass. I've documented my issue more extensively here: git.io/v3JDI but in essence I can't get 'put' to behave as I need to. It keeps throwing "No route matches" errors
[00:36:28] doritostains: has joined #RubyOnRails
[00:37:32] shoelessone: has joined #RubyOnRails
[00:40:12] x-light: has joined #RubyOnRails
[00:40:34] alan_andrade: has joined #RubyOnRails
[00:41:11] erich: has joined #RubyOnRails
[00:41:19] h4ckurate: has joined #RubyOnRails
[00:42:39] nofxx: aaronds, routes is just resource :lesson_types ? post it too, and where are you creating the lesson_type?
[00:42:44] Encapsulation: has joined #RubyOnRails
[00:42:52] nofxx: you need one to 'update' one
[00:43:16] aaronds: hold on nofxx
[00:43:34] chouhoulis: has joined #RubyOnRails
[00:44:22] strcmp1: has joined #RubyOnRails
[00:47:32] aaronds: nofxx: Updated, yeah its a resource. The type is record as a fixture, so the record exists, if that's what you meant?
[00:48:34] aaronds: * the type is created as a fixture
[00:49:20] wethu: has joined #RubyOnRails
[00:50:55] hotpancakes: has joined #RubyOnRails
[00:51:56] chouhoulis: has joined #RubyOnRails
[00:52:08] nofxx: aaronds, ah, it's namespaced, you need 2 ids
[00:52:15] erich: has joined #RubyOnRails
[00:52:28] nofxx: aaronds, check rake routes | grep lesson
[00:52:48] nofxx: you'll see what I mean... coach_id and id
[00:52:48] mary5030: has joined #RubyOnRails
[00:53:10] quazimodo: has joined #RubyOnRails
[00:53:17] aaronds: nofxx: doesn't look like it... GET /coach/lesson_types/:id(.:format)
[00:53:42] nofxx: aaronds, sorry mate, true. it's not resource inside resource
[00:53:43] aaronds: It all works great in the browser without any additional ids
[00:55:18] nofxx: must be sleepy... aaronds it'll be something like put [:coach, :update] than, no?
[00:55:26] j3r0: has joined #RubyOnRails
[00:56:47] shock_one: has joined #RubyOnRails
[00:57:16] aaronds: nofxx: don't think so... The error indicates that the base route is correct judging by the fact it's requesting an id
[00:57:27] drollwit: has joined #RubyOnRails
[00:57:58] aaronds: nofxx: maybe I should have specified this is in Coach::LessonTypesControllerTest ?
[00:59:13] shock_one: has joined #RubyOnRails
[01:04:29] renews: has joined #RubyOnRails
[01:08:36] j3r0: has joined #RubyOnRails
[01:13:00] arooni-mobile__: has joined #RubyOnRails
[01:13:05] arooni-mobile: has joined #RubyOnRails
[01:13:22] Radar: GOOD MORNING
[01:24:37] jrgcombr: has joined #RubyOnRails
[01:28:40] greengriminal: has joined #RubyOnRails
[01:31:09] charliesome: has joined #RubyOnRails
[01:31:10] zpe: has joined #RubyOnRails
[01:31:18] doodlehaus: has joined #RubyOnRails
[01:33:40] j3r0: has joined #RubyOnRails
[01:36:52] lethjakman: has joined #RubyOnRails
[01:37:11] lwu: has joined #RubyOnRails
[01:39:16] paulcsmith: has joined #RubyOnRails
[01:39:46] one_zero: has joined #RubyOnRails
[01:40:45] vedu: has joined #RubyOnRails
[01:41:05] arooni-mobile__: has joined #RubyOnRails
[01:41:43] arooni-mobile: has joined #RubyOnRails
[01:43:02] bruno-: has joined #RubyOnRails
[01:45:23] arooni-mobile__: has joined #RubyOnRails
[01:50:51] lethjakman: has joined #RubyOnRails
[01:51:36] drollwit: has joined #RubyOnRails
[01:53:23] djbkd: has joined #RubyOnRails
[01:53:46] TheMonster: has joined #RubyOnRails
[01:54:40] ewitchin: has joined #RubyOnRails
[01:57:20] grandy_: has left #RubyOnRails: ()
[01:58:05] blackhuey: has joined #RubyOnRails
[01:58:47] renews: has joined #RubyOnRails
[02:00:25] dtcristo: has joined #RubyOnRails
[02:03:27] blackhuey: has joined #RubyOnRails
[02:07:09] dented42: has joined #RubyOnRails
[02:08:52] chipotle: has joined #RubyOnRails
[02:11:31] GarethAdams: has joined #RubyOnRails
[02:11:31] GarethAdams: has joined #RubyOnRails
[02:11:47] Caius: has joined #RubyOnRails
[02:11:47] workmad3: has joined #RubyOnRails
[02:13:07] RubyRonin: has joined #RubyOnRails
[02:13:14] RubyRonin: anyone see this?
[02:13:35] RubyRonin: anyone see this?
[02:13:58] shoelessone: has joined #RubyOnRails
[02:14:17] RubyRonin: hmmm....i'm like three channels that are usually active. their all dead...
[02:14:21] RubyRonin: ISK: thanks
[02:15:44] beauby: has joined #RubyOnRails
[02:15:57] ISK: rubyronin, probably they are sleeping or no
[02:16:00] ISK: who knows
[02:16:07] ISK: rubyronin, where are you from?
[02:20:30] shoelessone: has joined #RubyOnRails
[02:21:51] shoelessone: has joined #RubyOnRails
[02:29:34] x-light: has joined #RubyOnRails
[02:33:08] dopie: has joined #RubyOnRails
[02:35:47] LiquidInsect: has joined #RubyOnRails
[02:36:01] greengriminal: has joined #RubyOnRails
[02:38:05] choke: has joined #RubyOnRails
[02:38:53] XenuLives: has joined #RubyOnRails
[02:42:39] jonee: has joined #RubyOnRails
[02:43:58] Radar: Something something weekend
[02:45:45] drollwit: has joined #RubyOnRails
[02:47:48] zoidfarb: has joined #RubyOnRails
[02:49:11] The_Phoenix: has joined #RubyOnRails
[02:53:07] renews: has joined #RubyOnRails
[02:53:46] arooni-mobile: has joined #RubyOnRails
[02:53:46] arooni-mobile__: has joined #RubyOnRails
[02:55:46] swamix: has joined #RubyOnRails
[02:59:33] Radar: hey swamix
[03:00:27] dtcristo: has joined #RubyOnRails
[03:00:34] h4ckurate: has joined #RubyOnRails
[03:01:20] CatMartyn: has joined #RubyOnRails
[03:01:56] twilling: has joined #RubyOnRails
[03:02:06] The_Phoenix: has joined #RubyOnRails
[03:03:57] gerep: has joined #RubyOnRails
[03:04:14] bmurt: has joined #RubyOnRails
[03:05:34] stoodfarback: has joined #RubyOnRails
[03:09:27] braincrash: has joined #RubyOnRails
[03:17:46] bulldawgden: has joined #RubyOnRails
[03:19:58] zpe: has joined #RubyOnRails
[03:21:17] XenuLives: has joined #RubyOnRails
[03:21:36] darrencauthon: has joined #RubyOnRails
[03:28:05] hotpancakes: has joined #RubyOnRails
[03:31:39] twilling: has joined #RubyOnRails
[03:31:55] zoidfarb: How do a create a table with a boolean column that defaults to false and can't be nil? Like "t.boolean :approved ... "
[03:32:05] doodlehaus: has joined #RubyOnRails
[03:32:31] Radar: zoidfarb: how is it being set to nil?
[03:32:36] fedexo: has joined #RubyOnRails
[03:32:40] Radar: t.boolean :approved, default: false
[03:33:35] zoidfarb: will that set nullable False at the database level too?
[03:33:51] Radar: no, you'd have to do null: false as an additional option there.
[03:33:59] zoidfarb: cool, thanks
[03:34:17] zoidfarb: so like this: t.boolean :approved, :default => false, :null => false
[03:34:48] dopie: has joined #RubyOnRails
[03:35:56] werelivinginthef: has joined #RubyOnRails
[03:37:19] twilling: has joined #RubyOnRails
[03:37:36] baweaver: has joined #RubyOnRails
[03:40:03] drollwit: has joined #RubyOnRails
[03:43:28] alan_andrade: has joined #RubyOnRails
[03:46:13] Radar: zoidfarb: yes
[03:52:10] seank_: has joined #RubyOnRails
[03:53:32] zorak8: has joined #RubyOnRails
[03:58:26] jonee: has joined #RubyOnRails
[03:59:54] bmurt: has joined #RubyOnRails
[04:00:28] workmad3: has joined #RubyOnRails
[04:00:32] ISK: has joined #RubyOnRails
[04:03:31] alienxp031: has left #RubyOnRails: ()
[04:07:13] iamjarvo: has joined #RubyOnRails
[04:12:49] twilling: has joined #RubyOnRails
[04:20:26] Lightsword: has joined #RubyOnRails
[04:21:02] shoelessone: has joined #RubyOnRails
[04:23:03] ISK: has joined #RubyOnRails
[04:24:48] zorak8: has joined #RubyOnRails
[04:24:48] ISK: has joined #RubyOnRails
[04:30:43] shoelessone: has joined #RubyOnRails
[04:32:17] darrencauthon: has joined #RubyOnRails
[04:32:29] krz: has joined #RubyOnRails
[04:34:24] Peterzky: has joined #RubyOnRails
[04:34:25] drollwit: has joined #RubyOnRails
[04:35:50] shoelessone: has joined #RubyOnRails
[04:36:46] michael_mbp: has joined #RubyOnRails
[04:38:19] bufferino: has joined #RubyOnRails
[04:39:13] mary5030: has joined #RubyOnRails
[04:41:18] renews: has joined #RubyOnRails
[04:43:42] jonee: has joined #RubyOnRails
[04:50:46] frzn: has joined #RubyOnRails
[04:52:06] drale2k_: has joined #RubyOnRails
[04:52:58] seank_: has joined #RubyOnRails
[04:53:54] bronson: has joined #RubyOnRails
[04:54:02] ivanskie: has joined #RubyOnRails
[04:55:15] x-light: has joined #RubyOnRails
[04:55:36] amcoder: has joined #RubyOnRails
[04:58:02] Axighi: has joined #RubyOnRails
[04:59:00] shoelessone: has joined #RubyOnRails
[04:59:26] chouhoulis: has joined #RubyOnRails
[05:02:34] ISK: has joined #RubyOnRails
[05:05:29] tectonic: has joined #RubyOnRails
[05:07:12] riotjones: has joined #RubyOnRails
[05:07:48] bmurt: has joined #RubyOnRails
[05:08:43] zpe: has joined #RubyOnRails
[05:13:47] Peteykun: has joined #RubyOnRails
[05:15:32] dopie: has joined #RubyOnRails
[05:16:17] hahuang65: has joined #RubyOnRails
[05:17:12] kegan_: has joined #RubyOnRails
[05:28:30] drollwit: has joined #RubyOnRails
[05:28:44] srinidhi: has joined #RubyOnRails
[05:29:37] h4ckurate: has joined #RubyOnRails
[05:32:02] lxsameer: has joined #RubyOnRails
[05:32:02] lxsameer: has joined #RubyOnRails
[05:32:59] doodlehaus: has joined #RubyOnRails
[05:35:28] renews: has joined #RubyOnRails
[05:40:50] sdwrage: has joined #RubyOnRails
[05:41:09] higuys: has joined #RubyOnRails
[05:44:41] bruno-: has joined #RubyOnRails
[05:44:54] djbkd: has joined #RubyOnRails
[05:45:02] lethjakman: has joined #RubyOnRails
[05:46:21] mloy: has joined #RubyOnRails
[05:47:06] dymk: has left #RubyOnRails: ("Leaving")
[05:47:29] mary5030: has joined #RubyOnRails
[05:49:01] iateadonut: has joined #RubyOnRails
[05:49:11] workmad3: has joined #RubyOnRails
[05:50:45] iateadonut: i've just put my RoR application on a development server (rather than my localhost). after i deleted all entries in database.yml and put one for postgresql, the logs indicate that it is still trying to connect to sqlite. how do i change this?
[05:52:51] pontiki: did you also swap out the sqlite gem for the pg gem?
[05:52:58] rhizome: in your Gemfile
[05:53:15] iateadonut: it works on my localhost, so i'm guessing so.
[05:53:28] iateadonut: i deployed with git and then ran bundle
[05:53:40] rhizome: guess not and refer to the text
[05:58:21] drale2k_: has joined #RubyOnRails
[06:00:15] sargas: has joined #RubyOnRails
[06:01:22] yardenbar: has joined #RubyOnRails
[06:03:14] yardenbar: has joined #RubyOnRails
[06:07:05] seank_: has joined #RubyOnRails
[06:10:50] iateadonut: postgresql is in the gemfile
[06:11:09] iateadonut: is there something i have to do to restart the application, as you have to when in irb?
[06:11:26] rhizome: now check Gemfile.lock for sqlite, maybe something's depending on it or it's hanging around for some reason.
[06:11:55] rhizome: well yeah, if you change the db gem you're going to have to restart the app at least then
[06:12:59] bustrarm: has joined #RubyOnRails
[06:14:34] iateadonut: how do you restart the app? i'm just activating it through the web browser.
[06:17:40] hotpancakes: has joined #RubyOnRails
[06:18:12] rhizome: activating?
[06:19:02] rhizome: you stop/start, or touch tmp/restart.txt if you're using passenger, or whatever is specific to your application server
[06:20:41] iateadonut: yes, i'm using passenger.
[06:21:12] User458764: has joined #RubyOnRails
[06:22:21] drollwit: has joined #RubyOnRails
[06:24:07] toyhammered: has joined #RubyOnRails
[06:26:03] kies: has joined #RubyOnRails
[06:27:27] ISK: has joined #RubyOnRails
[06:29:42] renews: has joined #RubyOnRails
[06:32:52] iateadonut: rhizome, thanks!
[06:33:06] Shoutsid: has joined #RubyOnRails
[06:33:14] iateadonut: one thing i'm wondering, i didn't have 'pg' in my gemfile on my localhost, so why did it work?
[06:33:20] RubyRonin: has left #RubyOnRails: ()
[06:33:53] iateadonut: (because i didn't commit it in git)
[06:34:07] bin_005: has joined #RubyOnRails
[06:38:01] bin_005: has joined #RubyOnRails
[06:38:50] werelivinginthef: has joined #RubyOnRails
[06:39:47] werelivinginthef: has joined #RubyOnRails
[06:43:03] werelivinginthef: has joined #RubyOnRails
[06:44:14] Lightsword: has joined #RubyOnRails
[06:49:30] XenuLives: has joined #RubyOnRails
[06:50:07] lxsameer: has joined #RubyOnRails
[06:50:07] lxsameer: has joined #RubyOnRails
[07:00:24] drale2k_: has joined #RubyOnRails
[07:05:03] beauby: has joined #RubyOnRails
[07:07:48] seank_: has joined #RubyOnRails
[07:08:58] lxsameer: has joined #RubyOnRails
[07:11:44] yaw: has joined #RubyOnRails
[07:12:07] mary5030: has joined #RubyOnRails
[07:16:39] drollwit: has joined #RubyOnRails
[07:17:05] charliesome: has joined #RubyOnRails
[07:18:13] bin_005: has joined #RubyOnRails
[07:19:17] yfeldblum: has joined #RubyOnRails
[07:19:26] darutoko: has joined #RubyOnRails
[07:21:33] Deck`: has joined #RubyOnRails
[07:23:54] renews: has joined #RubyOnRails
[07:27:46] lxsameer: has joined #RubyOnRails
[07:29:29] krz: has joined #RubyOnRails
[07:30:12] hotpancakes: has joined #RubyOnRails
[07:30:15] sevenseacat: has joined #RubyOnRails
[07:33:50] doodlehaus: has joined #RubyOnRails
[07:35:47] choke: has joined #RubyOnRails
[07:38:01] workmad3: has joined #RubyOnRails
[07:38:30] jonee: has joined #RubyOnRails
[07:42:11] shock_one: has joined #RubyOnRails
[07:43:48] hotpancakes: has joined #RubyOnRails
[07:44:13] wethu: has joined #RubyOnRails
[07:44:25] krz: has joined #RubyOnRails
[07:46:15] lxsameer: has joined #RubyOnRails
[07:49:28] roolo: has joined #RubyOnRails
[07:49:35] yfeldblum: has joined #RubyOnRails
[07:58:11] yfeldblum: has joined #RubyOnRails
[07:58:29] User458764: has joined #RubyOnRails
[08:01:09] drale2k_: has joined #RubyOnRails
[08:02:07] cornerma1: has joined #RubyOnRails
[08:05:48] beauby: has joined #RubyOnRails
[08:06:05] jonee: has joined #RubyOnRails
[08:06:53] Lightsword: has joined #RubyOnRails
[08:08:53] seank_: has joined #RubyOnRails
[08:09:10] sdwrage: has joined #RubyOnRails
[08:09:23] CanTonic: has joined #RubyOnRails
[08:09:51] krz: has joined #RubyOnRails
[08:10:39] yfeldblum: has joined #RubyOnRails
[08:10:40] drollwit: has joined #RubyOnRails
[08:12:53] TomyLobo: has joined #RubyOnRails
[08:13:09] stoodfarback: has joined #RubyOnRails
[08:16:16] yfeldblum: has joined #RubyOnRails
[08:16:32] sinaef: has joined #RubyOnRails
[08:16:43] krz: has joined #RubyOnRails
[08:17:31] shibly: has joined #RubyOnRails
[08:17:38] pafin: has joined #RubyOnRails
[08:17:40] shibly: has left #RubyOnRails: ()
[08:18:00] renews: has joined #RubyOnRails
[08:21:09] oliver__: has joined #RubyOnRails
[08:22:19] dtcristo: has joined #RubyOnRails
[08:24:24] Mendenhall: has joined #RubyOnRails
[08:26:08] x-light: has joined #RubyOnRails
[08:26:53] hotpancakes: has joined #RubyOnRails
[08:29:57] givanse: has joined #RubyOnRails
[08:31:27] alexhartley: has joined #RubyOnRails
[08:31:27] jonee: has joined #RubyOnRails
[08:32:21] werdna_trebor: has joined #RubyOnRails
[08:33:24] lxsameer: has joined #RubyOnRails
[08:35:05] choke: has joined #RubyOnRails
[08:40:54] glennt: has joined #RubyOnRails
[08:42:08] rikkipitt: has joined #RubyOnRails
[08:42:40] Axighi: has joined #RubyOnRails
[08:43:06] dented42: has joined #RubyOnRails
[08:45:05] bin_005: has joined #RubyOnRails
[08:47:22] yashinbasement: has joined #RubyOnRails
[08:48:36] quazimodo: has joined #RubyOnRails
[08:50:18] sinaef: has joined #RubyOnRails
[08:50:22] Trynemjoel: has joined #RubyOnRails
[08:52:59] riotjones: has joined #RubyOnRails
[08:55:51] Palsson: has joined #RubyOnRails
[08:58:27] CanTonic: has joined #RubyOnRails
[09:01:56] drale2k_: has joined #RubyOnRails
[09:04:58] drollwit: has joined #RubyOnRails
[09:05:34] workmad3: has joined #RubyOnRails
[09:06:24] alexhartley: has joined #RubyOnRails
[09:06:31] beauby: has joined #RubyOnRails
[09:09:43] seank_: has joined #RubyOnRails
[09:12:13] renews: has joined #RubyOnRails
[09:12:21] h4ckurate: has joined #RubyOnRails
[09:13:12] DoubleMalt: has joined #RubyOnRails
[09:14:16] bweston92: has joined #RubyOnRails
[09:17:57] Lightsword: has joined #RubyOnRails
[09:22:34] arBmind: has joined #RubyOnRails
[09:24:07] tectonic: has joined #RubyOnRails
[09:24:17] CanTonic: has joined #RubyOnRails
[09:27:58] zpe: has joined #RubyOnRails
[09:28:23] lapide_viridi: has joined #RubyOnRails
[09:29:06] hotpancakes: has joined #RubyOnRails
[09:29:18] Daquan: has joined #RubyOnRails
[09:34:42] doodlehaus: has joined #RubyOnRails
[09:34:49] krz: has joined #RubyOnRails
[09:39:32] daquan_: has joined #RubyOnRails
[09:41:25] Papierkorb: has joined #RubyOnRails
[09:45:05] jenrzzz: has joined #RubyOnRails
[09:46:14] bruno-: has joined #RubyOnRails
[09:49:17] greenarrow: has joined #RubyOnRails
[09:56:34] navo: has joined #RubyOnRails
[09:58:59] drollwit: has joined #RubyOnRails
[09:59:44] dtcristo: has joined #RubyOnRails
[09:59:51] lethjakman: has joined #RubyOnRails
[10:01:25] rikkipitt: has joined #RubyOnRails
[10:04:58] dideler: has joined #RubyOnRails
[10:06:18] renews: has joined #RubyOnRails
[10:07:00] jonee: has joined #RubyOnRails
[10:07:35] beauby: has joined #RubyOnRails
[10:09:54] werelivinginthef: has joined #RubyOnRails
[10:10:26] seank_: has joined #RubyOnRails
[10:11:37] bweston92: has joined #RubyOnRails
[10:12:56] marr: has joined #RubyOnRails
[10:13:52] bweston92: has joined #RubyOnRails
[10:20:34] khapa: has joined #RubyOnRails
[10:29:26] ur5us: has joined #RubyOnRails
[10:30:38] a3gis: has joined #RubyOnRails
[10:34:56] jonee: has joined #RubyOnRails
[10:35:19] AzaToth: has joined #RubyOnRails
[10:37:31] krz: has joined #RubyOnRails
[10:41:13] pgatt: has joined #RubyOnRails
[10:44:35] eGGsha: has joined #RubyOnRails
[10:45:25] jenrzzz: has joined #RubyOnRails
[10:45:44] atzorvas: has joined #RubyOnRails
[10:46:26] SteenJobs: has joined #RubyOnRails
[10:46:42] shock_one: has joined #RubyOnRails
[10:48:04] havenwood: has joined #RubyOnRails
[10:48:11] bin_005_d: has joined #RubyOnRails
[10:50:07] drale2k_: has joined #RubyOnRails
[10:50:45] sinaef: has joined #RubyOnRails
[10:53:08] drollwit: has joined #RubyOnRails
[10:54:18] workmad3: has joined #RubyOnRails
[10:55:38] DoctorMonocular: has joined #RubyOnRails
[10:56:09] DoubleMalt: has joined #RubyOnRails
[10:57:02] SteenJobs: has joined #RubyOnRails
[10:57:23] DoubleMalt: has joined #RubyOnRails
[10:57:44] drale2k_: has joined #RubyOnRails
[10:58:29] ktchup: has joined #RubyOnRails
[11:02:18] FernandoBasso: has joined #RubyOnRails
[11:07:49] lxsameer: has joined #RubyOnRails
[11:07:49] lxsameer: has joined #RubyOnRails
[11:09:57] alexhartley: has joined #RubyOnRails
[11:11:15] seank_: has joined #RubyOnRails
[11:11:27] ktchup: has joined #RubyOnRails
[11:13:31] Trynemjoel: has joined #RubyOnRails
[11:14:06] oleksandriuzikov: has joined #RubyOnRails
[11:14:25] bruno-: has joined #RubyOnRails
[11:14:34] Daquan: has joined #RubyOnRails
[11:15:17] krz: has joined #RubyOnRails
[11:16:01] User458764: has joined #RubyOnRails
[11:18:50] ur5us: has joined #RubyOnRails
[11:28:05] hotpancakes: has joined #RubyOnRails
[11:31:22] renews: has joined #RubyOnRails
[11:31:48] krz: has joined #RubyOnRails
[11:33:52] eGGsha: has joined #RubyOnRails
[11:33:58] choke: has joined #RubyOnRails
[11:38:22] beauby: has joined #RubyOnRails
[11:43:43] cac: has joined #RubyOnRails
[11:45:51] lethjakman: has joined #RubyOnRails
[11:47:18] drollwit: has joined #RubyOnRails
[11:47:39] nurey: has joined #RubyOnRails
[11:50:00] poli: has joined #RubyOnRails
[11:51:23] MikeMikail: has joined #RubyOnRails
[11:53:33] frzn: has joined #RubyOnRails
[11:53:33] frzn: has joined #RubyOnRails
[11:53:37] MikeMikail: Hi, anyone able to point me in right direction on getting this query count by grouped by number of hours in difference between these two DateTimes? OrderItem.joins(:order).group('orders.startdate - order_items.updated_at').count(:id)
[11:54:19] SteenJobs: has joined #RubyOnRails
[11:59:00] choke: has joined #RubyOnRails
[12:01:39] jenrzzz: has joined #RubyOnRails
[12:06:15] pafin: has joined #RubyOnRails
[12:08:07] ishahnaz: has joined #RubyOnRails
[12:10:20] beauby: has joined #RubyOnRails
[12:10:28] mhib: has joined #RubyOnRails
[12:11:34] maxp: has joined #RubyOnRails
[12:11:35] Trynemjoel: has joined #RubyOnRails
[12:11:36] doodlehaus: has joined #RubyOnRails
[12:11:38] maxp: has left #RubyOnRails: ()
[12:11:48] ekain: has joined #RubyOnRails
[12:12:01] seank_: has joined #RubyOnRails
[12:14:01] alexhart_: has joined #RubyOnRails
[12:17:00] DoubleMalt: has joined #RubyOnRails
[12:19:06] zpe: has joined #RubyOnRails
[12:21:42] oliver__: has joined #RubyOnRails
[12:22:02] ekain: has joined #RubyOnRails
[12:27:13] hotpancakes: has joined #RubyOnRails
[12:27:58] renews: has joined #RubyOnRails
[12:28:26] alphaatom: has joined #RubyOnRails
[12:29:05] dtcristo: has joined #RubyOnRails
[12:29:13] SteenJobs: has joined #RubyOnRails
[12:29:36] XenuLives: has joined #RubyOnRails
[12:32:39] sinaef: has joined #RubyOnRails
[12:34:27] lxsameer: has joined #RubyOnRails
[12:37:00] krz: has joined #RubyOnRails
[12:38:04] Axighi: has joined #RubyOnRails
[12:38:35] carlosd: has joined #RubyOnRails
[12:39:43] cac: has joined #RubyOnRails
[12:41:23] a3gis: has joined #RubyOnRails
[12:41:26] drollwit: has joined #RubyOnRails
[12:41:29] jonee: has joined #RubyOnRails
[12:43:06] workmad3: has joined #RubyOnRails
[12:45:49] beauby: has joined #RubyOnRails
[12:45:55] Shoutsid: has joined #RubyOnRails
[12:46:39] lethjakman: has joined #RubyOnRails
[12:47:13] seank_: has joined #RubyOnRails
[12:49:15] alphaatom: has joined #RubyOnRails
[12:50:15] SteenJobs: has joined #RubyOnRails
[12:51:30] frzn: has joined #RubyOnRails
[12:54:20] ethicalhack3r: has joined #RubyOnRails
[12:55:02] MikeMikail: has joined #RubyOnRails
[12:55:25] SteenJobs: has joined #RubyOnRails
[12:55:58] ethicalhack3r: Hi, I was wondering if anyone could help me with a RABL template. I need to move an attribute (fixed_in) from a child node (plugin_vulnerabilities), which is an association, to the parent node (vulnerabilities) - https://gist.github.com/ethicalhack3r/765863ebbe4316dc71ac
[12:56:27] MikeMikail: Hi, anyone able to point me in right direction on getting this query count by grouped by number of hours in difference between these two DateTimes? OrderItem.joins(:order).group('orders.startdate - order_items.updated_at').count(:id). Is it possible to do in a single line like this?
[12:56:42] DoctorMonocular: has joined #RubyOnRails
[12:57:22] doodlehaus: has joined #RubyOnRails
[12:59:43] Pazician: has joined #RubyOnRails
[13:08:42] romdi: has joined #RubyOnRails
[13:10:18] ethicalhack3r: Found a solution to my question and added to the gist https://gist.github.com/ethicalhack3r/765863ebbe4316dc71ac
[13:12:01] Pazician: has joined #RubyOnRails
[13:13:49] HalcyonicStorm: has joined #RubyOnRails
[13:15:09] Trynemjoel: has joined #RubyOnRails
[13:15:24] alphaatom: has joined #RubyOnRails
[13:22:36] charliesome: has joined #RubyOnRails
[13:22:43] edwinvdgraaf: has joined #RubyOnRails
[13:22:48] renews: has joined #RubyOnRails
[13:26:32] edwinvdg_: has joined #RubyOnRails
[13:28:04] hotpancakes: has joined #RubyOnRails
[13:31:49] ruurd: has joined #RubyOnRails
[13:31:51] beauby: has joined #RubyOnRails
[13:34:17] basmoura: has joined #RubyOnRails
[13:35:13] alphaatom: has joined #RubyOnRails
[13:35:36] drollwit: has joined #RubyOnRails
[13:36:07] Kallis: has joined #RubyOnRails
[13:38:42] sandstrom: has joined #RubyOnRails
[13:39:37] anti-freeze: has joined #RubyOnRails
[13:41:21] sargas: has joined #RubyOnRails
[13:43:30] jonee: has joined #RubyOnRails
[13:48:56] Denarii: has joined #RubyOnRails
[13:50:19] jkoudys: has joined #RubyOnRails
[13:53:21] oliver__: has joined #RubyOnRails
[13:59:14] j3r0: has joined #RubyOnRails
[14:02:01] ekain: has joined #RubyOnRails
[14:02:51] beauby: has joined #RubyOnRails
[14:06:28] shyshy1: has joined #RubyOnRails
[14:07:18] Papierkorb: has joined #RubyOnRails
[14:07:24] darrencauthon: has joined #RubyOnRails
[14:07:33] zorak8: has joined #RubyOnRails
[14:15:15] pafin: has joined #RubyOnRails
[14:16:41] HalcyonicStorm: has joined #RubyOnRails
[14:17:01] renews: has joined #RubyOnRails
[14:18:18] ethicalhack3r: has left #RubyOnRails: ()
[14:18:30] cashnguns: has joined #RubyOnRails
[14:21:21] chouhoulis: has joined #RubyOnRails
[14:21:42] ruurd: has joined #RubyOnRails
[14:21:57] mhib: has joined #RubyOnRails
[14:27:07] dpatterns1: has joined #RubyOnRails
[14:27:44] chouhoulis: has joined #RubyOnRails
[14:28:53] dpatterns: has joined #RubyOnRails
[14:29:31] cac: has joined #RubyOnRails
[14:29:55] drollwit: has joined #RubyOnRails
[14:31:21] ekain: has joined #RubyOnRails
[14:31:48] workmad3: has joined #RubyOnRails
[14:32:02] alexhartley: has joined #RubyOnRails
[14:35:31] lethjakman: has joined #RubyOnRails
[14:36:10] n1lo: has joined #RubyOnRails
[14:37:19] michael_mbp: has joined #RubyOnRails
[14:40:54] DoubleMalt: has joined #RubyOnRails
[14:47:16] rikkipitt: has joined #RubyOnRails
[14:50:02] dionysus69: has joined #RubyOnRails
[14:51:00] dionysus69: how do I incorporate bootstrap into ruby app? should I just drop all the required css files into the app/css folder and they are integrated into pipeline automatically?
[14:51:14] alphaatom: has joined #RubyOnRails
[14:53:47] yaw: has joined #RubyOnRails
[14:54:46] relix: has joined #RubyOnRails
[14:57:24] shoelessone: has joined #RubyOnRails
[14:57:32] DoctorMonocular: has joined #RubyOnRails
[15:02:38] zorak8: has joined #RubyOnRails
[15:08:22] workmad3: has joined #RubyOnRails
[15:11:14] renews: has joined #RubyOnRails
[15:13:14] ivanskie: has joined #RubyOnRails
[15:13:49] bronson: has joined #RubyOnRails
[15:15:44] elaptics: dionysus69: there's a twitter bootstrap gem
[15:16:35] calleerlandsson: has joined #RubyOnRails
[15:16:38] dionysus69: oleksandriuzikov: wrote me in private chat thanks to you too elaptics :)
[15:22:42] GreatDanton: has joined #RubyOnRails
[15:23:56] drollwit: has joined #RubyOnRails
[15:25:22] dopie: has joined #RubyOnRails
[15:25:38] dionysus69: should i totally get rid of rails-sass gem if i am installing bootstrap-sass?
[15:26:15] zorak8: has joined #RubyOnRails
[15:26:33] hotpancakes: has joined #RubyOnRails
[15:30:04] elaptics: well, what is rails-sass?
[15:32:33] alexhartley: has joined #RubyOnRails
[15:34:19] michael_mbp: has joined #RubyOnRails
[15:35:53] dionysus69: dunno it came with the template project that got downloaded from heroku (i think, it was a long time ago)
[15:36:15] lethjakman: has joined #RubyOnRails
[15:36:33] dionysus69: also now since I installed boostrap-sass gem, do I rename application.css file to application.scss or to application.sass?
[15:37:15] dionysus69: i completely removed rails-sass gem btw it wasnt compatible with bootstrap-sass gem since they have different dependencies
[15:39:03] workmad3: has joined #RubyOnRails
[15:39:26] elaptics: neither, you just need to add the relevant requires to the manifest
[15:40:18] elaptics: dionysus69: oh actually, yes, it needs to be renamed to scss because it needs the @imports
[15:40:23] triangles: has joined #RubyOnRails
[15:40:32] bmurt: has joined #RubyOnRails
[15:40:48] drale2k_: has joined #RubyOnRails
[15:41:14] dopie: has joined #RubyOnRails
[15:42:49] chinmay_dd: has joined #RubyOnRails
[15:48:10] ruurd: has joined #RubyOnRails
[15:49:15] DLSteve: has joined #RubyOnRails
[15:51:00] rmoriz: has joined #RubyOnRails
[15:52:04] doodlehaus: has joined #RubyOnRails
[15:56:10] fedexo: has joined #RubyOnRails
[15:58:19] DoctorMonocular: has joined #RubyOnRails
[16:03:53] lindii_: has joined #RubyOnRails
[16:05:30] renews: has joined #RubyOnRails
[16:06:50] ruurd: has joined #RubyOnRails
[16:09:53] drale2k__: has joined #RubyOnRails
[16:10:07] krz: has joined #RubyOnRails
[16:14:18] hanss: has joined #RubyOnRails
[16:14:40] ISK: has joined #RubyOnRails
[16:15:22] Shoutsid: has joined #RubyOnRails
[16:18:12] drollwit: has joined #RubyOnRails
[16:18:32] djbkd: has joined #RubyOnRails
[16:22:05] werelivinginthef: has joined #RubyOnRails
[16:26:52] Zackio: has joined #RubyOnRails
[16:27:10] hotpancakes: has joined #RubyOnRails
[16:30:36] dymk: has joined #RubyOnRails
[16:31:41] werelivinginthef: has joined #RubyOnRails
[16:32:21] dionysus69: elaptics: ok thanks :)
[16:32:45] nurey: has joined #RubyOnRails
[16:37:54] nomadam: has joined #RubyOnRails
[16:38:39] kegan_: has joined #RubyOnRails
[16:40:24] werelivinginthef: has joined #RubyOnRails
[16:43:30] dymk: has left #RubyOnRails: ("Leaving")
[16:45:38] dici: has joined #RubyOnRails
[16:46:06] zpe: has joined #RubyOnRails
[16:46:30] sdwrage: has joined #RubyOnRails
[16:46:45] erich: has joined #RubyOnRails
[16:47:58] hotpancakes: has joined #RubyOnRails
[16:48:03] axilaris: has joined #RubyOnRails
[16:49:15] axilaris: hi, is there a shorthand for returning specific row ? for example User.first returns first. if i want to return id 24 how do i do that. is there a shorthand for this ?
[16:51:04] axilaris: i guess find is one way to do that
[16:52:04] elaptics: axilaris: find is the way
[16:52:35] axilaris: elaptics: ok thanks
[16:53:11] yaw: has joined #RubyOnRails
[16:56:05] j3r0: has joined #RubyOnRails
[16:58:22] darrencauthon: has joined #RubyOnRails
[16:58:42] hotpancakes: has joined #RubyOnRails
[16:58:56] hotpancakes: has joined #RubyOnRails
[16:59:41] renews: has joined #RubyOnRails
[17:00:22] shoelessone: has joined #RubyOnRails
[17:00:51] clouder`grr: has joined #RubyOnRails
[17:01:17] relix: Hey guys, is running multiple "rake db:migrate" unsafe? i.e. is there a chance the database ends up in an unwanted state?
[17:01:23] lethjakman: has joined #RubyOnRails
[17:01:34] relix: multiple rake db:migrate at the same time, from different servers to the same db server
[17:01:45] sinaef: has joined #RubyOnRails
[17:03:15] elaptics: relix: you should only be running it once
[17:03:22] elaptics: from a deploy perspective
[17:03:40] elaptics: depending on your exact migration you might have problems
[17:03:54] elaptics: how are you deploying and running the task?
[17:04:18] relix: well I'd like to package up the rails app in a docker container, so that users can easily "upgrade" to the latest version just by running the latest container
[17:04:41] relix: using the passenger docker container, I can run a script when the container is run
[17:04:58] relix: I guess I could use some kind of mutex using the database to make sure "rake db:migrate" is only run once
[17:05:16] relix: (see they might start multiple containers at the same time, so in that case just running "rake db:migrate" at start is uncouth)
[17:05:18] roolo: has joined #RubyOnRails
[17:05:51] elaptics: I'm not particularly familiar with docker - but how do you determine which is serving the DB?
[17:06:40] relix: the DB does not necessarily have to run in a container, but the usual way is to pass in an ENV variable to the application, which defines where the DB is located - in this case I"m using the rails default DATABASE_URL
[17:09:26] nurey: has joined #RubyOnRails
[17:09:58] t_mmyv: has joined #RubyOnRails
[17:10:22] Trynemjoel: has joined #RubyOnRails
[17:12:28] drollwit: has joined #RubyOnRails
[17:14:31] Voxxit: has joined #RubyOnRails
[17:14:38] axilaris: hi, can someone help answer this. trying to figure out how to do dependent destroy for a relationship http://stackoverflow.com/questions/31906724/how-to-do-ruby-on-rails-relationship-dependent-destroy
[17:15:42] alexhartley: has joined #RubyOnRails
[17:17:00] dopamean_: has joined #RubyOnRails
[17:23:55] chinmay_dd: has joined #RubyOnRails
[17:24:10] shinnya: has joined #RubyOnRails
[17:25:24] Trynemjoel: has joined #RubyOnRails
[17:27:50] workmad3: has joined #RubyOnRails
[17:28:02] hotpancakes: has joined #RubyOnRails
[17:28:21] yardenbar: has joined #RubyOnRails
[17:29:44] mostlybadfly: has joined #RubyOnRails
[17:30:11] cac: has joined #RubyOnRails
[17:32:25] iooner: has joined #RubyOnRails
[17:35:46] ktchup: has joined #RubyOnRails
[17:39:31] erich: has joined #RubyOnRails
[17:40:38] chipotles: has joined #RubyOnRails
[17:41:03] sdwrage: has joined #RubyOnRails
[17:44:13] CanTonic: has joined #RubyOnRails
[17:44:39] workmad3: has joined #RubyOnRails
[17:44:44] narak: has joined #RubyOnRails
[17:46:09] sinaef: has joined #RubyOnRails
[17:47:02] mikecmpbll: has joined #RubyOnRails
[17:47:21] marr: has joined #RubyOnRails
[17:48:24] basmoura_: has joined #RubyOnRails
[17:48:25] chinmay_dd: has joined #RubyOnRails
[17:50:07] brnpcn: has joined #RubyOnRails
[17:53:50] renews: has joined #RubyOnRails
[17:57:07] joshkovach: has joined #RubyOnRails
[17:57:12] zpe: has joined #RubyOnRails
[17:57:31] bigbadwolf: has joined #RubyOnRails
[17:59:03] big|bad|wolf: has joined #RubyOnRails
[18:00:28] darrencauthon: has joined #RubyOnRails
[18:00:52] h4ckurate: has joined #RubyOnRails
[18:01:04] mclee: has joined #RubyOnRails
[18:01:07] tectonic: has joined #RubyOnRails
[18:01:37] djbkd: has joined #RubyOnRails
[18:02:05] aaronds: has joined #RubyOnRails
[18:03:15] aaronds: Hi. Does anyone know how to stop RoutingError from being thrown when running test? It seems reasonable to want to check for 404's (e.g when a record cannot be found), but by default the error is thrown, preventing tests from passing.
[18:04:39] mloy_: has joined #RubyOnRails
[18:05:49] elaptics: aaronds: controller tests?
[18:05:56] aaronds: correct, elaptics
[18:06:05] srinidhi: has joined #RubyOnRails
[18:06:23] drollwit: has joined #RubyOnRails
[18:06:39] elaptics: aaronds: what do your tests look like? And what specifically is raising the routing error?
[18:06:52] aaronds: one moment elaptics
[18:09:13] aaronds: elaptics: http://git.io/v3LI3 very simple test. The controller works great in the browser.
[18:09:34] khapa_: has joined #RubyOnRails
[18:13:34] lethjakman: has joined #RubyOnRails
[18:16:14] higuys: has joined #RubyOnRails
[18:18:35] djbkd: has joined #RubyOnRails
[18:20:05] naftilos76: has joined #RubyOnRails
[18:20:33] superlou: has joined #RubyOnRails
[18:20:53] lindii_: has joined #RubyOnRails
[18:22:34] DoctorMonocular: has joined #RubyOnRails
[18:23:15] mloy: has joined #RubyOnRails
[18:24:35] h4ckurate: has joined #RubyOnRails
[18:26:52] sinaef: has joined #RubyOnRails
[18:27:18] n008f4g_: has joined #RubyOnRails
[18:27:24] hotpancakes: has joined #RubyOnRails
[18:33:08] h4ckurate: has joined #RubyOnRails
[18:37:35] gambl0re: what is orm, haml and medis and how do they relate to rails?
[18:38:24] djbell: has joined #RubyOnRails
[18:39:51] sha1sum: has joined #RubyOnRails
[18:39:55] djbell: any routing experts online? Have a question: how can I have two different to_param for a model. I want /admin/order/:id and /api/order/:external_ref_id
[18:40:18] djbell: I tried overwriting api_orders_path in ApplicationHelper, but that didn't take...
[18:40:55] sha1sum: Hey all... I definitely have passenger concurrency misconfigured because every few days my server just drops off and won't even acknowledge connections. When looking in New Relic, there's a huge GC spike, which is when the server stops responding: http://imagebin.ca/v/2BZeDh4fVYh8
[18:40:57] djbell: the resources :order, param: :external_ref_id only does half the job I want
[18:41:13] sha1sum: Does that look indicative of a particular problem to you all?
[18:41:32] djbell: and there's no way to specify different values for to_param depending on which route is requesting it afaik
[18:42:12] madebymarkca: has joined #RubyOnRails
[18:42:21] arooni-mobile: has joined #RubyOnRails
[18:43:19] arooni-mobile__: has joined #RubyOnRails
[18:45:03] Kallis: has joined #RubyOnRails
[18:45:05] arooni-mobile: has joined #RubyOnRails
[18:48:01] renews: has joined #RubyOnRails
[18:49:33] alphaatom: has joined #RubyOnRails
[18:54:41] ktchup: has joined #RubyOnRails
[18:56:55] sandstrom: has joined #RubyOnRails
[19:00:15] workmad3: has joined #RubyOnRails
[19:00:34] drollwit: has joined #RubyOnRails
[19:01:23] givanse: has joined #RubyOnRails
[19:02:50] lapide_viridi: has joined #RubyOnRails
[19:04:29] ktchup: has joined #RubyOnRails
[19:12:23] MikeMikail: has joined #RubyOnRails
[19:13:57] poli: has joined #RubyOnRails
[19:14:49] VeryBewitching: has joined #RubyOnRails
[19:19:03] lethjakman: has joined #RubyOnRails
[19:21:38] bluelf: has joined #RubyOnRails
[19:22:23] beauby: has joined #RubyOnRails
[19:24:54] givanse: has joined #RubyOnRails
[19:28:16] hotpancakes: has joined #RubyOnRails
[19:34:03] nfk: has joined #RubyOnRails
[19:35:26] robbyoconnor: has joined #RubyOnRails
[19:36:07] h4ckurate: has joined #RubyOnRails
[19:41:53] yaw: has joined #RubyOnRails
[19:42:11] renews: has joined #RubyOnRails
[19:43:53] poli: has joined #RubyOnRails
[19:44:31] ascarter: has joined #RubyOnRails
[19:49:20] VeryBewitching: has joined #RubyOnRails
[19:50:43] nettoweb: has joined #RubyOnRails
[19:53:12] dcope: hey all, what's the best way to sanatize a string of curse words that can be two words (containing a space)?
[19:54:43] brnpcn: has joined #RubyOnRails
[19:54:43] drollwit: has joined #RubyOnRails
[19:56:14] Mendenhall: has joined #RubyOnRails
[19:57:47] nerdsville: has joined #RubyOnRails
[19:59:16] yfeldblum: has joined #RubyOnRails
[19:59:50] tvw: has joined #RubyOnRails
[20:00:06] nerdsville: if I have an engine mounted inside another engine, how can I set the initializer config for that mounted engine?
[20:01:28] sdwrage: has joined #RubyOnRails
[20:01:29] cac: has joined #RubyOnRails
[20:02:41] strcmp1: has joined #RubyOnRails
[20:04:03] Trynemjoel: has joined #RubyOnRails
[20:05:04] cornerma1: has joined #RubyOnRails
[20:06:36] yaw: has joined #RubyOnRails
[20:06:56] Lightsword: has joined #RubyOnRails
[20:13:07] The_Phoenix: has joined #RubyOnRails
[20:13:19] aaronds: has joined #RubyOnRails
[20:14:07] darrencauthon: has joined #RubyOnRails
[20:14:38] madebymarkca: has joined #RubyOnRails
[20:15:08] kegan_: has joined #RubyOnRails
[20:15:09] dymk: has joined #RubyOnRails
[20:15:25] Axighi: has joined #RubyOnRails
[20:15:37] dymk: Is it possible to take an ActiveRecord::Relation that has had .select called on it (e.g. Upload.select(:id)) and re-select its columns?
[20:15:53] dymk: E.g. rewhere but for select
[20:18:02] dymk: ah it seems assigning to select_values will do it
[20:19:10] tyrone__: has joined #RubyOnRails
[20:19:52] h4ckurate: has joined #RubyOnRails
[20:20:08] BaNzounet: Hey guys, I've this model https://gist.github.com/AlexGaspar/9bf14ef4f5dabcc0da95 how would you go with I18n.T(); to translate the symbole in text? Is the case in the gist the only solution?
[20:21:37] Jarboe: has joined #RubyOnRails
[20:24:29] mary5030: has joined #RubyOnRails
[20:25:48] hotpancakes: has joined #RubyOnRails
[20:26:52] sdwrage: has joined #RubyOnRails
[20:31:35] bronson: has joined #RubyOnRails
[20:31:47] lapide_viridi: has joined #RubyOnRails
[20:33:57] alexhartley: has joined #RubyOnRails
[20:34:17] lalalaaa: has joined #RubyOnRails
[20:35:11] zorak8: has joined #RubyOnRails
[20:35:29] lalalaaa: Hi! Say I'm already running a Rails app (with Puma, Nginx and PostgreSQL) on my server -- exactly how much toll would it take on my system if I were to launch Discourse (http://github.com/discourse/discourse) from a Docker container?
[20:36:23] lalalaaa: Quite a lot right, considering I'd be emulating a whole new OS and doubling up on all my services?
[20:36:26] baweaver: has joined #RubyOnRails
[20:36:27] renews: has joined #RubyOnRails
[20:40:09] lalalaaa: * plus doubling
[20:40:22] madebymarkca: has joined #RubyOnRails
[20:42:45] h4ckurate: has joined #RubyOnRails
[20:44:07] cac: has joined #RubyOnRails
[20:44:27] ap4y: has joined #RubyOnRails
[20:44:31] DoubleMalt: has joined #RubyOnRails
[20:45:27] doodlehaus: has joined #RubyOnRails
[20:48:06] darrencauthon: has joined #RubyOnRails
[20:48:56] workmad3: has joined #RubyOnRails
[20:49:13] drollwit: has joined #RubyOnRails
[20:49:23] Axilla: has joined #RubyOnRails
[20:50:11] yardenbar: has joined #RubyOnRails
[20:53:10] Zggb: has joined #RubyOnRails
[20:54:34] elaptics: BaNzounet: what are you trying to do?
[20:54:46] x-light: has joined #RubyOnRails
[20:55:25] ellisTAA: has joined #RubyOnRails
[20:56:14] ellisTAA: if i want to create a new method in my controller called login, what is the rails way of creating that new route ??? so that i have users/login
[20:57:02] ellisTAA: do i just add ??? resources :users do
[20:57:03] ellisTAA: post 'login'
[20:57:51] elaptics: EllisTAA: you need to specify it as either a member or collection route in that
[20:58:05] mrbubbles: has joined #RubyOnRails
[20:58:10] elaptics: EllisTAA: since it's not really a restful route, I'd just declare it in the routes
[20:58:33] ellisTAA: elaptics: and what do u mean by ???just declare it in the routes???
[20:58:42] elaptics: EllisTAA: e.g. post "users/login", to: "users#login"
[20:59:13] elaptics: specifying the correct controller name and action
[20:59:39] elaptics: I'd probably also use 'as' to name the route
[20:59:48] brnpcn: has joined #RubyOnRails
[20:59:54] elaptics: e.g. post "users/login", to: "users#login", as: "login"
[21:00:06] ellisTAA: thank you i appreciate the help
[21:00:07] elaptics: that would give me login_path and login_url named helpers
[21:00:28] ellisTAA: ahh ok thanks ill use as
[21:01:11] erich: has joined #RubyOnRails
[21:01:12] alan_andrade: has joined #RubyOnRails
[21:02:52] gambl0r3: has joined #RubyOnRails
[21:03:15] arup_r: has joined #RubyOnRails
[21:03:30] mary5030: has joined #RubyOnRails
[21:05:32] ellisTAA: elaptics: what is the value of using as: ? I see that it changes the prefix in the routes from users_login to login, but how is the beneficial?
[21:07:40] elaptics: EllisTAA: so you can control exactly what the route is called
[21:08:26] elaptics: it's not so important in this case, but it's at least a bit shorter
[21:08:46] ellisTAA: thanks for the tip
[21:09:01] elaptics: it's more useful when you have nested routes or repeated names - using as will simplify the name
[21:09:57] northfurr: has joined #RubyOnRails
[21:11:04] Radar: GOOD MORNING
[21:11:23] elaptics: evening Radar
[21:14:03] northfurr: Morning? Where are you?!
[21:14:15] Radar: northfurr: furrthurr south than you
[21:14:29] Radar: http://everytimezone.com should help :)
[21:15:26] Lightsword: has joined #RubyOnRails
[21:15:40] elaptics: Radar lives in Narnia
[21:15:56] northfurr: aka aussie?
[21:15:58] ur5us: has joined #RubyOnRails
[21:16:07] ellisTAA: i just created these two routes, https://gist.github.com/ellismarte/c28506303a23064030e9 and when i try to go to localhost:3000/signup it says ???no route matches [get] ???/signup???
[21:16:53] Radar: EllisTAA: yup that's a correct error message
[21:17:11] Radar: EllisTAA: Look at the routes you defined. Now to the error. NOW BACK TO THE ROUTES.
[21:17:21] elaptics: EllisTAA: !routing
[21:17:21] helpa: EllisTAA: http://guides.rubyonrails.org/routing.html - Rails Routing From the Outside In - Rails Guide - by Mike Gunderloy
[21:17:22] Radar: What is different between the error message and the routes?
[21:17:33] Radar: elaptics: won't help much in this scenario I think
[21:17:37] ellisTAA: users/signup
[21:17:50] ellisTAA: but even that doesn???t work
[21:18:00] Radar: !didntwork
[21:18:00] helpa: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[21:18:19] ellisTAA: haha. it says missing tempalte for show method
[21:18:22] elaptics: EllisTAA: pay closer attention to the route you defined and where you're visiting
[21:18:30] Radar: EllisTAA: Which is a completely different error.
[21:18:35] Radar: EllisTAA: Full config/routes.rb plz.
[21:18:40] ellisTAA: yeah, but i have a tempalte in the users folder
[21:18:51] Radar: EllisTAA: Full config/routes.rb plz.
[21:19:18] ellisTAA: radar: https://gist.github.com/ellismarte/c28506303a23064030e9
[21:19:28] Radar: https://gist.github.com/ellismarte/c28506303a23064030e9#file-routes-rb-L8-L11
[21:19:42] Radar: These routes need to be defined before resources :users otherwise the show action in resources :users will match those routes first.
[21:19:46] Radar: Routes are matched top-down
[21:19:51] nofxx: has joined #RubyOnRails
[21:19:57] Radar: See "rake routes" to see the order in which your routes are matched.
[21:20:01] sdwrage: has joined #RubyOnRails
[21:20:37] ellisTAA: oh man that works
[21:21:01] ellisTAA: wait how will show match users/signup?
[21:21:21] ellisTAA: thanks for the help btw
[21:21:32] elaptics: EllisTAA: a show route is /users/<anything>
[21:21:49] elaptics: so it'd treat signup as the params id
[21:22:11] ellisTAA: oh man, ok i???m going to read the rails routes page. thanks you two
[21:23:10] elaptics: there's loads of juicy info in the guide
[21:23:50] Radar: EllisTAA: look at rake routes. GET /users/:id is matched before GET /users/signup
[21:24:02] Radar: So the route goes to the show action and passes signup as params[:id]
[21:25:11] ellisTAA: hmm that???s a little confusing, i guess ill read the docs
[21:25:43] Palsson: has joined #RubyOnRails
[21:27:31] Radar: EllisTAA: Gist output of rake routes if you still need help. It'd help if I could highlight the lines :)
[21:29:32] elaptics: EllisTAA: don't think of :id as having to be a number - it's just an identifier effectively so you're just matching url strings. Given /users/:id then /users/10 and /users/signup both match the criteria. Once the routes have found a match they will not look further
[21:30:03] jsrn_: has joined #RubyOnRails
[21:30:14] ellisTAA: ahh gotcha. makes sense now
[21:30:29] elaptics: EllisTAA: if you placed your users/signup route above resources :users then /users/signup will match that and route it whereas /users/10 would not match and will continue looking for routes - when it hits resources :users it'll match the show route criteria
[21:30:38] renews: has joined #RubyOnRails
[21:32:58] hotpancakes: has joined #RubyOnRails
[21:32:59] elton: has joined #RubyOnRails
[21:33:45] doodlehaus: has joined #RubyOnRails
[21:35:30] ellisTAA: i???m trying to create a new user, so the form goes to localhost:3000/users/create and the method is a post, and i???m getting a no route error ??? https://gist.github.com/ellismarte/c28506303a23064030e9 but the users/new route works just fine ???.
[21:36:21] dented42: has joined #RubyOnRails
[21:36:38] elaptics: EllisTAA: there is no /users/create route
[21:36:59] elaptics: EllisTAA: the create action for resources :users is a POST to /users
[21:37:02] ellisTAA: what about this: https://gist.github.com/ellismarte/c28506303a23064030e9#file-all-rb-L6
[21:37:14] ellisTAA: ahh that???s what i thought ??? but why would users/new work?
[21:37:25] elaptics: look at line 7
[21:38:04] ellisTAA: i???m not dumb i swear!
[21:38:16] sargas: has joined #RubyOnRails
[21:41:31] vere: has joined #RubyOnRails
[21:41:54] Motoservo: has joined #RubyOnRails
[21:42:00] Radar: https://twitter.com/ryanbigg/status/630493965008015360
[21:42:08] Radar: If you create this and deploy it, I will be your first customer.
[21:42:45] earthquake: has joined #RubyOnRails
[21:43:04] drollwit: has joined #RubyOnRails
[21:46:11] yardenbar: has joined #RubyOnRails
[21:47:28] earthqua_: has joined #RubyOnRails
[21:48:40] h4ckurate: has joined #RubyOnRails
[21:48:43] renegadeandy: has joined #RubyOnRails
[21:50:23] Radar: There must be an echo in this channel
[21:50:26] Radar: there must be an echo in this channel
[21:50:48] x-light: what do you mean?
[21:50:54] x-light: what do you mean?
[21:51:50] Radar: VeryBewitching: yes.
[21:51:54] Radar: VeryBewitching is a duck.
[21:52:06] renegadeandy: :) hey everyone. Can you help me figure this one out : https://gist.github.com/renegadeandy/19164505e5453eae80c7 -- trying to validate a non model persisted attribute but the validation seems to suggest the value of ticket_single_price is not being set to 0 correctly
[21:52:38] exadeci: has joined #RubyOnRails
[21:52:43] Radar: That params hash is quite long.
[21:52:52] renegadeandy: Radar: yeah its a beast
[21:53:42] Radar: non beast version: https://gist.github.com/radar/c2bd6e9f1d9c1f098ca1
[21:53:59] Radar: ticket_single_price does not appear to be submitted inside the event parameters.
[21:54:03] Radar: event parameters end here: https://gist.github.com/radar/c2bd6e9f1d9c1f098ca1#file-gistfile1-txt-L22
[21:54:11] Radar: ticket_single_price is here: https://gist.github.com/radar/c2bd6e9f1d9c1f098ca1#file-gistfile1-txt-L25
[21:54:16] VeryBewitching: It's right at the end.
[21:54:21] Radar: So yes, the validations are working fine. You aren't submitting it through correctly.
[21:54:27] Radar: VeryBewitching: It's not in the right hash.
[21:54:32] Radar: renegadeandy: show us the form?
[21:54:34] renegadeandy: it needs to be part of the event right?
[21:54:41] Radar: if the validations are in the event model, yes
[21:56:51] renegadeandy: Radar: https://gist.github.com/renegadeandy/5c26b2bb3c881250e66a that is the form element
[21:57:06] Radar: ACTION asks for the whole form, gets three lines
[21:57:13] Radar: ACTION is feeling disappointed
[21:57:51] Radar: Why not <%= f.number_field :ticket_single_price %>?
[21:57:54] renegadeandy: But from those lines....its now part of the event hash
[21:57:59] renegadeandy: but still remains not set
[21:58:14] Radar: My guess is you're not permitting it through in your controller
[21:58:26] Radar: So show us 1) entire form 2) create action + event_params from controller 3) Event model
[21:59:56] renegadeandy: #1 it wasnt part of the event object. #2 it was not being permitted after i had renamed the html element
[22:00:00] nahtnam: has joined #RubyOnRails
[22:06:23] ellisTAA: has joined #RubyOnRails
[22:09:39] bePolite: has joined #RubyOnRails
[22:09:53] Sylario: has joined #RubyOnRails
[22:10:55] workmad3: has joined #RubyOnRails
[22:11:58] sprite--: has joined #RubyOnRails
[22:12:32] doodlehaus: has joined #RubyOnRails
[22:13:25] ellisTAA: can anyone tell me why after i create a new user, the show page isn???t displaying the users alias? https://gist.github.com/ellismarte/6e7bcf8d87a5aa4fd0fb
[22:13:44] sprite--: Should I somehow refactor this test or does it look ok? It seems a bit repetitive. Also should I be testing each role for each action or if the entire Admin namespace requires a certain role is there a better way to test that? https://gist.github.com/sprite2005/994131ae2f3c4e0101eb
[22:14:17] Radar: EllisTAA: alias is not set
[22:14:27] ellisTAA: radar: what do u mean ???set'
[22:14:35] Radar: EllisTAA: @user.alias is nil
[22:14:44] Radar: sprite--: seems fine to me
[22:15:47] ellisTAA: radar: whoa ur right. but why would the alias be nil if i???m sening over stuff in the form. am i not sending data over the form?
[22:15:57] Radar: EllisTAA: Are you though?
[22:16:09] Radar: EllisTAA: show us 1) entire form 2) create action + user_params from controller 4) User model
[22:16:11] ellisTAA: i guess i had a type ><
[22:16:28] ellisTAA: ok it works
[22:18:13] wethu: has joined #RubyOnRails
[22:19:12] Trynemjoel: has joined #RubyOnRails
[22:24:13] chandlerbing: has joined #RubyOnRails
[22:24:53] renews: has joined #RubyOnRails
[22:27:04] allcentury: has joined #RubyOnRails
[22:28:08] idd2d: has joined #RubyOnRails
[22:31:31] ellisTAA: how do i define the route in a form_for?
[22:32:52] nya: has joined #RubyOnRails
[22:34:42] ellisTAA: so if i want to hit my user controller and the login action, would i write url: user_path(login)
[22:37:15] drollwit: has joined #RubyOnRails
[22:38:19] ellisTAA: i guess ill do this url: 'http://localhost:3000/login'
[22:41:01] workmad3: has joined #RubyOnRails
[22:44:05] Radar: EllisTAA: rake routes will show yoyu
[22:44:11] Radar: When in doubt, rake routes
[22:44:21] ellisTAA: word thank you
[22:46:04] dtcristo: has joined #RubyOnRails
[22:47:29] Mendenhall: has joined #RubyOnRails
[22:47:55] Symbiosisz: has joined #RubyOnRails
[22:48:10] madebymarkca: has joined #RubyOnRails
[22:49:02] arooni-mobile: has joined #RubyOnRails
[22:50:31] arooni-mobile__: has joined #RubyOnRails
[22:52:10] arooni-mobile: has joined #RubyOnRails
[22:55:03] sdwrage: has joined #RubyOnRails
[22:57:05] yaw: has joined #RubyOnRails
[22:59:01] stoodfarback: Is there a common thing for giving users the ability to cancel background tasks they started? And maybe report progress to the user. Basically, starting a background job is pretty straightforward, is there anything that takes it further? Or is this a roll-your-own type thing?
[22:59:09] brnpcn: has joined #RubyOnRails
[22:59:11] CanTonic: has joined #RubyOnRails
[22:59:30] Radar: stoodfarback: Roll your own as far as I've seen.
[23:02:27] twilling: has joined #RubyOnRails
[23:03:57] zoidfarb: has joined #RubyOnRails
[23:04:36] stoodfarback: Radar: Kay, thanks. Any rec for abstracting away the communication between worker, server, and client?
[23:05:17] zoidfarb: Hello, I'm trying to figure out how to get a 'rails console' on a system managed by ansible with rbenv to set the ruby version. I keep getting an error like this: $ ./bin/rails console
[23:05:18] zoidfarb: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- bundler/setup (LoadError)
[23:06:09] arBmind1: has joined #RubyOnRails
[23:06:23] HalcyonicStorm: has joined #RubyOnRails
[23:06:26] Radar: stoodfarback: Maybe split the job up into multiple jobs and then log that progress in the DB somewhere?
[23:06:36] mikefulcher: has joined #RubyOnRails
[23:06:42] Radar: zoidfarb: Looks like it's not using the rbenv version of Ruby there.
[23:07:34] zoidfarb: Radar: Is there something I can do to "activate" rbenv?
[23:08:06] zoidfarb: Radar: The server is up and running, so it is configured with the right things somewhere, just not in my own ssh console, apparently
[23:08:12] Radar: zoidfarb: https://github.com/sstephenson/rbenv#basic-github-checkout
[23:08:19] Radar: Add .rbenv/bin to your PATH
[23:08:27] Radar: and then do step #3 there too
[23:08:35] Radar: Just the rbenv init - part
[23:09:18] chandlerbing: has joined #RubyOnRails
[23:09:32] mrf: has joined #RubyOnRails
[23:09:49] twilling: has joined #RubyOnRails
[23:10:47] allcentury: has joined #RubyOnRails
[23:11:21] mheld: has joined #RubyOnRails
[23:11:43] zoidfarb: Radar: Thanks! The rbenv command line tool is available in my shell now. Is there anything else I need?
[23:11:56] Radar: zoidfarb: I can't remember. It's been a while since I've used rbenv.
[23:12:13] basmoura: has joined #RubyOnRails
[23:12:17] zoidfarb: Radar: It works! Thanks
[23:12:59] zoidfarb: Has the rails community reached a consensus on rbenv vs rvm? Or is that still flamewar bait?
[23:13:51] stoodfarback: Radar: OK, thanks for your time. This kind of stuff is pretty interesting to make anyway, so off I go.
[23:15:42] Axy: has joined #RubyOnRails
[23:15:42] Axy: has joined #RubyOnRails
[23:16:46] GeissT: has joined #RubyOnRails
[23:16:52] DEA7TH_: has joined #RubyOnRails
[23:17:07] doodlehaus: has joined #RubyOnRails
[23:19:10] renews: has joined #RubyOnRails
[23:21:11] madebymarkca: has joined #RubyOnRails
[23:21:48] brnpcn: has joined #RubyOnRails
[23:24:09] Ropeney: has joined #RubyOnRails
[23:25:50] michael_mbp: has joined #RubyOnRails
[23:31:23] drollwit: has joined #RubyOnRails
[23:33:55] andrew: has joined #RubyOnRails
[23:35:51] john_magee: has joined #RubyOnRails
[23:36:05] strcmp1: has joined #RubyOnRails
[23:39:37] darwingr: has joined #RubyOnRails
[23:43:52] ellisTAA: i have a users controller, and users can register, login, and logout, but if someone tries to login with a username that doesn???t exist i get sent to locahost:3000/users/login and it says ???no data received err_empty_response??? anyone know why?
[23:44:51] quazimodo: has joined #RubyOnRails
[23:44:53] quazimod1: has joined #RubyOnRails
[23:45:18] Maletor: has joined #RubyOnRails
[23:49:20] idd2d: has joined #RubyOnRails
[23:50:29] helpa: 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.
[23:50:46] Radar: show us the form, and the controller
[23:53:23] poli: has joined #RubyOnRails
[23:53:24] Radar: EllisTAA: ^
[23:53:56] charliesome: has joined #RubyOnRails
[23:54:37] workmad3: has joined #RubyOnRails
[23:54:45] ellisTAA: oh snap i thought i copy and pasted the gist sorry
[23:54:53] ellisTAA: here it is https://gist.github.com/ellismarte/6e7bcf8d87a5aa4fd0fb
[23:55:30] kegan_: has joined #RubyOnRails
[23:55:30] ellisTAA: so when it try to login as someone who doesn???t exist, i get a blank page with a chrome browser error that says ???no data received err_empty_response???
[23:56:04] Klumben: has joined #RubyOnRails
[23:57:16] P0w3r3d: has joined #RubyOnRails