railsforcharity/spokenvote — pull request #205 by tispratik (2013-05-27 02:36:07+00:00)
Title: Some code improvements

Some minor code improvements.

Also, i think its not good to have lists of droplists in angular for rendering the UI (examples: help_dropdown and user_dropdown). These should be done with regular html markup so as to be unobtrusive. This can cause problems for new developers/designers who will look for a certain piece of markup in html files but they will find it in javascript files.

Also, we do not need a new route for active admin. The `ActiveAdmin.routes(self)` line at the top of the `routes.rb` file provides the routes. You can run `rake routes | grep admin` to see them. The active admin interface should be outside of Angular.js (non single page app), we should just redirect the user to that location '/admin' without any interference from Angular.js. So, it should be pretty easy.