is there a rails way?
or should i just a do a before_save :check_limit, and just tally up the
amount of photos before saving? so maybe do something like
if user.photos.count == 4, max limit set. etc…
thanks
is there a rails way?
or should i just a do a before_save :check_limit, and just tally up the
amount of photos before saving? so maybe do something like
if user.photos.count == 4, max limit set. etc…
thanks
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