【发布时间】:2014-05-08 13:37:01
【问题描述】:
<%= form_tag :action => "comment" do %>
<%= text_area "comment", "body" %><br />
<%= submit_tag "Comment" %>
<% end %>
我收到了这个错误:
no route matches found {:action=>"comment", :id=>"1", :controller=>"posts"
我该如何解决这个问题?
【问题讨论】:
-
$ rake routes或$ bundle exec rake routes将为您提供应用程序中的路线
标签: ruby-on-rails ruby