class CnasController < ApplicationController def index @cnas = Cna.all end def show @cna = Cna.find(params[:id]) render json: @cna.to_json end def show_for_cna @cna = Cna.find_by_cna_id(params[:cna_id]) render json: @cna.to_json end def show_for_orgname @cna = Cna.find_by(:organization_name => params[:organization_name]) render json: @cna.to_json end end