我有简单的html.erb形式像下面 <table>
<%= text_field_tag :tesintg %>
<th><%= button_to 'Apply now', apply_product_index_path(:value => "Want Value of input in text field here") , method: :post %></th>
我喜欢使用单个erb模板创建不同的文件。这是我的erb。 # managed by puppet
# changes will be overwritten
#
<% if (@tanuki_ssl != nil) -%>
# config include
# ssl section for trust and key stores
#
<% unless @tanuki_ssl['
我试图在每个产品旁边的索引视图页中打印出该产品的最高出价量。所以结局应该是这样的索引视图: 香蕉(香蕉的最高金额) 表(用于表最高金额) 等 我知道如何打印出最大的总的的所有产品,但不是每个产品的最大数量。话虽这么说,我附上我的代码: 途径: Rails.application.routes.draw do
# For details on the DSL available wit