Skip to content

Instantly share code, notes, and snippets.

View ADStrovers's full-sized avatar

Andrew Strovers ADStrovers

View GitHub Profile
### Keybase proof
I hereby claim:
* I am adstrovers on github.
* I am astroverse (https://keybase.io/astroverse) on keybase.
* I have a public key ASC7Cdr9vTtmj5idThk6G6ilCy4_-azjnYcHuB0n6XzQfwo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am adstrovers on github.
  • I am astroverse (https://keybase.io/astroverse) on keybase.
  • I have a public key ASC7Cdr9vTtmj5idThk6G6ilCy4_-azjnYcHuB0n6XzQfwo

To claim this, I am signing this object:

Strange case of ERB choking on "case" statements. First block works, second does not.
EX:
<form action="/new">
<% @req.each do |x| %>
<p><label for="<%= x %>"><%= x.capitalize %>:</label>
<% case x %>
<% when "name", "description" %>
<input type="text" name="<%= x %>"></p>