Questions tagged [jbuilder]

JBuilder is a IDE for Java developed by Embarcadero Technologies. It is also the name of a Ruby library for producing JSON.

JBuilder is a Java IDE from Embarcadero Technologies. It was originally developed by Borland in 1997, and now belongs to Embarcadero Technologies.

Jbuilder is also the name of a Ruby library that lets you "create JSON structures via a Builder-style DSL".

335 questions
0
votes
1 answer

Troubleshooting Rails Heroku 500 error in json response

I'm struggling to figure out why I'm getting a status of 500 when querying for surveys.json or surveys/:id.json in my heroku app. Any idea what I should check or what might be the problem? My first intuition was that maybe it needed a heroku run…
Tom Hammond
  • 5,842
  • 12
  • 52
  • 95
0
votes
1 answer

Constructing a nested JSON request with Jbuilder

Currently my JSON request is returning the below, where each person/lender has many inventories. #output of /test.json [ {"id":13, "email":"johndoe@example.com", "inventories": [ {"id":10,"name":"2-Person Tent","category":"Camping"}, …
james
  • 3,989
  • 8
  • 47
  • 102
0
votes
2 answers

Parsing array of multiple objects in Jbuilder

How to extract values present in array of multiple object's using jbuilder.? i have an array of multiple objects. @array1= [ ] #pushed different types of objects into this array. if xyz @array1 << object_type1 # having fields id,f_name else…
Aparichith
  • 1,452
  • 4
  • 20
  • 40
0
votes
0 answers

Type Error no implicit conversion of String into Integer in index.json.jbuilder

I am working with Rails1.4.1 and jbuilder In index.json.jbuilder have the code, if @event_templates.count == 0 json.message "Not found" end But Its givining error as, Type Error no implicit conversion of String into Integer If i give simple…
RubyOnRails
  • 235
  • 1
  • 15
0
votes
1 answer

Rails jbuilder what url?

I'm starting to use gem jbuilder in a Rails 4 app. If I create a view file called show.json.jbuilder in the sites folder, and the following url displays the json = localhost/sites.json If I add a file called tree.json.builder to the same sites…
Reddirt
  • 5,913
  • 9
  • 48
  • 126
0
votes
1 answer

remove quotes from jbuilder json

I'm new to rails and jbuilder, so I'm not sure if this is doable or not. I'm using this autocomplete jquery plugin http://www.devbridge.com/sourcery/components/jquery-autocomplete/ and the response it expects is to be in the format of { …
geoff swartz
  • 5,437
  • 11
  • 51
  • 75
0
votes
1 answer

JBuilder and Java 5

I'm using JBuilder 6 and running against Java 1.3 I'm migrating to Java 5 Do I need a more modern version of JBuilder to run against Java 5?
AJM
  • 32,054
  • 48
  • 155
  • 243
0
votes
1 answer

Filtering with geokit rails - dosent show any data

I am building an API for a webbapp using Ruby On Rails, i am using Jbuilder for API/JSON and Geokit. I have this models: Campaign class Campaign < ActiveRecord::Base belongs_to :company belongs_to :venue belongs_to :category …
user592638
0
votes
1 answer

Addin $ to JSON element name - JBuilder

I am using Jbuilder to generate JSON to feed to a data visualisation toolkit. I need to have a color element with a "$" prefix - something like: "data": { "$color": "#222", } My jbuilder file currently looks like: json.children…
0
votes
0 answers

Redcarpet and JBuilder

So, I'm trying to use JBuilder to return some fairly standard json, one of the fields being some markdown parsed into HTML by Redcarpet. json.categories @all_categories do |category| json.extract! category, :name json.black_icon_url…
peteykun
  • 716
  • 9
  • 21
0
votes
1 answer

Error while installing Egit plugin on JBuilder

excuse me for my english ^^" I tried to install EGit plugin on JBuilder 2008 R2 but it gave me this error: Cannot complete the request. See the details. Cannot complete the request. See the details. Cannot find a solution satisfying the…
Mic87xp1
  • 25
  • 4
0
votes
1 answer

Rails format object in helper

When I run a simple query of Item.where(:id => id) in my ItemHelper class and it returns [ { JDPA: null, _id: "530e45f43f72fb3dee000001", category: null, created_at: "2014-02-26T19:52:20Z", creator: "5170547c791e4b1a16000001", detail:…
Kevin Brown
  • 12,602
  • 34
  • 95
  • 155
0
votes
1 answer

rspec render_views not working with jbuilder partials

I'm using Rails 3.2.16, rspec-rails 2.14.1 and jbuilder 2.0.2 and found out that rspec is not yielding the "json" object when rendering jbuilder partials using: render :partial => 'my_partial' where "my_partial" is a _mypartial.jbuilder file. It…
0
votes
1 answer

Simple custom jbuilder json response

I'd like to be able to create some super simple json string with jbuilder since it's included in rails 4 by default. Say I got some Categories current_project.categories. At the moment I'm using this jbuilder construct to get only the category…
Andre Zimpel
  • 2,323
  • 4
  • 27
  • 42
0
votes
1 answer

Rails: JSON URL returning HTML

I have a Rails 4 application, and the URL localhost:3000/resources.json returns and HTML file, instead of JSON. The index.json.jbuilder is generated by Rails scaffold itself. Any idea why the JSON output is going wrong?
Geordee Naliyath
  • 1,799
  • 17
  • 28