hi!
as the subject says, how can i check if a value is already in a
table??
ty!!
hi!
as the subject says, how can i check if a value is already in a
table??
ty!!
if (Modelname.find_by_columnname(…value_to_check…))
else
end
vincent vega wrote:
hi!
as the subject says,
how can i check if a value is already in a
table??ty!!
This may come in handy:
validate_uniqueness_of :column_name
Max
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs