#Setup
- git clone https://github.com/mayureshmayur/prodassg
- cd prodassg
- bundle
- psql=# create user lenny password 'leonard' createdb;
- rake db:create
- rake db:seed if you want to see some products without creating a new one,
- rails s
Note: Only admin can update and delete products and comments.
#To make a user admin:
- cd prodassg
- rails c
- user = User.find(:id)
- user.update(is_admin: true)
- user.save!