我打算使用基于内容类型动态的Paperclip gem来使用单表继承。 class Document < ActiveRecord::Base
has_attached_file :file, photo_options #if content type is an image
has_attached_file :file, pdf_options #if content t
我开始Rails服务器 $ bundle exec rails s -p 3001
=> Booting WEBrick
=> Rails 4.2.5 application starting in development on http://localhost:3001
=> Run `rails server -h` for more startup options
=> Ctrl-C
我有以下条件: if "FIX_STRING 0,0,DYNAMIC_STRING" == "FIX_STRING #{integer_from_0_to_5},#{integer_from_0_to_5},#{DYNAMIC_STRING}"
true
else
false
end
如何对其进行的动态也是这样吗? if "FIX_STRING 0,0,DYNAMIC_
不知何故,编辑后我的更新方法传递ID为“秀” 这里看看参数传递时,我的“更新” \ Started PATCH "/owners/show.3328" for 127.0.0.1 at 2016-11-08 12:28:29 +0200
Processing by OwnersController#update as
Parameters: {"utf8"=>"✓", "owner"=