Sha256: 60e1b4fb2a9c5a97bd149fa86e899bbfdc3932b59d82adef02dc629eb665f7e4

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 Bytes

Contents

require_dependency "fastui/application_controller"

module Fastui
  class MViewsController < ApplicationController
    respond_to :html, :xml, :json
    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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fastui-0.1.8 app/controllers/fastui/m_views_controller.rb
fastui-0.1.7 app/controllers/fastui/m_views_controller.rb
fastui-0.1.6 app/controllers/fastui/m_views_controller.rb
fastui-0.1.4 app/controllers/fastui/m_views_controller.rb
fastui-0.1.3 app/controllers/fastui/m_views_controller.rb
fastui-0.1.2 app/controllers/fastui/m_views_controller.rb