Skip to content

Instantly share code, notes, and snippets.

@sam
Created May 8, 2012 15:21
Show Gist options
  • Save sam/2636232 to your computer and use it in GitHub Desktop.
Save sam/2636232 to your computer and use it in GitHub Desktop.
Components
<td>
<FormattedDate
id="search_item_expiration_date[]"
format="admin-long"
value=#rsrs.created_at />
</td>
doc.search_item_expiration_date.map do |item|
item.value
end
@sam
Copy link
Author

sam commented May 8, 2012

Note, the element name is a Class name under the UI namespace.

Values are bound with the # symbol. The value attribute name in this case is just an accessor on the UI class, the name itself isn't significant, it could as easily be date. Any attribute could be bound to data in this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment