class ApplicationController < ActionController::Base
protect_from_forgery
def current_machine
Machine.find(session[:machine_id])
end
helper_method :current_machine
end
вьюха:
<%= current_machine.id %>
Проходит 20 мс...
<%= current_machine.id %>
Есть гарантия того, что current_machine будет одним и тем же?