On 4/9/07, Stephen Waits <[EMAIL PROTECTED]> wrote:
Meant to add that, to clean it up in your controller, you may add a
method to take care of this in your Read model.

Or in your user model. Something like @user.read(@book) might be
doable like so...

class User < AR::Base
 # ...
 def read(book)
   reads.create(:user => self, :book => book)
 end
end

--
Nick Zadrozny • http://missionsbridge.org/people/nick
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to