<    March 2010    >
Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
00:45 pietia joined
01:05 pietia joined
01:55 botanicus joined
02:54 jeremyevans joined
03:10 jeremyevans joined
05:30 JonathanT joined
05:37 <injekt> How would I go about doing something like.. Posts.filter(:user.username => 'something') where user would be an associated model
05:40 <manveru> injekt: User[:username].posts
05:40 <manveru> err
05:40 <manveru> injekt: User[username: 'something'].posts
05:41 <injekt> Oh duh.. what the hell was I thinking
05:41 <injekt> Thanks, manveru
05:54 merboutpost joined
06:11 <merboutpost> Hi if I want to restrict setting some of the member varibales ( calling the setter) I should use set_restricted_columns?
06:32 pietia_ joined
06:51 pietia joined
07:49 j_dana joined
07:52 s_dana joined
07:59 <jeremyevans> merboutpost: I recommend using Model#set_only or Model#set_except on a per call basis, but set_restricted_columns should work for a global setting
08:00 <merboutpost> jeremyevans: thanks
08:25 Swimming_Bird joined
08:46 josh0x0 joined
08:47 <josh0x0> ok i have the method `def before_save; self.last_modified = Time.now; end` and i clearly have a last_modified column in my schema. but i'm getting "no such column". there must be something obvious that i'm missing
09:10 <josh0x0> nvm, the obvious soln was not to override the [], []= methods
10:59 botanicus joined
11:21 j_dana joined
11:22 s_dana joined
12:22 brianmario joined
12:35 pedrobelo joined
12:54 JonathanT joined
12:55 s_dana joined
13:04 thomaz joined
13:48 merboutpost joined
14:20 botanicus joined
14:43 zoo-zed joined
14:46 greg8si joined
17:40 thomaz joined
18:34 greg8si joined
18:50 pedrobelo joined
19:15 pedrobelo joined
19:22 pedrobelo joined
19:29 brianmario joined
19:47 pedrobelo joined
19:57 pedrobelo joined
21:32 greg8si joined
22:01 greg8si joined