Created
January 21, 2015 11:40
-
-
Save ExByt3s/dc03759800c0d0ab0d01 to your computer and use it in GitHub Desktop.
format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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