render :partial renders collection when passed array
authorHelder Ribeiro <helder@gmail.com>
Thu, 22 Jul 2010 05:35:57 +0000 (02:35 -0300)
committerHelder Ribeiro <helder@gmail.com>
Thu, 22 Jul 2010 05:49:16 +0000 (02:49 -0300)
commitcf96f6742dcbecde1f30d7ffcb1f440c0a18210d
tree071d89e1e3a8cb9b680fcc94699b6286b1ad635e
parent8314aaa6ee7ae0bcf3f6cc8bf89bfecc7b8ceda6
render :partial renders collection when passed array

Even if you pass it as :object => @tag_cloud, it still iterates over
the elements of the @tag_cloud array. The partials were expecting the
array and were getting each successive hash, so they were breaking.
Fixed that by passing the collection in the :locals hash.

Also replaced the deprecated '-' block syntax with Haml's new one
('=').

fix fix
app/views/questions/_tag_table.html.haml
app/views/questions/index.html.haml
app/views/questions/show.html.haml
app/views/questions/tags.html.haml
app/views/questions/unanswered.html.haml
app/views/shared/_tag_list.html.haml