Skip to content

hackerschoolmty/bookstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookstore!

This application was created with the following commands:

$ rails new bookstore --database=postgresql
$ cd bookstore/

Set your database configuration in database.yml file and the run the following commands:

$ rake db:create
$ rails g scaffold Book name:string author:string description:string slug:string
$ rails g scaffold User name:string email:string
$ rails g scaffold Comment book_id:integer user_id:integer description:string
$ rake db:migrate

After that Devise was incorpored:

  • First the gem was included into the Gemfile
  • Then the following commands were runned:
$ rails g devise:install
$ rails g devise:views
$ rails g devise User
$ rake db:migrate

Finally run db:seed to load some data

$ rake db:seed

About

Rails201 exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •