Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Loccasions 7
class OccasionsController < InheritedResources::Base
belongs_to :event
actions :all, :except => [:show, :index]
# Need to override this from inherited_resources
# to scope the association chain to the current_user
def begin_of_association_chain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment