Displaying 1 result from an estimated 1 matches for "tagmethod".
Did you mean:
amethod
2006 Mar 16
0
validating presence of a tag
...e] = "Thank you. Your question has been
added."
redirect_to edit_url(@question.id)
end
end
end
I tried nesting a transaction for both question and tag, but that didn''t
work. I tried various ways of passing the tag names into the
@question.tagmethod.
My validations include:
Class Question < ActiveRecord Base
validates_presence_of :question_text, :message=>"must not be blank."
validates_length_of :question_text, :maximum=>150, :message=>"must be less
than 150 characters."
end
Class Tag < ActiveRecord Base...