0
votes
1answer
18 views

Get build information from Jenkins API with jenkins_api_client

I'm writing a Jenkins plugin and I want to retrieve last build information (number, timestamp, build parameters) for a given job from the Jenkins API. I can do this using jenkins_api_client (ruby gem) ...
0
votes
1answer
113 views

Rails - using jBuilder to create json file

I am trying to use jBuilder to create a json file (as per the timeline.verite.co timeline requirements) - but the result just comes out as blank, other than a pair of {}. The html version of the file ...
0
votes
2answers
1k views

Rails rendering json partial in model

In our rails 3.2 app, we are using Jbuilder to render our json responses (nothing special here). The json view could be as simple as this: _model_name.json.jbuilder json.extract!(page, :id, :name, ...
0
votes
1answer
16 views

What is the best way to convert all controller params from camelCase to snake_case in Rails?

As you already know, JSON naming convention advocates the use of camelSpace and the Rails advocates the use of snake_case for parameter names. What is the best way to convert all request's params to ...
0
votes
1answer
17 views

How can I create a new object from a JSON POST?

I want to create a new "Image" object on the Rails server from json using HTTP POST. Here's the images_controller code: class ImagesController < ApplicationController respond_to :json def ...
0
votes
0answers
8 views

Segmentation fault while running rails (diaspora)

I was trying to run diaspora (social network build with rails) on my machine for testing. It's fedora 18 64bit, and I get this problem. It's very big error track message, so I add it here. ...
0
votes
0answers
12 views

NoMemoryError with OJ gem while trying to accelerate JSON conversion in Rails

We installed the OJ gem to accelerate JSON conversion in Rails 3.2.12, but we see a NoMemoryError (failed to allocate memory) error when attempting to use the code. Here's where we use the gem in our ...
0
votes
1answer
32 views

trying to include a .js.erb file into a view

I'm triying to include some js.erb script into my view. Simply because I'm coding a polling based chat I want to keep it really simple but it actually ended up being something really much more ...
0
votes
0answers
11 views

Pretty Print JSON with JBuilder

I am using JBuilder as a JSON DSL. I have it working properly but cannot figure out how to pretty print JSON. I want to use JSON.pretty_generate but that requires a string or a hash, and JBuilder is ...
0
votes
1answer
11 views

Including multiple associations using respond_with

I have a rails 3 app running on ruby v. 1.9.3 with a user, post and role model. A user has many posts as well as roles. My routes.rb file look like this: namespace :api, defaults: {format: 'json'} ...
0
votes
0answers
10 views

How to model nested resources using RABL?

I want to setup a nested route in my Rails project as illustrated here: # config/routes.rb DemoApp::Application.routes.draw do namespace :api, defaults: {format: :json} do namespace :v1 do ...
0
votes
0answers
15 views

How should I build this Rails REST JSON API for mobile phone access? [closed]

Assume I have to build a blog with REST JSON API with these entities: - Category (with name and description). - Blog entry (with title, content and published). - Comment (with content). Constraints: ...
0
votes
2answers
27 views

fullcalendar does not change backgoundcolor

I am using fullcalendar on ruby on rails and it is working really well. I am trying to change the backgound_color property of an event but I can't see how to get it. I was able to change the border ...
0
votes
1answer
95 views

How to add another method in rails controller

I am having a problem while adding a new method to a controller, here are the details: matches_controller.rb def index @matches = Match.all render rabl: @matches end def current @matches ...
0
votes
2answers
36 views

issue with passing array of hashes as parameter to POST in rails application

I have two rails services. One serving the UI and some basic functionality (UIService) and another which manages the underlying models and database interactions (MainService). At the UIService, I ...

1 2 3 4 5 99
15 30 50 per page