Validation of form whoch is a image

I don not let upload the file which are not images
I need only jpg gif and png
how to do that
I am confuse =>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs