I recently upgrade to rails 2.1.1 from rails 1.2.3. When I create a
form, it generates this error when the form is displayed:
undefined method `protect_against_forgery?' for #<ActionView::Base:
Extracted source (around line #5):
3: Thank you for signing up at Specool.com. Your first time login
must be from within this email to properly activate your account.
After that, you may login directly at specool.com.
5: <% form_tag :controller => "user", :action=> "login" do %>
8: <label for="user_login">Login email:</label><br/>
Application Trace | Framework Trace | Full Trace
I know protect_against_forgery? is defined in
ActionController::RequestForgeryProtection, but no where I can find it
is defined as a helper.
It is called from /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/
lib/action_view/helpers/form_tag_helper.rb so I assume that this
should be available to all views. Maybe I didn't loaded something
Help is much appreciated!