Skip to content

Instantly share code, notes, and snippets.

@superscott
Created November 18, 2013 22:41
Show Gist options
  • Save superscott/7536674 to your computer and use it in GitHub Desktop.
Save superscott/7536674 to your computer and use it in GitHub Desktop.
content_tags!!
<div class="form-group">
<label class="col-lg-3 control-label">Business Information</label>
<div class="col-lg-9">
<p class="form-control-static">
<%= finalize_signup_display_complete(false) %>
</p>
</div>
</div>
def finalize_signup_display_complete(completed)
if completed
content_tag('span', 'COMPLETED', :class => 'label label-success')
else
content_tag('span', 'MISSING INFORMATION', :class => 'label label-danger')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment