Top "Rabl" questions

RABL (Ruby API Builder Language) is a Ruby templating system for generating XML and JSON.

Rails 4 - How to render JSON regardless of requested format?

I'd like a Rails controller (all of them, actually, it's an API) to render JSON always always. I don't want …

ruby-on-rails json ruby-on-rails-4 rabl
How to remove html redirection in devise authenticate_user

I use the devise's authenticate_user! method in a controller. This is working fine when the auth_token provided in …

ruby-on-rails ruby-on-rails-3 devise rabl
Having issues with Access-Control-Allow-Origin

I have a Rails app running in Heroku, and a html file using Jquery Mobile. The Rails app returns JSON …

ruby-on-rails-3 jquery jquery-mobile rabl
Rendering a simple Ruby hash with RABL

I have a ruby hash that I'd like to render using RABL. The hash looks something like this: @my_hash = { :…

ruby rendering rabl
Removing child root nodes in RABL

I'm trying to render a pretty simple data structure using RABL, but I can't figure out how to remove the …

ruby-on-rails ruby rabl