Class: FastExt::MViewsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_user, #paginate

Instance Method Details

#indexObject



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

def index

  @window = FastExt::Window.find(params[:name])
  respond_with(@window.to_json())
end

#showObject



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

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