I *badly* want to use tokamak and restfulie, but I've had no success
today.
Just to see if it was my tokamak code or something else, I threw the
example code into my index, and renamed my instance var to match.
ActionView::TemplateError (You have a nil object when you didn't
expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]) on line #1 of app/views/
api/posts/index.tokamak:
1: debugger
2: collection(@some_articles) do |collection|
3: collection.values do |values|
4:
values.id "
http://example.com/json"
tokamak (1.2.1) lib/tokamak.rb:10:in `builder_lookup'
app/views/api/posts/index.tokamak:1:in
`_run_tokamak_app47views47api47posts47index46tokamak'
It *doesn't* matter what line 1 is.. it always gives this error back.