search for: current_class_id

Displaying 1 result from an estimated 1 matches for "current_class_id".

2008 Sep 22
2
Variables visible in all actions in a controller
Hello, I want make a variable visible to all actions in a controller. Everytime user submits a parameter "school_class_id" on the basis of which I assign a variable which I want to make available to all the actions in controller. I used before_filter: set_class_id where set_class_id is defined as def set_class_id @currentClassid = session[:currentclassid] if