I am using Ruby on Rails 3 and I am trying to use middlewares in order to set a variable @variable_name accessible later in controllers.
@variable_name
For example my midd
Have you tried creating a Ruby global variable?
def call(env) $account ||= Account.find(1) @app.call(env) end
and
<%= debug $account %>