working through “four days on rails”
http://www.rails4days.pwp.blueyonder.co.uk/Rails4Days.pdf ), day three
me building a select list like so
this smells a little funny to me, as I have to make sure to name the
in the rails convention myself, whereas using “select” or “select_tag”
will do it for me.
so I tried
<%= select “item”, “category_id”, (options_from_collection_for_select
@categories, “id”, “category”, @item.category.id) %>
but since options_from_collection_for_select escapes html, I get a
list of options. is there a better existing way to build a select using
collection, or do I need to roll my own?
CONFIDENTIAL NOTICE: This email including any attachments, contains
confidential information belonging to the sender. It may also be
privileged or otherwise protected by work product immunity or other
legal rules. This information is intended only for the use of the
individual or entity named above. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or the taking of any action in reliance on the contents
of this emailed information is strictly prohibited. If you have
received this email in error, please immediately notify us by
reply email of the error and then delete this email immediately.