Skip to content
Sinatra MVC Application
Ruby HTML
Branch: master
Clone or download
Pull request Compare This branch is 5 commits behind latinawhocodes:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config Add files via upload Aug 16, 2019
db Add files via upload Aug 16, 2019
.gitignore
Gemfile
Gemfile.lock
LICENSE Initial commit Aug 16, 2019
README.md Add files via upload Aug 16, 2019
Rakefile
config.ru

README.md

CookBook Sinatra MVC

Welcome to CookBook! This is a MVC Sinatra web application that allows cooking enthusiasts to post snippets of recipes or just a small post in general. This app is for cooking/food enthusiasts who wish to share their experiences and tips with others. Imagine Facebook but for cooking! 

Objectives 1. Build a Sinatra MVC Application 2. Use ActiveRecord with Sinatra 3. Use multiple models 4. Use at least one has_many relationship on a User model and one belongs_to relationship on another model 5. Must have user accounts -users can sign up, sign in, and sign out 6. Validate uniqueness of user login attribute 7. Once logged in, a user must have the ability to create, read, update, and destroy the resource that belongs_to
user. 8. Ensure users can edit and delete only their own resources. 9. Validate user input so that bad data cannot be persisted to the database.

File Structure

├── Gemfile
├── Gemfile.lock
├── LICENSE.md
├── README.md
├── Rakefile
├── app
│   ├── controllers
│   │   └── application_controller.rb
│   ├── models
│   │   ├── tweet.rb
│   │   └── user.rb
│   └── views
│       ├── index.erb
│       ├── layout.erb
│       ├── tweets
│       │   ├── create_tweet.erb
│       │   ├── edit_tweet.erb
│       │   ├── show_tweet.erb
│       │   └── tweets.erb
│       └── users
│           ├── create_user.erb
│           └── login.erb
├── config
│   └── environment.rb
├── config.ru
├── db
│   ├── development.sqlite
│   ├── migrate
│   │   ├── 20151124191332_create_users.rb
│   │   └── 20151124191334_create_tweets.rb
│   ├── schema.rb
│   └── test.sqlite
You can’t perform that action at this time.