Displaying 1 result from an estimated 1 matches for "update_mod".
Did you mean:
  update_mode
  
2006 Jul 29
2
Instance Variables within Controller during AJAX request
...build'', ''search''
My controller looks like this:
class RandomController < ApplicationController
  before_filter :login_required, :except => [:index, :initialize]
  def initialize
    @mode = ''view''
  end
  def index
    store_location
  end
  def update_mode
    render :update do |page|
      page[@mode].className = ''tab''
      page.alert(@mode)
      @mode = params[:id]
      page[@mode].className = ''tab active''
    end
  end
end
Now, I''m using link_to_remote for all of the buttons and the id of each 
but...