html - form_tag 内的 form_tag - 在 rails 中

标签 html ruby-on-rails ruby-on-rails-3 forms

我想像这样在 rails 中使用两个 form_tag,

<%= form_tag %>

    <%= form_tag %>
    ................
    <%= submit_tag %>

<% submit_tag %>

但是内部 form_tag 的 Action 采取第一个 form_tag 的 Action ...!!! 为两个 form_tag 分配不同的操作?

最佳答案

HTML does not allow nested forms ,因此助手不支持嵌套是合理的。

关于html - form_tag 内的 form_tag - 在 rails 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20711194/

相关文章:

ruby-on-rails - 没有列的事件管理索引页面排序

mysql - Rails 应用程序在 Mac OS X 上运行良好,但 mongrel 不响应 Windows 7 中的请求

ruby-on-rails - rails 3 : How to get today's date in specific timezone?

ruby-on-rails - 何时将代码放入 application_controller.rb

jquery - ios 7 browser-kit 围绕 div 元素的黑色边框

java - JSP 或 Servlet PrintWriter

javascript - 根据窗口高度更改字体大小

html - Firebase 返回具有 $value、$id 和 $priority 的数据 AngularJs

ruby-on-rails - GitLab CI for Rails App 使用 Postgres 和 Elasticsearch (searchkick gem)

ruby-on-rails - rails : How to make "button_to" button to appear on the sameline (without a newline)?