search for: validates_xx_of

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

Did you mean: validates_x_of
2006 Jun 04
5
Manipulating form inputs?
...ted.'' redirect_to :action => ''list'' else render :action => ''new'' end end This is no problem. I would, however, like to do some manual formatting of data entered. Yes I have some broad checks in the radicals.rb model using validates_xx_of but I would like to do some specific alterations. For example, I want to remove whitespaces from the ''character'' field. So I appended create() with: def create @radical = Radical.new(params[:radical]) @radical.character.lstrip! @radical.character.rstrip! if @r...