I second this!
On 05/06/2008, at 12:12 AM, Magnus Holm wrote:
Great! If we clean up the documentation, are we then ready for 2.0?
The only thing I want now is the catch(:halt) in #service, so we can
do stuff
like this:
module Example
module Helpers
def require_login!
unless @state.user_id
redirect Login
throw :halt
end
end
end
module Controllers
class List < R '/list'
def get
require_login!
# do stuff
end
end
end
end
(It's already in my repo, just pull from judofyr/master)
On Tue, Jun 3, 2008 at 10:11 AM, _why <[EMAIL PROTECTED]>
wrote:
I was having some issue getting the class variables in
Camping::Session to work with some old apps, so I've changed
@@state_secret to a method.
module Blog
include Camping::Session
def state_secret; "kxxxx" end
end
Also, merged some of zimbatm's patches. And trying to revive the
Junebug wiki <http://github.com/why/junebug> since it's still my
favorite one.
Oh and Passenger is working with Camping 2.0. You just use
`run Blog` in your config.ru (following everything else in the
latest Passenger docs.) Best to wait until they release 1.1.0 gems.
_why
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list
--
Magnus Holm
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list