/tmp/cache and svn-ignore

Could someone will commit access (pretty please) add ./tmp/cache to
the ignores so that I don’t have to delete it every time I update?

Paul R Brown
[email protected]





Hi All,

I stumbled upon this bug, when i was trying to write my own sidebar

Whenever i try to add or remove items to sidebar by dragging the stuff
the active region, i get error:

NoMethodError (You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.inject):
/app/controllers/admin/sidebar_controller.rb:26:in set_active' /vendor/rails/actionpack/lib/action_controller/base.rb:910:inperform_action_without_filters’

And the problem is with the line:

activemap = flash[:sidebars].inject({}) do |h, sb_id|
sb = Sidebar.find(sb_id.to_i)
sb ? h.merge({ sb.html_id => sb_id }) : h

while we assign the active plugins to flash[:sidebars] in index action,
they are replaced or lost in set_active method and hence the bug.
It may be something to do with the way mongrel handles sessions alos,
may be.

It looks a bug to me, right now.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs