Module: FunkyTabs::Renderers::InstanceMethods
- Defined in:
- lib/funky_tabs/renderers.rb
Instance Method Summary collapse
Instance Method Details
#render(*args, &block) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/funky_tabs/renderers.rb', line 9 def render(*args, &block) super(*args, &block) and return if params[:funky_tabs].nil? @location_hash = params[:location_hash] super(*args, &block) and return if @location_hash.nil? @tab_index = FunkyTabs.tab_index_from_location_hash(@location_hash) super(*args, &block) and return if @tab_index.nil? @render_content = render_to_string(*args, &block) super(:template=>"funky_tabs/update/update_tab",:layout=>false) end |