Sha256: ccafce76a14ea4239cb113d68543c7c23f7bacea42262b309f6345c40694513c

Contents?: true

Size: 293 Bytes

Versions: 23

Compression:

Stored size: 293 Bytes

Contents

module Phcpress
	module ApplicationHelper

		# Add Active to Menu
		def is_active_controller(controller_name)
			params[:controller] == controller_name ? "active open selected" : nil
		end

		def is_active_action(action_name)
			params[:action] == action_name ? "active" : nil
		end

	end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
phcpress-6.6.1 app/helpers/phcpress/application_helper.rb
phcpress-6.6.0 app/helpers/phcpress/application_helper.rb
phcpress-6.5.1 app/helpers/phcpress/application_helper.rb
phcpress-6.5.0 app/helpers/phcpress/application_helper.rb
phcpress-6.4.5 app/helpers/phcpress/application_helper.rb
phcpress-6.4.4 app/helpers/phcpress/application_helper.rb
phcpress-6.4.3 app/helpers/phcpress/application_helper.rb
phcpress-6.4.2 app/helpers/phcpress/application_helper.rb
phcpress-6.4.1 app/helpers/phcpress/application_helper.rb
phcpress-6.4.0 app/helpers/phcpress/application_helper.rb
phcpress-6.3.0 app/helpers/phcpress/application_helper.rb
phcpress-6.2.8 app/helpers/phcpress/application_helper.rb
phcpress-6.2.7 app/helpers/phcpress/application_helper.rb
phcpress-6.2.6 app/helpers/phcpress/application_helper.rb
phcpress-6.2.5 app/helpers/phcpress/application_helper.rb
phcpress-6.2.4 app/helpers/phcpress/application_helper.rb
phcpress-6.2.3 app/helpers/phcpress/application_helper.rb
phcpress-6.2.2 app/helpers/phcpress/application_helper.rb
phcpress-6.2.1 app/helpers/phcpress/application_helper.rb
phcpress-6.2.0 app/helpers/phcpress/application_helper.rb