Adapted code for rails 4
Corrected routes, problems with rails namespace
Fixed problem with pos tab in admin menu