Class: Artk::AccessionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Artk::AccessionsController
- Defined in:
- app/controllers/artk/accessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/controllers/artk/accessions_controller.rb', line 4 def index @accessions = Accession.find(:all) respond_to do |format| format.html { render :layout => false, :text => @accessions.to_json } format.json { render :layout => false, :text => @accessions.to_json } format.js { render :layout => false, :text => @accessions.to_json } end end |