bundle
rails db:setup
rails s
- Visit
localhost:3000
- Click "New post"
- Click on "Status"
- Select an arbitrary option
- Click "Create Post"
- On show view label will be the product ID and that's ok
- Click "Edit this post"
- Stauts will have the product' ID instead the TITLE
- Click status then click outside of the select (to close it without selecting another value)
- Notice than step 9. made the status to refresh with the product's TITLE
When using the combobox
form helper there should be possible to pass the value
as a hash or any other object type that respond to value
and label
.
Passing that as value the combobox should have the needed information to render the current option correctly.