search for: wibble_id

Displaying 1 result from an estimated 1 matches for "wibble_id".

2006 Jul 16
6
using collection_select
...that contains a Wibble class User < ActiveRecord::Base has_one :wibble end in my view i have <%= collection_select :user, :wibble, Wibble.find(:all), :id, :name %> when i post, i get an error like "Wibble expected, got String" how/where am I supposed to convert this posted wibble_id into a Wibble, or am I using collection_select incorrectly? i''ve seen some suggestions to use :wibble_id in the select, e.g. <%= collection_select :user, :wibble_id, Wibble.find(:all), :id, :name %> but if i do this i get an "undefined method wibble_id" error thanks, Jef...