Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select box -> #{object.name} (#{object.description}) #1

Open
svasva opened this issue Sep 22, 2011 · 1 comment
Open

select box -> #{object.name} (#{object.description}) #1

svasva opened this issue Sep 22, 2011 · 1 comment

Comments

@svasva
Copy link
Owner

svasva commented Sep 22, 2011

выводить .description при отрисовке select, например: при редактировании Items, в списке должно быть не drink, drink, drink, а drink (energy), drink (drink), drink (cocktail)

@ghost ghost assigned ogerman Sep 22, 2011
@svasva
Copy link
Owner Author

svasva commented Sep 25, 2011

для Items сделал:
f.input :item_type,
:collection => ItemType.all.map {|i| ["#{i.name} (#{i.description})", i.id]}
сделай в остальных местах (actions, etc)

@svasva svasva closed this as completed Sep 25, 2011
@svasva svasva reopened this Sep 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants