Class: Fastui::MViewsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/fastui/m_views_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#paginate

Instance Method Details

#indexObject



6
7
8
9
10
11
# File 'app/controllers/fastui/m_views_controller.rb', line 6

def index

  @window = Fastui::Window.find(params[:name])
  #respond_with(@window.to_json(root: false,:include => { :tabs => {root:false}}))
  respond_with(@window.to_json())
end

#showObject



13
14
15
16
# File 'app/controllers/fastui/m_views_controller.rb', line 13

def show
  @window = Fastui::Window.find(params[:id])
  respond_with(@window.to_json())
end