class SomeController < ApplicationController
before_filter do |c|
add_crumb “Blah”, “/blah” #breadcrumbs plugin
redirect_to :controller => “foo”, :action => “bar” unless c.send
Rest of the controller…
A bunch of logic work to check to make sure
somebody’s session contains certain variables
returns ONLY true or false.
The problem I’m having is that I’m getting “undefined method” errors
for redirect_to. This confuses me since SomeController inherits from
ApplicationController which inherits from ActionController::Base. Any
idea what’s causing this problem? I’m thinking this is a scope issue
somehow, but I’m not sure why it’s failing like this.