syntax error, unexpected kENSURE, expecting kEND syntax error, unexpected $end, expecting kEND

78 views
Skip to first unread message

Tim

unread,
Apr 25, 2011, 3:01:16 PM4/25/11
to sinatrarb
Hi I'm getting the above error. It seems as though the variable in my
each block somehow is nil. In my main.rb its not, but somewhow in the
procces of passing it to my Haml view it becomes empty. Heres a part
from my rb file:
get '/' do
@results = CACHE.fetch('sun', 900) { getPhotos() }
haml :index
end

And here is from my Haml file:
%ul#photos
- @results.each do |result|

What do you make of this?

Regards

k.h...@finn.de

unread,
May 4, 2011, 1:12:52 PM5/4/11
to sina...@googlegroups.com
It means you have an end too many or too few.



-- Gesendet von meinem Palm Pre


--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To post to this group, send email to sina...@googlegroups.com.
To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=en.

Reply all
Reply to author
Forward
0 new messages