Top "Jbuilder" questions

JBuilder is a IDE for Java developed by Embarcadero Technologies.

Rails: Render Json Status Problems

When I render json: { error: "No such user; check the submitted email address", status: 400 } and then do my tests and …

ruby-on-rails json jbuilder
rails jbuilder - just an array of strings

i have a controller that returns an array of ActiveRecord objects and a jbuilder view to generate the json (all …

ruby-on-rails arrays json jbuilder
Generate a nested JSON array in JBuilder

I have this models in ruby on rails Branch model: has_many :menus class Branch < ActiveRecord::Base belongs_to :…

ruby-on-rails ruby json jbuilder
How could I render to a string a JSON representation of a JBuilder view?

I'm using JBuilder as to return some JSON. I have a index.json.jbuilder that generates the data, and I …

ruby-on-rails json jbuilder
JBuilder loop that produces hash

I need loop that produces hash, not an array of objects. I have this: json.service_issues @service.issues do |…

ruby-on-rails json jbuilder
How to extract all attributes with Rails Jbuilder?

It's a pain to write codes like this all the time in jbuilder.json template: json.extract! notification, :id, :user_…

ruby-on-rails jbuilder
Using JBuilder to create nested JSON output in rails

I am looking for examples on how to create nested JSON output using JBuilder. I want to create and output …

ruby-on-rails ruby-on-rails-3 jbuilder
jbuilder vs rails-api/active_model_serializers for JSON handling in Rails 4

I have started to begin with Rails 4. While working with handling of JSON format data, I found we can use …

ruby-on-rails ruby ruby-on-rails-4 active-model-serializers jbuilder
JBuilder dynamic keys for model attributes

I'm trying to build a JSON file to access a product's variation via a variation code. Ideally, I could call …

ruby-on-rails json jbuilder
undefined local variable or method `json' in JBuilder

When I try get all categories (index action) there is an error: undefined local variable or method `json' But in …

ruby-on-rails json jbuilder