Skip to content

Instantly share code, notes, and snippets.

View jiggneshhgohel's full-sized avatar

Jignesh Gohel jiggneshhgohel

  • India
View GitHub Profile
@jiggneshhgohel
jiggneshhgohel / rabl-rails-directly-render-object.md
Last active April 15, 2024 12:43
Rabl-Rails: How to directly render objects in versions greater than 0.4.3.

Using the suggestions in ccocchi/rabl-rails#88 (comment) I was able to resolve my problem I described in ccocchi/rabl-rails#88 (comment) but I needed few customizations to be made. Following is the list of customizations I made:

  1. Created lib folder under app folder.

  2. Created rabl-rails folder under app/lib folder.

  3. Created renderers folder under app/lib/rabl-rails folder.

  4. Created renderer.rb file under app/lib/rabl-rails folder.