Skip to content

Instantly share code, notes, and snippets.

@bishopandco
Created October 5, 2010 09:53
Show Gist options
  • Save bishopandco/611303 to your computer and use it in GitHub Desktop.
Save bishopandco/611303 to your computer and use it in GitHub Desktop.
# @menu.special_action ="contact"
def show
@menu = Menu.find(params[:id])
@resource = @menu.resource
unless @menu.special_action.nil?
render @menu.special_action.to_sym
else
render 'show'
end
end
def contact
@contact = Contact.new()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment