Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Started POST "/admin/v1/testimonials" for ::1 at 2019-07-04 13:02:12 +0300
- Processing by Admin::TestimonialsController#create as JSON
- Parameters: {"name"=>"Иван", "patronymic"=>"Иванович", "surname"=>"Иванов", "userpic"=>"", "company"=>"ООО", "object_photo_1"=>#<ActionDispatch::Http::UploadedFile:0x000055c597b48040 @tempfile=#<Tempfile:/tmp/RackMultipart20190704-32049-1qeitch.jpg>, @original_filename="filename.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"object_photo_1\"; filename=\"Scan_20160802_153425.jpg\"\r\nContent-Type: image/jpeg\r\n">, "object_photo_2"=>"null", "object_photo_3"=>"null", "image_name"=>"filename.jpg", "video"=>"", "text"=>"Отзыв"}
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
- ↳ /home/username/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
- JwtBlacklist Exists (0.1ms) SELECT 1 AS one FROM "jwt_blacklists" WHERE "jwt_blacklists"."jti" = $1 LIMIT $2 [["jti", "dcceb0ba-f7f5-4270-a816-cb14772eb361"], ["LIMIT", 1]]
- ↳ /home/username/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
- Unpermitted parameters: :image_name, :format
- Completed 500 Internal Server Error in 27ms (ActiveRecord: 4.8ms)
- ActiveSupport::MessageVerifier::InvalidSignature (ActiveSupport::MessageVerifier::InvalidSignature):
- app/controllers/admin/testimonials_controller.rb:18:in `create'
- Содержимое переменной params после вызова метода t_params:
- <ActionController::Parameters {"testimonial"=><ActionController::Parameters {"name"=>"Иван", "patronymic"=>"Иванович", "surname"=>"Иванов", "userpic"=>"", "company"=>"ООО", "object_photo_1"=>#<ActionDispatch::Http::UploadedFile:0x000055861ec0dfb0 @tempfile=#<Tempfile:/tmp/RackMultipart20190704-17814-1cayh7x.jpg>, @original_filename="Scan_20160802_153425.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"object_photo_1\"; filename=\"filename.jpg\"\r\nContent-Type: image/jpeg\r\n">, "object_photo_2"=>"null", "object_photo_3"=>"null", "video"=>"", "text"=>"Отзыв"} permitted: true>} permitted: false>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement