28 Dec '14, 1pm

slimのli: a 思い出せなくて困ってた inline tags

doctype html html head title Slim Examples meta name="keywords" content="template language" meta name="author" content=author link rel="icon" type="image/png" href=file_path("favicon.png") javascript: alert('Slim supports embedded javascript!') body h1 Markup examples #content p This example shows you how a basic Slim file looks. == yield - if items.any? table#items - for item in items tr td.name = item.name td.price = item.price - else p No items found. Please add some inventory. Thank you! div id="footer" == render 'footer' | Copyright © #{@year} #{@author}

Full article: http://www.rubydoc.info/gems/slim/frames#Inline_tags



rubydoc.info 28 Dec '14, 2pm

Override this in your Uploader to change the filename. Be careful using record ids as filenames. If the filename is stored...