Displaying 1 result from an estimated 1 matches for "d772cc11".
2005 Dec 30
2
How to abort program flow after a redirect?
I''m developing an authorization plug-in which adds a permit keyword, so you
can do things like:
class FooController < ApplicationController
permit "member"
def edit
permit "owner of :document", :document => Document.find(params[:id])
# stuff to edit..
end
end
I''ve got it mostly working, but if the permit in #edit fails, a redirection