- Use helper select or select_tag with JSON on Rails 3.2.1
- [{"id":"197630", "name":"JOHN PERS"} , {"id":"6", "name":"JOSHUA JOSH"}]
- @parsed_json = ActiveSupport::JSON.decode(@listJson)
- <% collection = options_for_select(ActiveSupport::JSON.decode(@list_json).map { |b| [b["name"], b["id"]] }) %>
- <%= f.select :name, collection %>