Rails <%= f.input :some_field %> 中如何获取其它字段的值

keating · February 12, 2013 · Last by keating replied at February 12, 2013 · 2735 hits

需求这样的,

<%= f.hidden_field :name %>
<%= f.input :file, :label => "" %>

希望file字段labelname字段保持一致

#1 楼 @ashchan 👍 给力! 我都去写 JS 了...attr_accessor :object_name, :object, :options 粗略地看了源码,真心没看出来😢

You need to Sign in before reply, if you don't have an account, please Sign up first.