search for: alertcontrol

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

2006 May 26
4
What association do I want here, has_ or belongs_to?
...emplate, (AlertTemplate.find :all), :id, :name) to produce a dropdown for choosing which template you want to associate with the new Alert object. However in my controller''s create method when I do an Alert.new(params[:alert]) I get an error : ActiveRecord::AssociationTypeMismatch in AlertController#create AlertTemplate expected, got String All the stack trace tells me is that the error happens on the Alert.new line. But that''s where I''m lost. Which code expected an AlertTemplate? What String did it get? Interestingly I tried an experiment in irb. I created an Aler...