app/controllers/photos_controller.rb
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def photo_params
      params.require(:photo).permit!
    end
def photo_params params . require ( :photo ) . permit! end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
# params.require(:photo).permit(:url, :location, :tag, :exif, :name, #                               :longitude, :latitude, :taken_at, :author, #                               :author_url)