Oh, boy, this is great. Anyone here want to get paid for doing some camping work? Because O''Reilly is interested in doing a 20-30 page PDF on Camping. Please do it, guys. I won''t blab about how much it pays, but if it took you a couple days, you''d get back a hacka lot of moaney. Anyway, post your camping paid gigs, people. If we could have one guy in the world getting paid to do full-time Camping work, I promise I will laugh every morning in the shower from now on. Because ridiculous yeah. _why
here''s the rundown for camping 1.4: * lib/camping/webrick.rb: checked in. * lib/camping/mongrel.rb: checked in. * lib/camping/session.rb: done, soon to be checked in. And the main change to lib/camping.rb is that Controllers::Base.service is now split into Controllers::Base.initialize and Controllers::Base.service. So you can override these methods to get before_filter/after_filter stuff happening. See, that''s how sessioning works: class Hoodwinkd::Controllers::Base def initialize(*a) super(*a) if @cookies.hoodwinkd_sid @session = Hoodwinkd::Models::Session.find_by_hashid @cookies.hoodwinkd_sid, :include => :user end unless @session @session = Hoodwinkd::Models::Session.generate(@cookies) end @user = @session.user rescue nil @user ||= Hoodwinkd::Models::User.new end def service(*a) s = super(*a) @session.save if @session s end end Any requests? _why