Ruby on rails 4 Rails 4,Carrierwave,jcrop,移动到POST,不更新
希望有人能在这里帮助我-我似乎不明白这一点 我正在使用Carrierwave上传照片,并使用jcrop进行裁剪。在我的桌面上,它工作得非常好。我上传/创建照片,然后用户将照片裁剪/更新为首选大小 奇怪的是,当我在移动设备上时(只是移动设备,而不是台式机/平板电脑),更新表单_将调用POST,而不是更新。不过,在桌面上,一切都很完美。任何人都可以提供任何帮助,说明为什么这种行为只在手机上发生 我的代码: show.html.erbRuby on rails 4 Rails 4,Carrierwave,jcrop,移动到POST,不更新,ruby-on-rails-4,mobile,carrierwave,form-for,jcrop,Ruby On Rails 4,Mobile,Carrierwave,Form For,Jcrop,希望有人能在这里帮助我-我似乎不明白这一点 我正在使用Carrierwave上传照片,并使用jcrop进行裁剪。在我的桌面上,它工作得非常好。我上传/创建照片,然后用户将照片裁剪/更新为首选大小 奇怪的是,当我在移动设备上时(只是移动设备,而不是台式机/平板电脑),更新表单_将调用POST,而不是更新。不过,在桌面上,一切都很完美。任何人都可以提供任何帮助,说明为什么这种行为只在手机上发生 我的代码: show.html.erb <div class="container large-ma
<div class="container large-margin-left large-margin-right">
<div class="jcrop"><%= image_tag @photo.photo.large, :id=>'cropbox', :class=>'img-responsive' %></div>
<br>
<%= form_for [@user, @photo] do |f| %>
<% for attribute in [:crop_x, :crop_y, :crop_h, :crop_w] %>
<%= f.text_field attribute, :id=> attribute %>
<% end %>
<%= f.submit "Crop", :class=>'large-font pink-bg white caps sm-space', data: { disable_with: "Cropping..." } %>
<% end %>
</div>
'cropbox',:class=>'img-responsive'>
属性%>
“大字体粉色背景白色大写sm空格”,数据:{disable_with:“裁剪…”}%>
哇-希望这能帮助其他人。但是,事实证明Android在模型验证方面做得并不好。(我对照片的大小和图像类型进行了验证),这导致jcrop失败