ruby on rails - Can't upload photo using paper clip in RoR -


I use this code to upload photos, I think it has not successfully uploaded the photo, But other content can be updated.

  & lt;% semantic_remote_form_for (@product ,: html = & gt; {: multipart = & gt; true}) do F | & Gt%; & Lt;% f.inputs & gt; & Lt;% = f.input: Title ,: Label = & gt; "Name"%> & Lt;% = f.input: category ,: include_blank = & gt; Incorrect ,: label = & gt; "Category"%> & Lt;% = f.input: value ,: label = & gt; "Value"%> & Lt;% = f.input: Photo ,: Label = & gt; "Photos"%> & Lt;% end% & gt; & Lt;% = f.buttons% & gt; & Lt;% end% & gt;  

Code from the server log:

WARNING WARNING: Disabling session for one controller is deprecated. Sessions are now lazy, so if you can not reach them, then consider them. You can still modify the session cookie with request.session_options .. (referred to /onlinestore/app/controllers/application_controller.rb:6)

Processing Product Controller # update (the -23 22:03:54) in :: 1 2010-01 for [PUT] parameter: { "Committee" => "product" Save, "Pramanikta_tokn" => "vOvxOPYYE1wRGDYTEH5ciHrNJXUpGTJku3etIpCmf1c =", "id" => "33" , "_" => "" = "" 874 "," title "=>" other product "," category_id "=>" 142 "}," _ "=>" "}

I wonder if it works at all Land, because JavaScript should not be able to upload files by Ajeaks. What was new list came from the fact that you have a Remote for this product? Since it is a gem that will help Simtik form building, should not be able to upload a file in that fashion.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -