This project is archived and is in readonly mode.

#2924 ✓wontfix
John

validates_uniqueness , accepting white space

Reported by John | July 20th, 2009 @ 09:47 AM | in 3.x

Hy
I Know this is not a bug , but i face this issue's , like when i add validates_uniqueness :user , so it means it will not accepted blank user name by default allow_blank is set false ,same way there should be parameter for striping ...

for this i added a parameter allow_strip => true , by default it will false ,
i write a patch for this , may i posted here.

Let me know your opinion ,

Thanks
John

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages