Skip to content

Instantly share code, notes, and snippets.

@aishek
Created August 17, 2014 08:30
Show Gist options
  • Save aishek/8b3b619178c0b653c6e1 to your computer and use it in GitHub Desktop.
Save aishek/8b3b619178c0b653c6e1 to your computer and use it in GitHub Desktop.
can? example
# app/views/layouts/application.html.slim
doctype html
html
head
title Hello, world!
body
= render 'cart' if can? :buy
= yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment