如何在Rails 3的邮件程序中使用表单助手?
|
我正在尝试向用户创建一封包含简单html表单的邮件。为此,我按照http://edgeguides.rubyonrails.org/action_mailer_basics.html#example-action-mailer-configuration教程中的建议使用Rails 3中的ActionMailer
我无法在邮件erb文件中使用像form_tag这样的ActionView帮助器。如何在erb文件中访问它们。
我的user.html.erb文件具有如下代码:
<%= form_tag(:controller => \"application\", :action => \"parent_select\", :method=>\"put\") do %>
Want To Attend
<%= check_box_tag(:yes, \'1\', request.priority != 0) %>
<% end %>
我收到此错误:
undefined method `protect_against_forgery?\' for #<#<Class:0xa0874c4>:0xa085a70>
没有找到相关结果
已邀请:
1 个回复
蹦吃舷弦