No commit activity in last 3 years
No release in over 3 years
Allows simple view toggling
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

rails2_view_toggler

Simple view toggling framework for Rails 2.x.

You use it like this, by creating an initializer like this:

require 'rails2_view_toggler'

Rails2ViewToggler.enable({
        'shared/color_panel' => NEW_COLOR_TOGGLE,
        'color_palette_parameter_input' => PALETTE_TOGGLE
      })

What this means is that any call in your app to render the 'shared/color_panel' partial will render the original version if NEW_COLOR_TOGGLE is false and 'shared/new_color_panel' if it is true