Skip to content

Instantly share code, notes, and snippets.

@ExByt3s
Created January 21, 2015 11:40
Show Gist options
  • Save ExByt3s/dc03759800c0d0ab0d01 to your computer and use it in GitHub Desktop.
Save ExByt3s/dc03759800c0d0ab0d01 to your computer and use it in GitHub Desktop.
format
utf8"=>"✓", "authenticity_token"=>"FLAnBUVKZjPmCvCeeTV0wXnWDS2XvXjVFwUeSfdX3L+qdzVewEK6s3rBBtr2LXoSfI8QTUGqr7Z3J0QbAaqQYw==", "audition"=>{"name"=>"sassssssssssssssssssssssssssssssssssssssssssssssssssssss", "description"=>"sdfdsfddddddddddddddddddddddddddddd"}, "Retail"=>{"price"=>"66", "unit"=>"6"}, "Imagen"=>{"uploads"=>#<ActionDispatch::Http::UploadedFile:0x007f5c9e31f798 @tempfile=#<Tempfile:/tmp/RackMultipart20150121-11876-zokizh.css>, @original_filename="iw_sprite.css", @content_type="text/css", @headers="Content-Disposition: form-data; name=\"Imagen[uploads]\"; filename=\"iw_sprite.css\"\r\nContent-Type: text/css\r\n">}, "commit"=>"sell it", "controller"=>"auditions", "action"=>"create"}
when i add that validation
validates_format_of :uploads, :with => /\A.(jpg) \Z/i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment