ボタンすらレンダリングしない次のコード:
<% form_tag :controller=> :create_new, :action=>:input do %>
<%=text_field_tag :my_input%>
<%=submit_tag "Send input"%>
<%end%>
コントローラcreate_newには次のメソッドがあります。
def input
@my_input=params[:my_input]
end
ルート.rbには::
resources :create_new do
post :input, :on=>:collection