Class: Api::ExhibitsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/api/exhibits_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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

def show
  @exhibit = FabulatorExhibit.find(:first, :conditions => [ "name = ?", params[:id] ])
  respond_to do |format|
    format.json { render :json => @exhibit.database.to_json }
  end
end