Displaying 1 result from an estimated 1 matches for "orig_recipe_typ".
Did you mean:
orig_recipe_type
2007 Feb 26
2
undefined method ... from `alias_method'
..../script/console
Loading development environment.
>> r = Recipe.find :first
NameError: undefined method `recipe_type='' for class `Recipe''
from ./script/../config/../config/../app/models/recipe.rb:
101:in `alias_method''
In recipes_controller:
alias_method :orig_recipe_type=, :recipe_type=
def recipe_type=(t)
if t.nil?
self.orig_recipe_type = guess_recipe_type
self.recipe_type_is_guess = true
else
self.orig_recipe_type = t
self.recipe_type_is_guess = false
end
end
recipe_type is a column in my recipes table. Does this happen because
AR uses me...