Removed rails specific code from dashboard

Doesn't work outside of rails