Skip to content

Instantly share code, notes, and snippets.

@rust
Created February 23, 2010 20:55
Show Gist options
  • Save rust/312693 to your computer and use it in GitHub Desktop.
Save rust/312693 to your computer and use it in GitHub Desktop.
<% if var -%>
ok
<% else -%>
ng
<% end -%>
end
<%= render :partial => "var", :locals => {:var => @var} -%>
of
class TopController < ApplicationController
def index
@var = nil
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment