ERB and the case statement · GitHub

Skip to content '"` </textarea></xmp> All gists Back to GitHub Sign in Sign up Instantly share code, notes, and snippets. davidphasson / show.html.erb Created Apr 8, 2009 Star 20 Fork 1 Code Revisions 2 Stars 20 Forks 1 Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address. Learn more about clone URLs Download ZIP ERB and the case statement Raw show.html.erb # Doesn't work < p > <% case @request .author_hosted %> <% when " yes " %> The school < b >has</ b > hosted an author before. <% when " no " %> The school < b >has not</ b > hosted an autho...

Linked on 2020-01-13 14:30:06 | Similar Links