app/controllers/sprangular/taxons_controller.rb in sprangular-0.0.1 vs app/controllers/sprangular/taxons_controller.rb in sprangular-0.1.0

- old
+ new

@@ -1,6 +1,7 @@ class Sprangular::TaxonsController < Sprangular::BaseController def show @taxon = Spree::Taxon.where(permalink: params[:permalink]).first! - render 'show' + + render json: @taxon, serializer: Sprangular::TaxonSerializer end end