-
Don't know if there's a Google Group or anything, so I'm just posting here.
I've been working on a REST API for a Rails app for the past 2 months and just discovered `rabl`.
It might be something I've…
czak updated
12 years ago
-
This is a really weird issue and I have already spent a couple of days on it. Please help me.
``` ruby
# routes.rb
resources :needs, :only => [:index] do
collection do
get '/search'
e…
-
Spree version: 1.3.0.rc1)
Rails Version: 3.2.9
gem 'spree', :git => 'git://github.com/spree/spree.git' , :branch =>'1-3-stable'
gem 'spree_auth_devise', :git => 'git://github.com/spree/spree_auth_dev…
bolom updated
11 years ago
-
The Rabl-generated JSON passed to HAMLC template looks as follows
``` json
[
{
"comment": {
"content" : "8796tuyghj",
"created_at" : "2012-08-24T21:18:13Z",
"user" : {
…
ellmo updated
12 years ago
-
I'm having some difficulties in integrating two or more formats using the same template.
I have the following views:
``` ruby
cities.rabl
city.rabl
```
in my controller i have:
``` ruby
respond_t…
-
In the backbone.js FAQ, Jeremy suggests bootstrapping a backbone.js model by using ERB and converting the object/collection to json:
``` javascript
Accounts.refresh();
Projects.refresh( true) %>…
-
i have show.rabl as below. i'd like to re-use it within index.rabl to keep things DRY but i can't figure out how to do so. i'm somewhat new to rails so perhaps it's a simple thing that i'm missing. …
-
I have this rabl template which display search results:
```
node(:q) { @q }
child @users => :users do
extends 'api/v1/searches/user'
end
child @items => :items do
extends 'api/v1/searches/item'…
-
I am trying to cache the 'show' template for each item in an index view. I am using the pattern below so that I can shove will_paginate info into the root level of the returned JSON.
``` ruby
# /thi…
-
I also filed this at https://github.com/thoughtbot/shoulda/issues/224, but realized this may be a more appropriate location for it.
When running any of `rspec`, `rake spec`, `bundle exec rspec`, or `…