Without getting into all the javascript for a textfield, I'd like the following validation:
validates_length_of :brief_description,
:maximum=>250,
:message => "Brief is #{self.brief_description.length} long (max is 250)"
But the self.brief_description reference in the message doesn't work. What's the best way to do this?
I tried #{params[:brief_description].length} as well, but the model doesn't know anything about params...