Sha256: 6ce237bb4b143574df05781c856ddf48301e1351f4d5bd4112b2a2def853edbe
Contents?: true
Size: 644 Bytes
Versions: 28
Compression:
Stored size: 644 Bytes
Contents
class Admin::DialogsController < Admin::BaseController layout 'admin_dialog' def show unless (@dialog_type = params[:id]).blank? @submit_button_text = "Insert" url_params = params.reject {|key, value| key =~ /(action)|(controller)/} if @dialog_type.downcase.split("&")[0] == "image" @iframe_src = insert_admin_images_url(:dialog => true) elsif @dialog_type.downcase.split("&")[0] == "link" @iframe_src = link_to_admin_pages_dialogs_url(url_params) end render :layout => false#"admin_dialog" else render :nothing => true end end end
Version data entries
28 entries across 28 versions & 1 rubygems