Hi
    Please do like
Application controller as it is

class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time
  protect_from_forgery # See ActionController::RequestForgeryProtection
for details

  # Scrub sensitive parameters from your log
  # filter_parameter_logging :password

  def verify_login
    unless session[:engine_host]
      logger.debug "no engine host in session, redirecting to job/index"
      redirect_to :controller => 'job', :action => 'index'
      return false
    end
    return true
  end
end

In jobs controller you dont need verify_login So

class JobController < ApplicationController
  before_filter :verify_login, :except => [:index, :login_to_engine]
  before_filter :engine, :except => [:index, :login_to_engine]

end




Sijo
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to