Module: NavigationHelper
- Defined in:
- app/helpers/navigation_helper.rb
Instance Method Summary collapse
Instance Method Details
#simple_nav ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/navigation_helper.rb', line 2 def simple_nav tables = ActiveRecord::Base.connection.tables tables = tables.reject { |t| t == 'schema_migrations' } tables = tables.map { |t| Kernel.const_get t.classify } return '' if tables.empty? return render :partial => "menu", :locals => { :tables => tables } end |