-
The following works as it should with the conditional:
```
collection @publish_times
child(:task, :if => lambda { |publish_time| publish_time.task_id.present? }) do
extends "api/tasks/task"
end
`…
-
### Controller:
``` ruby
def create
@status = 0
@errors = Array.new
if @user.save
@status = 1
else
@user.errors.full_messages.each { |e| @errors :errors do
extends "…
-
When I try to render a field whose name in my model is `:format` is happening this error:
`too few arguments`
``` ruby
child :item do
attributes :format
end
```
-
I have a template like this (have made generic):
```
collection @posts
post_as_root_object = root_object
child(:commenters) do |post|
node(:position) do |commenter|
commenter.position(post)
…
waggl updated
8 years ago
-
Not sure exactly what is going on, but I've been thus far unable to get haml_assets to properly find any partials.
My hbs template is located in app/assets/javascripts/templates/quiz/xyz.hbs.haml
My …
-
http://stackoverflow.com/questions/15277146/rabl-caching-with-nested-object
I can repost if needed. I also tried
cache root_object # instead of cache @retailer
in _school.json.rabl
-
Issue #183 started an interested discussion between me and @databyte and @blakink. What if we changed the syntax to group the content into object/collection blocks. For instance, take this example fro…
-
I'm rendering a JSON object using a RABL template right into the page (so as not to make additional requests).
``` haml
:javascript
var venue = #{render :file => 'api/v1/venues/show', :formats => :…
-
I have a Submission model
```
belongs_to :report
has_many :answers
```
Report Model
```
has_many :questions
```
Question Model
```
has_many :answers # answer has submission_id
```
Now in rabl …
-
I was surprised to see that **child** block fetches an associations instead of instance's variable with the same name, so I was going to use **node** block to force to use my scoped data-set, not just…