Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
没关系。我根本不知道我可以使用 params[:fieldname]
你的问题没有提供信息。您能否提供更多信息。关于你想做什么?
无论如何,你可以这样做:
<% form_tag url_for(:action => 'method_name', :param_name => "abc" ) ... <% end %>
在控制器中:
def method_name p = params[:param_name] end