search for: library_control

Displaying 2 results from an estimated 2 matches for "library_control".

2006 May 19
2
update_attributes
.../web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/transactions.rb:126:in `save'' /web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1439:in `update_attributes'' #{RAILS_ROOT}/app/controllers/admin/library_controller.rb:39:in `update'' -- Posted via http://www.ruby-forum.com/.
2006 May 22
2
good practice or waste of time?
...know if it''s worthwhile or if the extra typing isn''t worth it. I have 3 models that are related to each other. class User < AR:Base has_one :library end class Library < AR:Base belongs_to :user has_many :items end class Item < AR:Base belongs_to :library end In my library_controller, most of the actions should only be available to a logged in user. Using the acts_as_authenticated plugin I have setup the appropriate pieces and use a before_filter to require the session to be that of a logged in user. So far, so good. Here''s where things (finally) get interest...