Class: LinksController
- Inherits:
-
KitController
- Object
- ActionController::Base
- KitController
- LinksController
- Defined in:
- app/controllers/links_controller.rb
Constant Summary
Constants inherited from KitController
Instance Attribute Summary
Attributes inherited from KitController
#is_image_request, #kit_request, #layout_being_used, #requested_url, #template_being_used
Instance Method Summary collapse
Methods inherited from KitController
#anti_spam_okay?, #app_name, #can_moderate, #can_use, #captcha_okay?, #check_and_record_goal, #check_user, #csv_headers, #dif, #edit_page_path, #feature?, #get_asset, #get_view_content, #host_name, #index_name, #info_page_path, #kit_layout_in_use, #kit_render, #kit_session, #kit_session_end, #link_to, #mailchimp_connect, #mobile_template, #no_read, #no_write, #not_found, #not_found_404, #offline, #page_path, #pref, #rails_app_name, #render, #render_error, #render_page, #render_page_by_url, #routing_error, #sanity_check_okay?, #session_id, #set_requested_url, #show_form, #stylesheets, #super_render, #user_sees_menu?
Instance Method Details
#files ⇒ Object
17 18 19 20 21 |
# File 'app/controllers/links_controller.rb', line 17 def files @assets = Asset.sys(_sid).per(params[:per] || 10).page(params[:page]) render :layout=>"minimal" end |
#index ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/links_controller.rb', line 3 def index params[:target_field] = 'link_external_url' if params[:target_field]=="undefined" if request.xhr? && can_use render "index", :formats=>[:js] else if current_user && can_use render :layout=>"minimal" else render "index_trial", :layout=>"minimal" end end end |