« Back to channel list

#RubyOnRails - 03 April 2016

« Back 1 day Forward 1 day »
[00:00:21] nyandoge: has joined #RubyOnRails
[00:03:15] smathy: Adding it to params won't get it back to your action unless you're doing something special in your form.
[00:03:20] smathy: SteenJobs, ^
[00:03:30] smathy: Just remember, if you put it in the form, then the user can change it if they want to.
[00:04:00] SteenJobs: smathy: ya - so i will get it back - in the update helper, i’d pass the params value as an argument and then update will be able to access it
[00:04:12] SteenJobs: and yea, if the user changes it, authorization will be in place to prevent them from updating other people’s projects
[00:04:27] SteenJobs: but i can’t really think of another way to get the id of the created object to the update action
[00:04:42] rubyonrailed: has joined #RubyOnRails
[00:05:16] smathy: ...you already mentioned the session.
[00:05:41] SteenJobs: right - i meant to say params or session
[00:05:44] SteenJobs: ok cool i’ll add it to session
[00:05:55] chagel: has joined #RubyOnRails
[00:06:16] smathy: SteenJobs, I generally don't use the browser to store state between requests.
[00:06:30] SteenJobs: is the extra data stored in session negligible for the most part in terms of slowing things down? like should i be super careful to remove stale or unecessary data from session when it’s no longer needed?
[00:06:37] SteenJobs: smathy: ok cool - yea so session is good
[00:17:08] halfamind: has joined #RubyOnRails
[00:19:51] Devalo: has joined #RubyOnRails
[00:21:40] _Tariq: has joined #RubyOnRails
[00:24:53] baweaver: has joined #RubyOnRails
[00:27:16] smathy: SteenJobs, if you're storing the session in the cookie, as is the default, then there's a size limit you want to be conscious of.
[00:29:38] rrawlins: has joined #RubyOnRails
[00:30:23] scope: has joined #RubyOnRails
[00:31:05] moeabdol: has joined #RubyOnRails
[00:31:24] yfeldblum: has joined #RubyOnRails
[00:32:29] halfamind: has joined #RubyOnRails
[00:33:27] one_zero: has joined #RubyOnRails
[00:37:45] trifling-jest: has joined #RubyOnRails
[00:39:13] twilling: has joined #RubyOnRails
[00:39:23] _Tariq: has joined #RubyOnRails
[00:40:25] scope: has joined #RubyOnRails
[00:44:56] gingray: has joined #RubyOnRails
[00:45:54] xlegoman: has joined #RubyOnRails
[00:48:48] nodejunkie: has joined #RubyOnRails
[00:49:29] stardiviner: has joined #RubyOnRails
[00:51:19] Jasaka: has joined #RubyOnRails
[00:54:55] johnflux: has joined #RubyOnRails
[00:56:59] _Tariq: has joined #RubyOnRails
[00:56:59] Rubie: has joined #RubyOnRails
[01:04:06] GodFather: has joined #RubyOnRails
[01:06:00] Inside: has joined #RubyOnRails
[01:06:00] Inside: has joined #RubyOnRails
[01:11:14] htmldrum: has joined #RubyOnRails
[01:14:17] pawnbox: has joined #RubyOnRails
[01:17:21] marcules: has joined #RubyOnRails
[01:18:45] GodFather: has joined #RubyOnRails
[01:25:32] TheRokh: has joined #RubyOnRails
[01:28:19] ekinmur: has joined #RubyOnRails
[01:30:02] IrishGringo: has joined #RubyOnRails
[01:31:53] benlieb: has joined #RubyOnRails
[01:32:49] diegoaguilar: has joined #RubyOnRails
[01:34:30] sudoubuntu: has joined #RubyOnRails
[01:36:51] htmldrum: has joined #RubyOnRails
[01:43:25] GodFather: has joined #RubyOnRails
[01:43:52] eljimador: has joined #RubyOnRails
[01:57:29] njero: has joined #RubyOnRails
[01:58:12] djbkd: has joined #RubyOnRails
[01:58:39] User458764: has joined #RubyOnRails
[02:00:56] sudoubuntu: has joined #RubyOnRails
[02:03:54] pawnbox: has joined #RubyOnRails
[02:08:19] SteenJobs: has joined #RubyOnRails
[02:08:27] rickmasta: has joined #RubyOnRails
[02:09:28] baweaver: has joined #RubyOnRails
[02:10:43] n1lo: has joined #RubyOnRails
[02:19:38] moeabdol: has joined #RubyOnRails
[02:22:47] SteenJobs: has joined #RubyOnRails
[02:23:54] joshkovach: has joined #RubyOnRails
[02:30:01] SteenJobs: has joined #RubyOnRails
[02:30:35] rrawlins: has joined #RubyOnRails
[02:31:56] flashpoint9: has joined #RubyOnRails
[02:32:28] htmldrum: has joined #RubyOnRails
[02:33:31] flashpoi_: has joined #RubyOnRails
[02:33:39] pawnbox: has joined #RubyOnRails
[02:33:39] rubie_: has joined #RubyOnRails
[02:36:01] RegulationD: has joined #RubyOnRails
[02:47:54] SteenJobs: has joined #RubyOnRails
[03:02:18] PlasmaStar: has joined #RubyOnRails
[03:03:31] pawnbox: has joined #RubyOnRails
[03:09:47] fedexo: has joined #RubyOnRails
[03:11:44] joshkovach: has joined #RubyOnRails
[03:12:08] sadaf2605: has joined #RubyOnRails
[03:17:38] halfamind: has joined #RubyOnRails
[03:18:31] braincrash: has joined #RubyOnRails
[03:19:39] joshkovach: has joined #RubyOnRails
[03:22:20] scepticulous: has joined #RubyOnRails
[03:24:13] Ropeney: has joined #RubyOnRails
[03:26:25] makenoise: has joined #RubyOnRails
[03:33:28] pawnbox: has joined #RubyOnRails
[03:42:38] georgedrummond: has joined #RubyOnRails
[03:43:13] arBmind1: has joined #RubyOnRails
[03:44:29] stardiviner: has joined #RubyOnRails
[03:49:34] David_H__: has joined #RubyOnRails
[03:50:32] makenoise: has joined #RubyOnRails
[03:50:58] Tempesta: has joined #RubyOnRails
[03:56:15] RaetiveName: has joined #RubyOnRails
[03:57:39] Tempesta: has joined #RubyOnRails
[03:59:10] scepticu1ous: has joined #RubyOnRails
[03:59:22] sudoubuntu: has joined #RubyOnRails
[03:59:53] Tempesta: has joined #RubyOnRails
[04:04:28] gingray: has joined #RubyOnRails
[04:05:28] chagel: has joined #RubyOnRails
[04:07:01] blackmesa: has joined #RubyOnRails
[04:13:21] darkxploit: hello what is the difference between bundler gem and rake?
[04:13:24] pawnbox: has joined #RubyOnRails
[04:15:05] sypheren: has joined #RubyOnRails
[04:15:50] pawnbox: has joined #RubyOnRails
[04:17:58] scepticulous: has joined #RubyOnRails
[04:21:10] Devalo: has joined #RubyOnRails
[04:24:49] makenoise: has joined #RubyOnRails
[04:26:39] owenjones: has joined #RubyOnRails
[04:27:44] krz: has joined #RubyOnRails
[04:29:25] SPYGAME: has joined #RubyOnRails
[04:31:19] rrawlins: has joined #RubyOnRails
[04:32:20] IrishGringo: has joined #RubyOnRails
[04:43:31] htmldrum: has joined #RubyOnRails
[04:49:18] duncannz: has joined #RubyOnRails
[04:55:51] moeabdol: has joined #RubyOnRails
[04:58:25] hxegon: has joined #RubyOnRails
[04:58:26] djbkd: has joined #RubyOnRails
[04:58:29] scope: hey why would gem uglifier have problems creating a controller
[04:58:34] scope: is it version speciific
[05:07:34] sadaf2605: has joined #RubyOnRails
[05:07:51] owenjones: has joined #RubyOnRails
[05:10:45] blackmesa: has joined #RubyOnRails
[05:14:02] yfeldblum: has joined #RubyOnRails
[05:24:41] Cervajz: has joined #RubyOnRails
[05:26:42] Cervajz__: has joined #RubyOnRails
[05:27:16] akshat: has joined #RubyOnRails
[05:29:22] User458764: has joined #RubyOnRails
[05:34:23] matt_d: has joined #RubyOnRails
[05:34:27] halfamind: has joined #RubyOnRails
[05:34:49] halfamind1: has joined #RubyOnRails
[05:42:01] pawnbox: has joined #RubyOnRails
[05:42:48] Tempesta: has joined #RubyOnRails
[05:46:17] pawnbox: has joined #RubyOnRails
[05:48:20] GitGud: has joined #RubyOnRails
[05:48:48] GitGud: has joined #RubyOnRails
[05:51:45] sevenseacat: has joined #RubyOnRails
[05:55:19] sypheren: has joined #RubyOnRails
[06:02:30] dionysus69: has joined #RubyOnRails
[06:02:37] sleungcy: has joined #RubyOnRails
[06:02:56] djbkd: has joined #RubyOnRails
[06:04:47] lxsameer: has joined #RubyOnRails
[06:05:15] trifling-jest: has joined #RubyOnRails
[06:05:21] blackhuey: has joined #RubyOnRails
[06:05:43] trifling-jest: hi guys. any idea how to make the prompt in the terminal colored?
[06:05:55] trifling-jest: i modified the prompt to display the current branch
[06:06:00] trifling-jest: it disable the color of the prompt
[06:06:05] trifling-jest: how do i get the coloring back?
[06:06:06] _Sypheren: has joined #RubyOnRails
[06:06:13] sevenseacat: seems unrelated to rails
[06:07:27] trifling-jest: a little bit :P
[06:08:07] matt_d: trifling-jest: need a little more info; to which prompt are you referring?
[06:09:01] matt_d: trifling-jest: when you say 'current branch,' i'm assuming zsh with oh-my-zsh? :)
[06:10:46] trifling-jest: hang on. i'll paste the link
[06:11:08] trifling-jest: https://www.learnenough.com/git-tutorial#sec-prompt_branches_and_tab_completion
[06:11:09] ecemm: has joined #RubyOnRails
[06:11:29] trifling-jest: i followed the instructions there then it disable my colored prompt in the terminal
[06:11:35] trifling-jest: how do i get back the colored prompt
[06:12:06] ecemm: has joined #RubyOnRails
[06:12:27] ecemm: has joined #RubyOnRails
[06:12:48] ecemm: has joined #RubyOnRails
[06:13:06] ecemm: has joined #RubyOnRails
[06:13:24] ecemm: has joined #RubyOnRails
[06:13:45] ecemm: has joined #RubyOnRails
[06:13:47] blackmesa: has joined #RubyOnRails
[06:17:06] htmldrum: has joined #RubyOnRails
[06:17:50] matt_d: trifling-jest: it appears you have any color codes in your PS1 variable, if you followed that tutorial
[06:18:00] matt_d: *don't have any
[06:18:14] trifling-jest: what can i do?
[06:18:23] matt_d: trifling-jest: add color codes
[06:18:37] trifling-jest: do ijust get the color codes from the .bashrc file?
[06:19:00] trifling-jest: that's where i enabled the force color prompt
[06:19:36] SteenJobs: has joined #RubyOnRails
[06:25:14] matt_d: trifling-jest: too much to explain in here. check out: http://www.understudy.net/custom.html#color_prompts
[06:25:44] matt_d: trifling-jest: when you look at your .bash_profile, you'll see that you have no color escape codes in your PS1 variable.
[06:26:01] matt_d: trifling-jest: customize away
[06:26:11] trifling-jest: i see. do i just follow the instructions on the site you pasted?
[06:27:11] matt_d: trifling-jest: it's more of an example and chart of colors you can use
[06:27:29] trifling-jest: i wil just make it work from the site you've given
[06:27:34] trifling-jest: thanks matt_d! :)
[06:28:59] arup_r: has joined #RubyOnRails
[06:29:21] matt_d: trifling-jest: you're just adding "escape codes." think of it kind of like an open html tag setting a color.
[06:30:39] trifling-jest: ok understood. thanks! :)
[06:32:19] rrawlins: has joined #RubyOnRails
[06:41:31] baweaver: has joined #RubyOnRails
[06:44:10] DoubleMalt: has joined #RubyOnRails
[06:56:08] dionysus69: has joined #RubyOnRails
[07:02:00] Tempesta: has joined #RubyOnRails
[07:05:20] apotry: has joined #RubyOnRails
[07:05:35] moeabdol: has joined #RubyOnRails
[07:06:29] quazimodo: has joined #RubyOnRails
[07:07:00] Tempesta: has joined #RubyOnRails
[07:10:44] sergey_makagon: has joined #RubyOnRails
[07:11:06] Tempesta: has joined #RubyOnRails
[07:13:42] User458764: has joined #RubyOnRails
[07:13:49] djbkd_: has joined #RubyOnRails
[07:16:51] blackmesa: has joined #RubyOnRails
[07:17:07] agit0: has joined #RubyOnRails
[07:23:10] vale_tudo: has joined #RubyOnRails
[07:26:01] LowLifePerv: has joined #RubyOnRails
[07:28:03] itkin: has joined #RubyOnRails
[07:36:50] AntiSpamMeta: has joined #RubyOnRails
[07:37:05] chagel: has joined #RubyOnRails
[07:38:31] gingray: has joined #RubyOnRails
[07:38:52] solars: has joined #RubyOnRails
[07:38:58] GitGud: has joined #RubyOnRails
[07:43:08] arup_r: has joined #RubyOnRails
[07:48:54] yfeldblum: has joined #RubyOnRails
[08:02:18] futilegames: has joined #RubyOnRails
[08:03:35] marr: has joined #RubyOnRails
[08:08:41] tildes_: has joined #RubyOnRails
[08:10:56] tildes_: has joined #RubyOnRails
[08:10:59] sevenseacat: has joined #RubyOnRails
[08:14:03] darutoko: has joined #RubyOnRails
[08:16:22] itkin: has joined #RubyOnRails
[08:16:51] jkahn: has joined #RubyOnRails
[08:18:11] rlf: has joined #RubyOnRails
[08:18:11] rlf: has joined #RubyOnRails
[08:19:05] tildes: has joined #RubyOnRails
[08:19:36] tildes_: has joined #RubyOnRails
[08:19:54] blackmes1: has joined #RubyOnRails
[08:20:17] tildes: has joined #RubyOnRails
[08:26:57] tildes: has joined #RubyOnRails
[08:27:01] pawnbox: has joined #RubyOnRails
[08:29:38] arup_r: has joined #RubyOnRails
[08:30:34] pawnbox: has joined #RubyOnRails
[08:33:29] foucist: has joined #RubyOnRails
[08:37:42] FooBarWidget: are there any passenger users here?
[08:37:55] FooBarWidget: could anybody tell me what they think about the Passenger Library?
[08:52:35] PlasmaStar: has joined #RubyOnRails
[08:53:44] tbuehlmann: hey FooBarWidget, used it for a project some years ago. finding the right apache directives for the ruby version being used and other things wasn't hard, just a bit intimidating because of the long one-page-has-it-all-documentation. it worked for me, but I didn't feel too well with it since I didn't know anything about its implementation and integration with apache. by the time I somehow
[08:53:44] tbuehlmann: switched to thin, then later to puma because they were more, let's say, tangible to me
[08:55:41] tbuehlmann: I also had the feeling that it's a one-person-project (maintained by you) and that it's therefore risky to use it. but that's the case with other web application server, too. so I don't give too much about that argument these days
[08:57:00] FooBarWidget: thanks for the feedback. on the documentation side we've improved that a lot. take a look at www.phusionpassenger.com/library :)
[08:57:42] tbuehlmann: yeah, I read about it in here some weeks ago I guess
[08:57:45] FooBarWidget: we realized that the one-long-page documentation had reached its limits so we switched to something friendlier. there are now even end-to-end tutorials that cover everything from installing ruby, spinning up digital ocean and deploying rails itself
[08:58:07] FooBarWidget: ironically I'm getting complaints from people who are used to the one-long-page style
[08:58:38] FooBarWidget: they are used to Ctrl-F to search what they need so they now complain that it's *not* one-long-page. I'm trying to reach out to one of those people (I don't know who they are) to see how I can improve the library
[08:59:04] workmad3: FooBarWidget: heh :) that's how I used to find the bits of doc I needed when I used passenger
[08:59:18] tbuehlmann: yea, I can understand that
[08:59:42] tbuehlmann: having a good search in place is worth a lot
[08:59:47] FooBarWidget: workmad3: what do you think of it now? I've added various tweaks to accomodate the people who are used to the old style?
[09:00:27] workmad3: FooBarWidget: just taking a look
[09:00:28] FooBarWidget: tbuehlmann: as for internals, we have lots of internals documentation these days. the entire architecture is documented, how the integration with apache works is documentation
[09:01:09] workmad3: FooBarWidget: I think I'd be happy with the reference listing if I were to use passenger again :)
[09:01:09] FooBarWidget: about 5 years ago it was mostly a one-person-project. nowadays we have more people. we even have a new engineer hire in the pipeline, hopefully for next month
[09:02:31] FooBarWidget: but I'm kind of confused by that. puma and unicorn are *also* one-man projects, so how did they differ?
[09:03:16] tbuehlmann: as said, I don't give too much about that argument these days
[09:04:55] tbuehlmann: or do you specifically refer to "these days"? well, I wouldn't know better years ago
[09:05:59] FooBarWidget: puma and unicorn have always been one-man projects
[09:06:28] FooBarWidget: passenger has always been a company-backed project, though until 4 years ago the development was effectively one-employee-backed
[09:08:06] tbuehlmann: right, that was a false impression by some-years-ago-me, but that went mistakenly into consideration
[09:08:13] tbuehlmann: just trying to be honest here
[09:08:21] darkxploit: has joined #RubyOnRails
[09:09:23] andya_: has joined #RubyOnRails
[09:13:05] dgncn: has joined #RubyOnRails
[09:15:02] User458764: has joined #RubyOnRails
[09:16:03] sandstrom: has joined #RubyOnRails
[09:16:45] futilegames: has joined #RubyOnRails
[09:17:29] krz: has joined #RubyOnRails
[09:22:51] blackmes1: has joined #RubyOnRails
[09:24:35] rrawlins: has joined #RubyOnRails
[09:30:36] d0nn1e: has joined #RubyOnRails
[09:34:52] Macaveli: has joined #RubyOnRails
[09:43:38] hightower2: has joined #RubyOnRails
[09:45:41] Meow-J: has joined #RubyOnRails
[09:48:00] Lumia930: has joined #RubyOnRails
[09:48:52] DoubleMalt: has joined #RubyOnRails
[09:49:43] dionysus69: has joined #RubyOnRails
[09:51:13] eljimmy: has joined #RubyOnRails
[09:52:50] eljimbo: has joined #RubyOnRails
[09:53:33] blackmes1: has joined #RubyOnRails
[09:57:07] scyth: has joined #RubyOnRails
[10:02:04] FooBarWidget: has joined #RubyOnRails
[10:04:12] AzaToth: has joined #RubyOnRails
[10:08:26] chagel: has joined #RubyOnRails
[10:08:34] arup_r: has left #RubyOnRails: ()
[10:08:51] arup_r: has joined #RubyOnRails
[10:13:41] PedramT: has joined #RubyOnRails
[10:22:34] neanderslob: has joined #RubyOnRails
[10:23:35] akm: has joined #RubyOnRails
[10:23:53] mdw: has joined #RubyOnRails
[10:24:26] baweaver: has joined #RubyOnRails
[10:25:27] G: has joined #RubyOnRails
[10:35:26] akshat: has joined #RubyOnRails
[10:38:02] njero: has joined #RubyOnRails
[10:38:38] User458764: has joined #RubyOnRails
[10:39:13] User458764: has joined #RubyOnRails
[10:46:32] akshat: has joined #RubyOnRails
[10:51:07] tildes: has joined #RubyOnRails
[10:51:29] PedramT: has joined #RubyOnRails
[10:53:47] renegadeandy: has joined #RubyOnRails
[11:00:50] User458764: has joined #RubyOnRails
[11:14:01] PedramT_: has joined #RubyOnRails
[11:15:21] srinidhi: has joined #RubyOnRails
[11:17:16] n008f4g_: has joined #RubyOnRails
[11:17:18] PedramT: has joined #RubyOnRails
[11:44:33] Megamos: has joined #RubyOnRails
[11:47:51] bronson: has joined #RubyOnRails
[11:51:36] user_9876: has joined #RubyOnRails
[11:52:59] o: has joined #RubyOnRails
[11:54:04] krz: has joined #RubyOnRails
[11:59:05] darkxploit: has joined #RubyOnRails
[12:01:54] darkxploit: has joined #RubyOnRails
[12:02:58] scepticulous: has joined #RubyOnRails
[12:04:42] darkxploit: has joined #RubyOnRails
[12:05:40] tildes: If I have a controller, that will not render views is it still reasonable to inherit ActionController::Base?
[12:06:34] djbkd: has joined #RubyOnRails
[12:07:32] darkxploit: has joined #RubyOnRails
[12:11:25] tbuehlmann: tildes: what does it do if not rendering?
[12:12:10] tildes: tbuehlmann: well, I need something (perhaps a controller), that can have a route, can take in parameters, and respond, most likely with json
[12:12:38] tildes: but it would not have any views of its own, rather, another view would use it (I can get more specific, if helpful)
[12:12:59] mdw: has joined #RubyOnRails
[12:13:56] tildes: and I was just thinking, rails being quite modular, perhaps I should do something else, than just inherit ActionController::Base, as with my other controllers
[12:14:16] tildes: (I'm in this why, why, what, what phase with rails apparently...)
[12:14:35] tbuehlmann: still not sure I understand. so it's backed by a route, takes parameters and responds with json? sounds like a typical controller to me
[12:15:14] tildes: tbuehlmann: but it will not have views. ok, if there is no issue really, then I'll just go ahead
[12:16:38] tbuehlmann: you still have to render a result, and that's where the controller comes into play
[12:16:54] tbuehlmann: so it really sounds like just a controller to me
[12:17:57] shinnya: has joined #RubyOnRails
[12:25:04] aloneintheworld: has joined #RubyOnRails
[12:25:05] tknz: has joined #RubyOnRails
[12:25:31] baweaver: has joined #RubyOnRails
[12:29:16] User458764: has joined #RubyOnRails
[12:29:18] krz: has joined #RubyOnRails
[12:39:49] RegulationD: has joined #RubyOnRails
[12:42:44] camilasan: has joined #RubyOnRails
[12:46:03] denaras: has joined #RubyOnRails
[12:46:12] renegadeandy: has joined #RubyOnRails
[12:47:48] akshat: has joined #RubyOnRails
[12:48:39] IrishGringo: has joined #RubyOnRails
[12:49:22] sandelius: has joined #RubyOnRails
[12:54:29] marcules: has joined #RubyOnRails
[13:01:03] meoblast001: has joined #RubyOnRails
[13:01:43] mdw7: has joined #RubyOnRails
[13:02:16] PedramT: has joined #RubyOnRails
[13:03:02] mdw7_: has joined #RubyOnRails
[13:04:41] jetpack_joe: has joined #RubyOnRails
[13:04:50] someish: has joined #RubyOnRails
[13:05:21] mdw___: has joined #RubyOnRails
[13:08:34] shinnya: has joined #RubyOnRails
[13:14:06] GodFather: has joined #RubyOnRails
[13:14:11] daytime: has joined #RubyOnRails
[13:14:48] hardtail: has joined #RubyOnRails
[13:15:36] PedramT: has joined #RubyOnRails
[13:17:21] tildes: has joined #RubyOnRails
[13:20:33] jonathanwallace1: has joined #RubyOnRails
[13:22:28] diegoaguilar: has joined #RubyOnRails
[13:27:17] PedramT: has joined #RubyOnRails
[13:32:05] blackmes1: has joined #RubyOnRails
[13:36:34] JDeen: has joined #RubyOnRails
[13:39:59] JDeen: Hi there. I got a nested form (uses cocoon gem). Wiwht an association like `document has many images`. In `Image` I validate presence of `document`. How ever the create fails as ex: `@document.images.first.document # => nil`. Is this usual behaviour? When handling nested forms how do we validate parent?
[13:40:15] chagel: has joined #RubyOnRails
[13:43:24] makenoise: has joined #RubyOnRails
[13:46:03] sudoubuntu: has joined #RubyOnRails
[13:50:36] Spami: has joined #RubyOnRails
[13:51:42] King_Rex: has joined #RubyOnRails
[13:55:32] quazimodo: has joined #RubyOnRails
[13:58:33] JDeen: never mind guys, figured it out, `inverse_of: :document` had to be used.
[13:58:41] JDeen: enjoy the weekend
[14:01:04] n008f4g_: has joined #RubyOnRails
[14:04:37] halfamind: has joined #RubyOnRails
[14:09:09] workmad3: has joined #RubyOnRails
[14:13:21] sudoubuntu: has joined #RubyOnRails
[14:21:10] srinidhi: has joined #RubyOnRails
[14:21:34] owenjones: has joined #RubyOnRails
[14:21:44] lord4163_: has joined #RubyOnRails
[14:23:07] n1lo: has joined #RubyOnRails
[14:23:25] PedramT: has joined #RubyOnRails
[14:29:45] lord4163: has joined #RubyOnRails
[14:30:45] melonstorm: has joined #RubyOnRails
[14:35:17] SeanLazer: has joined #RubyOnRails
[14:38:06] georgedrummond: has joined #RubyOnRails
[14:46:26] crdpink: has joined #RubyOnRails
[14:47:52] halfamind: has joined #RubyOnRails
[14:49:12] adavia: has joined #RubyOnRails
[14:49:15] halfamind1: has joined #RubyOnRails
[14:54:34] halfamind: has joined #RubyOnRails
[14:56:27] WhereIsMySpoon_: has joined #RubyOnRails
[14:57:07] loglaunch: has joined #RubyOnRails
[14:57:17] georgedrummond: has joined #RubyOnRails
[15:01:35] Rubie: has joined #RubyOnRails
[15:04:51] Fubarius: has joined #RubyOnRails
[15:06:38] halfamind1: has joined #RubyOnRails
[15:08:02] halfamind: has joined #RubyOnRails
[15:08:47] halfamind1: has joined #RubyOnRails
[15:09:18] halfamind: has joined #RubyOnRails
[15:11:21] halfamind1: has joined #RubyOnRails
[15:11:23] roqo: has joined #RubyOnRails
[15:12:03] spd42: has joined #RubyOnRails
[15:12:51] Fubarius: has joined #RubyOnRails
[15:13:14] stardiviner: has joined #RubyOnRails
[15:13:45] User458764: has joined #RubyOnRails
[15:16:19] dvinciguerra: has joined #RubyOnRails
[15:16:40] Thomas-0725: has joined #RubyOnRails
[15:18:45] delgiudices: has joined #RubyOnRails
[15:19:44] joshkovach: has joined #RubyOnRails
[15:21:44] adavia: has joined #RubyOnRails
[15:24:11] georgedrummond: has joined #RubyOnRails
[15:26:13] tildes: has joined #RubyOnRails
[15:28:36] owenjones: has joined #RubyOnRails
[15:35:51] PedramT: has joined #RubyOnRails
[15:36:21] SPYGAME: has joined #RubyOnRails
[15:37:32] bijan: has joined #RubyOnRails
[15:39:21] denaras: has joined #RubyOnRails
[15:54:35] magikid: has joined #RubyOnRails
[15:55:53] workmad3_: has joined #RubyOnRails
[16:00:58] workmad3: has joined #RubyOnRails
[16:03:16] beauby: has joined #RubyOnRails
[16:04:00] n008f4g_: has joined #RubyOnRails
[16:04:39] halfamind: has joined #RubyOnRails
[16:16:27] benlieb: has joined #RubyOnRails
[16:17:16] drale2k: what would i use for voice calls via rails like facebook calls or whatsapp calls
[16:21:47] hxegon: has joined #RubyOnRails
[16:25:08] _Tariq: has joined #RubyOnRails
[16:25:32] havenwood: drale2k: Ruby telephony brings Adhearsion to mind.
[16:25:38] havenwood: drale2k: http://adhearsion.com
[16:26:19] htmldrum: has joined #RubyOnRails
[16:26:25] drale2k: havenwood: hm thanks will check it out
[16:26:46] drale2k: just found out Safari still has no WebRTC support
[16:27:21] trinaldi: has joined #RubyOnRails
[16:27:48] mdw: has joined #RubyOnRails
[16:28:26] baweaver: has joined #RubyOnRails
[16:30:06] mdw: has joined #RubyOnRails
[16:30:41] georgedrummond: has joined #RubyOnRails
[16:32:52] benlieb: has joined #RubyOnRails
[16:33:16] moei: has joined #RubyOnRails
[16:33:44] King_Rex: has joined #RubyOnRails
[16:34:52] _Tariq_: has joined #RubyOnRails
[16:35:07] georgedrummond: has joined #RubyOnRails
[16:36:08] delgiudices: If i have a record with a field name
[16:36:14] delgiudices: And i want the name to be unique
[16:36:35] delgiudices: But not exact unique
[16:36:37] _Tariq__: has joined #RubyOnRails
[16:36:59] hightower3: has joined #RubyOnRails
[16:37:02] delgiudices: Unique like no other record with same name but not necessarly same exact string
[16:38:13] chouhoulis: has joined #RubyOnRails
[16:38:46] tbuehlmann: delgiudices, when do you consider two names equal?
[16:41:11] delgiudices: I don't know i was looking for options tbuehlmann
[16:41:17] delgiudices: I believe the terminology is fuzzy uniqueness?
[16:43:54] _Tariq: has joined #RubyOnRails
[16:47:12] mdw: has joined #RubyOnRails
[16:48:18] delgiudices: Whats a simple way to implement search
[16:48:21] srinidhi: has joined #RubyOnRails
[16:48:33] delgiudices: that is not like %keyword%
[16:48:55] mdw: has joined #RubyOnRails
[16:52:38] twilling: has joined #RubyOnRails
[16:54:17] Fubarius: has joined #RubyOnRails
[16:56:31] tbuehlmann: delgiudices, when using postgres, https://github.com/Casecommons/pg_search is an option
[16:56:34] tbuehlmann: elasticsearch else
[17:01:04] chagel: has joined #RubyOnRails
[17:01:16] georgedrummond: has joined #RubyOnRails
[17:01:35] tbuehlmann: delgiudices: too many questions, though..
[17:02:30] sudoubuntu: has joined #RubyOnRails
[17:03:08] moei: has joined #RubyOnRails
[17:03:19] DoubleMalt: has joined #RubyOnRails
[17:03:21] tildes: delgiudices: if you google 'ruby similarity gem' any of the top hits could be something for you
[17:03:28] halfamind: has joined #RubyOnRails
[17:04:10] tildes: also, since there are implementations for correcting spelling mistakes (for instance google's very own 'did you mean...?'), there should be knowledge out there
[17:04:35] bijan: has joined #RubyOnRails
[17:04:41] tildes: algorithms are not rails / ruby specific, on the gem front you might find something
[17:07:05] tildes: delgiudices: perhaps something like this (http://stackoverflow.com/questions/9822078/ruby-compare-two-strings-similarity-percentage)...
[17:09:48] tildes: (I haven't implemented that kind of stuff myself, but I'm getting the feeling you would like to cache results)
[17:13:10] owenjones: has joined #RubyOnRails
[17:13:36] pikos: has joined #RubyOnRails
[17:20:48] scope2229: has joined #RubyOnRails
[17:21:20] DragonPunch: has joined #RubyOnRails
[17:21:20] Fubarius: has joined #RubyOnRails
[17:22:22] DragonPunch: Is there a cheat sheet of all the validations in rails?
[17:22:32] mwlang: is it possible to constrain guard to running just one spec or describe block?
[17:23:13] mwlang: DragonPunch: http://api.rubyonrails.org/classes/ActiveModel/Validations/HelperMethods.html
[17:26:44] mwlang: DragonPunch: actually, I got to wondering about a more concise listing myself after your question…found a pretty good page here: http://ricostacruz.com/cheatsheets/rails-models.html
[17:31:28] tildes: I have a sketch of a test, a controller in progress, a route and the action in place (the test doesn't assert yet anything) and I get UrlGenerationError, not sure why. What is missing? http://pastie.org/private/txy0mwsn7h0acepu3437g
[17:32:24] smathy: has joined #RubyOnRails
[17:33:09] User458764: has joined #RubyOnRails
[17:34:26] netzfisch: has joined #RubyOnRails
[17:35:12] baweaver: has joined #RubyOnRails
[17:35:13] tildes: rake routes seems to imply, that show would want an id to go with it
[17:35:26] tildes: then I would probably change the params accordingly, and that could resolve it
[17:35:40] tildes: (makes sense that show wants and id)
[17:37:17] smathy: tildes, precisely.
[17:37:37] Dimik: has joined #RubyOnRails
[17:37:42] tildes: smathy, yup, and the next error awaits :)
[17:39:09] rubyonrailed: has joined #RubyOnRails
[17:40:05] georgedrummond: has joined #RubyOnRails
[17:42:18] gingray: has joined #RubyOnRails
[17:42:19] P4Titan: has joined #RubyOnRails
[17:42:41] P4Titan: Hello all. How can I enforce race conditions in regard to uniqnuess with scope?
[17:43:20] Fubarius: has joined #RubyOnRails
[17:43:34] Mia: has joined #RubyOnRails
[17:43:34] Mia: has joined #RubyOnRails
[17:43:35] bronson_: has joined #RubyOnRails
[17:43:36] smathy: P4Titan, use DB constraints.
[17:43:48] smathy: (assuming by "enforce" you meant "avoid")
[17:44:17] P4Titan: yes, but aren't DB contraints for each individual column
[17:44:50] morfin: has joined #RubyOnRails
[17:44:52] morfin: has left #RubyOnRails: ()
[17:45:03] smathy: P4Titan, no.
[17:46:32] P4Titan: so if I have a user with two records: (User x y) and I make both records unique at the DB level
[17:46:55] P4Titan: if I try adding User x z, I presume that it would fail
[17:47:10] P4Titan: as the x column's uniqueness check would trigger
[17:47:26] smathy: Assuming by "two records" you mean "two columns".
[17:47:46] tildes: smathy: you are really good at guessing!
[17:47:48] smathy: So you're just asking the same question I just answered, in a different form?
[17:48:16] smathy: tildes, yeah, too good! I usually force people to be clearer.
[17:48:43] tildes: smathy: it's a gift allright :D
[17:48:43] P4Titan: pretty much. Just to clarify what I originally meant
[17:48:48] smathy: P4Titan, as I said, DB constraints do not have to be for each individual column.
[17:49:03] smathy: You asked, I said no.
[17:49:09] smathy: I wasn't stuttering.
[17:49:57] smathy: "Oh cool, thanks smathy, I'll go google db constraints on multiple columns." "You're welcome P4Titan."
[17:50:18] smathy: ^ just so I don't go insane with rage at people's rudeness.
[17:50:34] qejk: has joined #RubyOnRails
[17:50:43] reber: has joined #RubyOnRails
[17:52:02] mdw: has joined #RubyOnRails
[17:52:41] P4Titan: ai man, I didn't mean anything; sorry. My lapse was because I did search up some stuff
[17:52:52] P4Titan: and I wanted to ask if I found the correct thing
[17:52:59] P4Titan: thanks for your help regardless :D
[17:53:03] mdw7: has joined #RubyOnRails
[17:53:16] Limix: has joined #RubyOnRails
[17:54:29] Limix: Hi all, working on an app that has a feature that syncs all posts with a remote service.
[17:54:47] Limix: I have sidekiq running jobs for the syncing
[17:55:07] smathy: P4Titan, appreciated.
[17:55:23] Limix: what is the correct place to put the actual syncing logic code. I currently have it all in helper files
[17:56:06] Limix: but this is a json api only rails app, and I’m reading that helpers are really for something else entirely
[17:56:12] smathy: Limix, not sure what "helper files" mean, I really hope you don't mean in app/helpers/*_helper.rb modules.
[17:56:21] Limix: app/helper
[17:56:21] fryguy: Limix: consider making service objects, or putting the logic in the worker classes themselves
[17:56:30] smathy: Limix, ok, that's terrible.
[17:57:04] Limix: where should I put service objects?
[17:57:08] smathy: Limix, just make a class, put it in app/whatever-you-want can even just be in app/jobs
[17:57:10] Limix: app/services
[17:57:14] smathy: Yep, perfect.
[17:57:58] arup_r: has joined #RubyOnRails
[17:58:00] Limix: when testing these service objects, I’m using the vcr gem
[17:58:13] Limix: what type of test is that?
[17:58:15] fryguy: you should test more narrowly than vcr usually
[17:58:21] fryguy: it's an integration test
[17:59:15] Limix: is it good practice to created nested directories inside the integration test folder?
[17:59:22] Limix: for this part of the app?
[17:59:34] Limix: to create*
[18:02:20] n008f4g_: has joined #RubyOnRails
[18:02:24] duderonomy: has joined #RubyOnRails
[18:02:42] nickenchuggets: has joined #RubyOnRails
[18:03:46] rogue_koder: has joined #RubyOnRails
[18:04:32] pikos: hi! we're working on an application to manage ubuntu systems and I'm having troubles with testing our API. Anyone got an idea? Documented it here: http://pastie.org/private/lin6p7vydapmgujpsjcg
[18:05:02] pikos: I'm not sure how to set up the test for /task/:id/notify - it tells me that no route matches my test call
[18:06:02] fedexo: has joined #RubyOnRails
[18:08:01] mdw: has joined #RubyOnRails
[18:09:19] smathy: piko_, there's no id
[18:09:27] johnflux: has joined #RubyOnRails
[18:10:12] djbkd: has joined #RubyOnRails
[18:13:12] pikos: smathy: dang, you're right. of course it'd need an ID. Weird that this means that it can't find the route, though. Do you by any chance know the syntax on how to pass the ID or where to look it up? I've been using http://guides.rubyonrails.org/routing.html#listing-existing-routes but it's not very broad
[18:16:05] Cohedrin: has joined #RubyOnRails
[18:17:23] Cohedrin: has joined #RubyOnRails
[18:19:08] User458764: has joined #RubyOnRails
[18:19:36] defsdoor: has joined #RubyOnRails
[18:21:07] smathy: piko_, I'm not actually sure how to do this with a controller test for JSON.
[18:22:23] smathy: piko_, you would usually provide the `:id` in that first argument, along with all your other parameters, but that'd be in a hash for a regular HTML request. Here you're encoding your request body for the JSON request, so I can't think where/how you'd provide the parameters needed for the route.
[18:23:19] smathy: piko_, I would usually test an API with an integration test, where you'd be providing a full string path, and that path would include the ID.
[18:23:55] johnflux: has joined #RubyOnRails
[18:25:14] pikos: smathy: Thanks! I'll try an integration test (like http://guides.rubyonrails.org/testing.html#integration-testing) then
[18:28:53] zave: has joined #RubyOnRails
[18:29:59] mwlang: how do I get the name of the activerecord model without all the columns as a string? For example: “Page” instead of “Page(id: …”? I thought it was Page.model_name.name, but #model_name isn’t defined on the AR class.
[18:30:46] smathy: Page.to_s
[18:32:25] makenoise: has joined #RubyOnRails
[18:33:03] smathy: Also, model_name should be defined.
[18:34:13] Allfader: has joined #RubyOnRails
[18:34:52] mwlang: smathy: just realized I had an instance of the class where I was attempting to get model_name…so… page.class.model_name. d-oh!
[18:35:48] Allfader: has left #RubyOnRails: ()
[18:37:27] scope2229: has joined #RubyOnRails
[18:40:30] tildes: piko_, smathy: apparently you could provide the path itself in a controller spec, looks a bit strange though http://stackoverflow.com/questions/6665925/get-an-url-or-path-provided-as-string-in-an-rspec-test
[18:40:59] tildes: (just curious about how to do it, wondering what is the best practice in these cases)
[18:41:24] pikos: tildes: I'm not using rspec, unfortunately
[18:42:21] edwinvdgraaf: has joined #RubyOnRails
[18:43:13] SPYGAME: has joined #RubyOnRails
[18:43:16] tildes: piko_ the answer might not be rspec specific
[18:43:30] smathy: tildes, not sure how you think that counts as being able to provide the path itself. It's a monkey patch of the underlying method Rails uses.
[18:43:56] tildes: smathy: well, for sure I didn't think very far with it. just curious about how it's to be done
[18:44:03] smathy: mwlang, cool :)
[18:44:42] smathy: tildes, as I said (and as that first answer says), best to just switch to an integration test (or "request spec" in rspec parlance).
[18:46:05] PedramT: has joined #RubyOnRails
[18:46:18] edwinvdgraaf: has joined #RubyOnRails
[18:46:22] tildes: smathy: ok thanks
[18:46:38] duderonomy: has joined #RubyOnRails
[18:49:58] Trynemjoel: has joined #RubyOnRails
[18:55:02] joshkovach: has joined #RubyOnRails
[18:57:38] rogue_koder: has joined #RubyOnRails
[19:01:22] Cohedrin_: has joined #RubyOnRails
[19:01:40] dionysus69: has joined #RubyOnRails
[19:02:18] netzfisch: has joined #RubyOnRails
[19:03:34] ur5us: has joined #RubyOnRails
[19:04:33] owenjones: has joined #RubyOnRails
[19:06:29] PlasmaStar: has joined #RubyOnRails
[19:14:46] Spami: has joined #RubyOnRails
[19:15:57] georgedrummond: has joined #RubyOnRails
[19:16:20] blackmes1: has joined #RubyOnRails
[19:18:13] sudoubuntu: has joined #RubyOnRails
[19:21:13] akshat: has joined #RubyOnRails
[19:24:44] PedramT: has joined #RubyOnRails
[19:26:49] lacrosse: has joined #RubyOnRails
[19:29:42] owenjones: has joined #RubyOnRails
[19:34:10] stardiviner: has joined #RubyOnRails
[19:34:21] twilling: has joined #RubyOnRails
[19:40:09] GG: has joined #RubyOnRails
[19:41:36] Cohedrin: has joined #RubyOnRails
[19:45:59] arup_r: Why this error is coming https://gist.github.com/aruprakshit/08595bfd7e5106bdeed72d53b289a0d0 ?
[19:46:35] arup_r: updated https://gist.github.com/aruprakshit/08595bfd7e5106bdeed72d53b289a0d0
[19:56:43] King_Rex: has joined #RubyOnRails
[19:57:03] smathy: arup_r, why do you think?
[19:57:29] arup_r: I can use aggregate function one 1 column inside a select.. without group by right?
[19:57:49] arup_r: smathy: ^
[19:59:09] smathy: arup_r, I think you know the answer to that: `SELECT SUM(foo) FROM foos` is obviously valid SQL.
[19:59:13] arup_r: I have only 1 select column.. with SUM(..)
[19:59:21] arup_r: yes that is valid
[19:59:35] arup_r: Then where it is wrong in my case..
[20:00:03] smathy: arup_r, why do you think the error mentions "answers.id"? Where do you think it got it from?
[20:00:28] arup_r: No idea I am bit lost
[20:00:37] arup_r: it is primary column..
[20:00:43] P4Titan: has joined #RubyOnRails
[20:01:19] P4Titan: smathy: Hi smathy. Is this how I would do that unique accross collumns things I asked about earlier
[20:01:21] P4Titan: add_index :relationships, [:follower_id, :followed_id], unique: true
[20:01:32] smathy: arup_r, ok, yes, maybe SQL engines do something magical with the primary key, so that's one possibility, although that wouldn't explain why `SELECT SUM(foo) FROM foos` works.
[20:01:44] flashpoint9: has joined #RubyOnRails
[20:01:51] Devalo: has joined #RubyOnRails
[20:02:11] mdw: has joined #RubyOnRails
[20:02:22] smathy: arup_r, let's begin with what we actually know though, just look at just the error itself, is there any more obvious explanation of why the error mentions answers.id?
[20:02:32] smathy: P4Titan, yes.
[20:02:44] smathy: P4Titan, nicely done.
[20:02:56] mdw: has joined #RubyOnRails
[20:03:15] smathy: P4Titan, it's a very handy feature, especially for join tables (as this seems to be).
[20:03:34] P4Titan: ugh, idk what's a join table
[20:04:03] smathy: P4Titan, heh, no, it's just a loose term to describe a table that has foreign keys pointing to at least two other tables.
[20:04:20] smathy: P4Titan, it sits between two other tables, kind of "joining" them, hence the name
[20:04:51] P4Titan: This isn't a join table per se
[20:05:17] arup_r: ok.. Answer.joins(:question).select("SUM(answers.id)") is no error. But Answer.joins(:question).select("SUM(answers.id)").first throws the error.. so magic is in .`first` :)
[20:05:20] smathy: P4Titan, it's ok :)
[20:05:34] smathy: arup_r, not what I asked.
[20:09:41] arup_r: I am looking there
[20:10:36] chagel: has joined #RubyOnRails
[20:11:11] PedramT: has joined #RubyOnRails
[20:11:29] arup_r: it is telling *"answers.id" must appear in the GROUP BY clause or be used in an aggregate functionn*
[20:13:03] smathy: arup_r, still not answering my question.
[20:13:36] smathy: ...in fact my question specifically stated that the error mentions answers.id - so repeating that the error is telling you something about answers.id is moronic.
[20:13:49] arup_r: smathy: ORDER BY "answers"."id"
[20:13:58] smathy: arup_r, RIGHT!
[20:14:04] smathy: arup_r, so, why would that be in your SQL?
[20:14:25] arup_r: .. that `.first` might be adding it..
[20:14:26] smathy: arup_r, you kind of guessed the answer to this above.
[20:14:33] RegulationD: has joined #RubyOnRails
[20:14:39] smathy: arup_r, maybe, why would .first add it?
[20:15:13] arup_r: because Rails by default orders by primary key..
[20:15:44] smathy: arup_r, what? All queries add an ORDER BY?
[20:16:03] arup_r: let me do some reading and come back
[20:16:34] Fubarius: has joined #RubyOnRails
[20:17:59] arup_r: well.. when I am saying .first(1), rails needs something based on it can select the first record for me.. which is by default the id of the relation. smathy am I able to explain it correctly?
[20:18:57] arup_r: this is not a guess.. this is what it is doing.. may be I am not able to explain it correctly.. But I got it now. :)
[20:22:25] brentw: has joined #RubyOnRails
[20:23:28] Limix: has joined #RubyOnRails
[20:24:11] EXCHGR: has joined #RubyOnRails
[20:25:54] Limix: has joined #RubyOnRails
[20:26:54] _Sypheren: has joined #RubyOnRails
[20:31:35] PedramT: has joined #RubyOnRails
[20:32:13] theblang: has joined #RubyOnRails
[20:33:15] P4Titan: Hello all. I have a unique validation in a Model as well as in its column. The validation throws one type of error while the database another. Is there a uniform/good way to catch both?
[20:33:20] P4Titan: and handle them the same way
[20:37:11] rubyonrailed: has joined #RubyOnRails
[20:40:44] P4Titan: Should I use strict validations
[20:40:58] P4Titan: and rescue both possible types of exceptions
[20:41:14] denaras: has joined #RubyOnRails
[20:42:25] Spami: has joined #RubyOnRails
[20:44:18] brentw: has joined #RubyOnRails
[20:44:19] smathy: arup_r, precisely, yes.
[20:44:27] smathy: arup_r, nice work.
[20:45:13] arup_r: smathy: you are may favorite .. :)
[20:45:58] ramfjord: has joined #RubyOnRails
[20:46:11] SeanLazer: has joined #RubyOnRails
[20:46:24] Fubarius: has joined #RubyOnRails
[20:46:28] netzfisch: has joined #RubyOnRails
[20:47:30] baweaver: has joined #RubyOnRails
[20:55:23] smathy: P4Titan, because the DB constraint/exception is just protecting you against a very rare, very unlikely race condition, then you can usually just let it 500.
[20:56:08] futilegames: has joined #RubyOnRails
[20:56:18] futilegames: has left #RubyOnRails: ()
[20:56:20] smathy: P4Titan, if you really want to then put a rescue_from in your ApplicationController and just redirect_to :back, alert: "Temporary internal problem, please try again"
[20:56:23] smathy: ...or something like that.
[20:57:06] n1lo: has joined #RubyOnRails
[20:59:42] chridal: has joined #RubyOnRails
[20:59:43] georgedrummond: has joined #RubyOnRails
[21:02:40] someish: has joined #RubyOnRails
[21:04:48] Aherin: has joined #RubyOnRails
[21:06:15] jto: has joined #RubyOnRails
[21:06:35] pawnbox: has joined #RubyOnRails
[21:09:56] edwinvdgraaf: has joined #RubyOnRails
[21:09:59] delgiudices: has joined #RubyOnRails
[21:10:27] chouhoulis: has joined #RubyOnRails
[21:10:37] stardiviner: has joined #RubyOnRails
[21:15:10] mdw: has joined #RubyOnRails
[21:16:08] mdw: has joined #RubyOnRails
[21:19:24] The_Phoenix: has joined #RubyOnRails
[21:20:27] marr: has joined #RubyOnRails
[21:24:09] smizell: has joined #RubyOnRails
[21:25:48] Trynemjoel: has joined #RubyOnRails
[21:31:33] scyth: has joined #RubyOnRails
[21:33:10] stevenxl_: has joined #RubyOnRails
[21:33:48] StevenXL: has joined #RubyOnRails
[21:33:58] StevenXL: Hello everyone.
[21:34:19] StevenXL: I have a quick question. Are ActiveRecord callbacks an example of the Observer pattern?
[21:34:50] StevenXL: (I know that there is an ActiveRecord::Observer class, but I'm interested in the callbacks themselves).
[21:34:59] robbyoconnor: has joined #RubyOnRails
[21:36:22] pwnd_nsfw: has joined #RubyOnRails
[21:36:41] n008f4g_: has joined #RubyOnRails
[21:37:04] Cohedrin_: has joined #RubyOnRails
[21:39:37] robbyoconnor: has joined #RubyOnRails
[21:41:17] baweaver: has joined #RubyOnRails
[21:47:03] smathy: stevenxl, are you asking if it's implemented using observers? It can be, by providing an instance of an object that is called out to. The inline or own-method version isn't really using an observer pattern. The whole sequence of the saves and callback calls are a kind of Strategy pattern. Not sure what you're hunting for here, is this an assignment question or something?
[21:48:33] georgedrummond: has joined #RubyOnRails
[21:49:46] StevenXL: smathy: thanks that's exactly the answer I was looking for.
[21:50:40] StevenXL: smathy: It's not an assignment question. I've decided that to become a better developer, I need to do more than simply learn how to use a framework's API.
[21:50:56] StevenXL: The first thing I'm tackling is learnign more about Software Design Patterns.
[21:51:08] StevenXL: But thank you that helped a lot.
[21:51:14] smathy: I assume you're reading the gang of four?
[21:51:27] StevenXL: Dang it I can't get this right: :-)
[21:52:17] StevenXL: No. I'm actually going to be using Addy Osmani's Learning JavaScript Design Patterns as well as Design Patterns in Ruby.
[21:52:22] smathy_test: has joined #RubyOnRails
[21:52:35] StevenXL: I like the idea of implementing in two different languages to solidfy the insights.
[21:53:03] smathy: +q smathy_test!*@*
[21:53:03] Radar: GOOD MORNING
[21:54:03] smathy: -q smathy_test!*@*
[21:56:02] pawnbox: has joined #RubyOnRails
[21:56:03] smathy_test_: has joined #RubyOnRails
[21:56:07] ChanServ: +q *!*@gateway/web/freenode/ip.184.167.33.122
[21:56:53] ChanServ: -qq $~a *!*@gateway/web/freenode/ip.184.167.33.122
[21:57:41] smathy: stevenxl, good approach.
[21:59:19] Limix: has joined #RubyOnRails
[21:59:34] owenjones: has joined #RubyOnRails
[22:04:51] srinidhi: has joined #RubyOnRails
[22:08:17] Cohedrin: has joined #RubyOnRails
[22:08:40] sandstrom: has joined #RubyOnRails
[22:12:58] _Tariq: has joined #RubyOnRails
[22:17:04] GodFather: has joined #RubyOnRails
[22:17:27] rubyonrailed: has joined #RubyOnRails
[22:19:56] jottr: has joined #RubyOnRails
[22:20:38] jetpack_joe: has joined #RubyOnRails
[22:22:11] yfeldblum: has joined #RubyOnRails
[22:25:07] halfamind: has joined #RubyOnRails
[22:25:57] pawnbox: has joined #RubyOnRails
[22:25:57] n008f4g_: has joined #RubyOnRails
[22:36:12] rakm: has joined #RubyOnRails
[22:51:00] d0nn1e: has joined #RubyOnRails
[22:51:15] aloneintheworld: has joined #RubyOnRails
[22:53:17] dvinciguerra: has joined #RubyOnRails
[22:55:22] dvinciguerra_: has joined #RubyOnRails
[22:55:59] pawnbox: has joined #RubyOnRails
[23:01:39] scope2229: has joined #RubyOnRails
[23:09:31] owenjones: has joined #RubyOnRails
[23:16:57] edwinvdgraaf: has joined #RubyOnRails
[23:19:13] Inside: has joined #RubyOnRails
[23:19:13] Inside: has joined #RubyOnRails
[23:19:40] halfamind: has joined #RubyOnRails
[23:22:01] stardiviner: has joined #RubyOnRails
[23:22:10] Ropeney: has joined #RubyOnRails
[23:24:10] Paradox: has joined #RubyOnRails
[23:25:19] halfamind1: has joined #RubyOnRails
[23:29:59] User458764: has joined #RubyOnRails
[23:33:48] halfamind: has joined #RubyOnRails
[23:34:34] htmldrum: has joined #RubyOnRails
[23:37:22] pawnbox: has joined #RubyOnRails
[23:40:54] Thai_: has joined #RubyOnRails
[23:40:56] halfamind: has joined #RubyOnRails
[23:47:05] _Sypheren_: has joined #RubyOnRails
[23:49:20] diegoaguilar: has joined #RubyOnRails
[23:52:16] th0m: has joined #RubyOnRails
[23:53:52] sleungcy: has joined #RubyOnRails
[23:57:45] dalbusch1t: has joined #RubyOnRails
[23:57:58] uglybandersnatch: has joined #RubyOnRails