No commit activity in last 3 years
No release in over 3 years
Renders citero objects for Rails applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Citero Renderers

Renderers for Citero for Rails 3, 4. This gem is based entirely off of beerlington's wonderful csv_renderer.

How to use

You can have it render the format with a responds with action. You must have something like this in your controller.

    class TestController < ApplicationController
    	respond_to :ris, :bibtex, :json
    	def test
    		rec = Record.create(:data => "itemType: book", :format => "csf")
    		arr = Array.new
    		arr << rec
    		respond_with(arr)
    	end
    end

RAILS 4.2

In Rails 4.2, you have to include the responders gem if you want to use respond_with.