Class: Bolt::InfoController
- Inherits:
-
BoltController
- Object
- ActionController::Base
- ApplicationController
- BoltController
- Bolt::InfoController
- Defined in:
- app/controllers/bolt/info_controller.rb
Instance Method Summary collapse
Methods inherited from BoltController
Methods included from ConfigHelper
#bolt_config_dashboard_url, #bolt_config_email_from_address, #bolt_config_hostname, #bolt_config_javascript_includes, #bolt_config_logo, #bolt_config_stylesheet_includes, #bolt_config_website_name
Methods included from BoltHelper
#bolt_check_box, #bolt_check_box_group, #bolt_collection_select, #bolt_date_select, #bolt_datetime_select, #bolt_file_field, #bolt_generate_page_title, #bolt_get_access_level_array, #bolt_get_access_level_text, #bolt_get_full_version_string, #bolt_get_short_version_string, #bolt_get_version_info, #bolt_hidden_field, #bolt_password_field, #bolt_radio_button, #bolt_radio_button_group, #bolt_select, #bolt_show_icon, #bolt_show_row_icon, #bolt_table_cell_link, #bolt_table_cell_no_link, #bolt_text_area, #bolt_text_area_big, #bolt_text_field, #bolt_time_select, #bolt_time_zone_select
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/controllers/bolt/info_controller.rb', line 4 def show @site_settings=Setting.find(1) @top_menu = Page. if(!params[:cat_name].nil?) if(!params[:cat_name].match(/article/i).nil?) if(!params[:id].nil?) @article = Article.find(params[:id].to_i) end else @articles = Article.published end else @categories = Category.all if(params[:id].nil? || !params[:id].match(/index|home/i).nil?) @page = Page.find_by_title("Home") else @page = Page.find_by_title(deformat_url_id(params[:id])) end end end |