-
Hi,
In a particular rabl view, I want to declare all the attributes of a model. I tried
```
attributes MyModel.column_names.map(&:to_sym)
```
but I get ActionView::Template::Error error:
```
[:id,…
-
Woohoo! After many, many hours of trial and error, reading through the wiki/documentation and issues posted here, I finally wrangled RABL to output my desired JSON response.
The question I had was f…
-
I have justs upgraded an application to Rails 3.2.6 (previous was in 3.2.3) and I have begun to have weird problems with
my handlebars templates.
The problem is that it seems not to get data that come…
-
My config
```
# config/initializers/rabl_init.rb
Rabl.configure do |config|
config.include_json_root = false
config.include_child_root = false
end
```
My template
``` ruby
object @event
extend…
zorn updated
12 years ago
-
My invoice decorator is such:
```
class InvoiceDecorator < ApplicationDecorator
decorates :invoice
def total
h.number_as_currency model.total
end
end
```
I'm generating and sending an ema…
-
Commit 80e3905e broke on click events for elements loaded by AJAX such as the .select_properties_from_prototype anchor.
-
Hi, i'm having some troubles geting xml output from my padrino app, here are my configurations:
Gemfile
```
# Padrino Stable Gem
gem 'padrino', '0.10.6'
gem 'rabl'
gem 'yajl-ruby'
```
Controller
`…
ngelx updated
12 years ago
-
A ActionView::Template::Error occurred in user#roll_followings:
undefined method `title' for nil:NilClass
(eval):9:in`block in render'
------------------------------- Request:
- URL : http://ap…
-
So I've got two issues with `extends` and `partial`. First it seems neither of them respects the namespacing. For instance consider this routing:
``` ruby
namespace :api do
namespace :v1 do
res…
-
Unless I'm doing something wrong, this Tips & Tricks no longer seems to work.
https://github.com/nesquena/rabl/wiki/Tips-and-tricks