Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## From divoxx ## For better authorization class FooController < ApplicationController def edit redirect_to access_denied_path and return unless level = user.has_right(controller_name, action_name) case level when :all @foos = Foo.find(:all) when :own @foos = user.foos end end end
This paste will be private.
From the Design Piracy series on my blog: