Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.27 KB

README.rdoc

File metadata and controls

46 lines (29 loc) · 1.27 KB

User Management (Ruby on Rails) integrated with jQGrid framework

An application for an administrator to manage users and their roles. A user has zero to many roles and a role can have many users.

The administrator will see a grid that contains all of the users. The grid has the following columns

1. User ID
2. Username
3. Email Address
4. First Name
5. Last Name
6. Roles (represented as comma-delimited list)

functionality:

1. Support sorting on the User ID, Username, Email Address, First Name, and Last Name columns
2. Support filtering by Username, Email Address, First Name, and Last Name, and Role
3. Support editing existing and creating new users directly into the grid
4. Support deleting a user from the system
5. Support user input validation

Installation

Database: Postgres, Framework used: jqGrid

$ cd user_admin

$ bundle install

$ modify Gemfile for database gem (I use Postgres), and modify database adaptor in config/database.yml

$ rake db:create 

$ rake db:migrate

$ rails s

Go to: http://localhost:3000/users
   1. create roles by clicking "Add/Edit Role" button
   2. add users by clicking "Add User" button

Sanpshots: file://user_admin/snapshot.html

TODO: Able to load JSON/CSV files to database