browsermedia / browsercms

BrowserCMS: Humane Content Management for Rails
http://browsercms.org
GNU Lesser General Public License v3.0
1.17k stars 260 forks source link

Deleting content blocks produces error #745

Open tbodnya opened 9 years ago

tbodnya commented 9 years ago

Happens in 4.0.0.rc1 Go to any custom content block's index page, check blocks that you want to delete and click delete. It gives you an error: no routes matches action index and controller "/<you content block's controller>" (Example: {:action => index and :controller => "ibo/articles"})

Fixed manually by overwriting a "bulk_update" method and changing redirect_to from ":action :index" to an actual path.