Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
c636b5d
base commit
behrami Apr 25, 2018
cf40ae8
made relationships in models
behrami Apr 26, 2018
ed2dfab
changed route for reservation so its not nested
behrami Apr 26, 2018
eb517e6
changed route for reservation to resources
behrami Apr 26, 2018
6f9e2fc
Add controllers, schema, defined routes
hnaseem1 Apr 26, 2018
259eb43
Create views, checked all routes are working fine
hnaseem1 Apr 26, 2018
235b359
finished seed, fixed associations and tables
behrami Apr 26, 2018
3ced33a
partials work
kjgamis Apr 26, 2018
4d87bb5
added homepage which shows all restaurants in db
behrami Apr 26, 2018
27ed545
add link to make new restaurant
kjgamis Apr 26, 2018
63be81e
added comments for athentication
hnaseem1 Apr 26, 2018
6034b18
added login and signup forms
JBert9000 Apr 26, 2018
7fe215a
changed url for menu
behrami Apr 26, 2018
a4492c1
add input to upload picture to new restaurant form
kjgamis Apr 26, 2018
24af46f
Merge pull request #1 from behrami/karen-partials
hnaseem1 Apr 26, 2018
22b6671
Merge pull request #3 from behrami/john
hnaseem1 Apr 26, 2018
ee5a4d5
added picture to rest
behrami Apr 26, 2018
eda4601
Merge branch 'master' into HasanNaseem
hnaseem1 Apr 26, 2018
b489b35
Merge pull request #2 from behrami/HasanNaseem
hnaseem1 Apr 26, 2018
25cf4cc
added picture to index page for product
behrami Apr 26, 2018
38f0b5a
styled picture
behrami Apr 26, 2018
7d5e5d0
Merge branch 'master' into behram
hnaseem1 Apr 26, 2018
554a23a
Merge pull request #4 from behrami/behram
hnaseem1 Apr 26, 2018
071f24f
Login Working
hnaseem1 Apr 26, 2018
688a39e
add container divs, basic styling, and modify labels
kjgamis Apr 27, 2018
a8cd15a
Merge pull request #5 from behrami/styling
hnaseem1 Apr 27, 2018
eb03cbd
add submit button
kjgamis Apr 27, 2018
bfdb04c
show page for restaurants shows info and menu
behrami Apr 27, 2018
3ee62ff
put everything in one partial view
behrami Apr 27, 2018
e624c3c
add table column to reservations
sclarke5 Apr 27, 2018
05b0ec0
Merge branch 'master' into behram-show-restaurant-info
behrami Apr 27, 2018
cae3012
Merge pull request #6 from behrami/behram-show-restaurant-info
behrami Apr 27, 2018
edbc364
Merge pull request #7 from behrami/add-tables
behrami Apr 27, 2018
1ebcfee
Merge pull request #8 from behrami/styling
behrami Apr 27, 2018
dfa6533
modify class names and scss of respective classes - add 'form class' …
kjgamis Apr 27, 2018
58741ab
fixed time in form
sclarke5 Apr 27, 2018
98bd542
Merge pull request #9 from behrami/time-hours
behrami Apr 27, 2018
dbbe507
add grid to show restaurant page and edit positioning on scss
kjgamis Apr 27, 2018
e9da3c8
add comments to indicate what controller methods do for each controller
kjgamis Apr 27, 2018
3f09f42
got reservations wokring with restaurant id
behrami Apr 27, 2018
e31c891
Merge pull request #10 from behrami/comments-to-controllers
kjgamis Apr 27, 2018
385bb0d
Merge pull request #11 from behrami/styling
kjgamis Apr 27, 2018
607bb9a
Authentication and Autherization done
hnaseem1 Apr 27, 2018
ab91cd0
Merge branch 'master' into behram-reservations
kjgamis Apr 27, 2018
20e0388
Merge pull request #12 from behrami/behram-reservations
kjgamis Apr 27, 2018
a31aecf
Merge branch 'master' into my-restaurants
hnaseem1 Apr 27, 2018
b19029a
Merge pull request #13 from behrami/my-restaurants
hnaseem1 Apr 27, 2018
ec388bd
added to layout and authentications
JBert9000 Apr 27, 2018
1d44cd9
Merge branch 'master' into layout
hnaseem1 Apr 27, 2018
3315e02
Merge pull request #14 from behrami/layout
hnaseem1 Apr 27, 2018
a3ecd97
fixed some bugs
hnaseem1 Apr 27, 2018
05b74a4
my reservations page done
hnaseem1 Apr 27, 2018
5722892
minor fixes
hnaseem1 Apr 27, 2018
5ad27e1
adds number of tables to reservations controller and form
sclarke5 Apr 27, 2018
9fbc81d
Merge pull request #15 from behrami/add-tables-to-form
hnaseem1 Apr 27, 2018
e8d4ed5
Merge pull request #16 from behrami/bug-fixes-my-reservations
hnaseem1 Apr 27, 2018
15f609e
everything works fine
hnaseem1 Apr 27, 2018
227631c
Merge pull request #17 from behrami/bug-fixes-my-reservations
hnaseem1 Apr 27, 2018
049e8b1
restricted time selection on for open hours in reservation form. rest…
behrami Apr 29, 2018
d7f37ff
changed title name
behrami Apr 29, 2018
2b78989
Merge pull request #18 from behrami/reservation-date-restriction
behrami Apr 29, 2018
2904d6d
changed seeds so user has table number in reservation
behrami Apr 29, 2018
8e31312
Merge pull request #19 from behrami/behram-seed-edit
behrami Apr 29, 2018
f3bbbab
some validations added
hnaseem1 May 9, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'
Expand All @@ -42,4 +43,3 @@ group :development do
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

184 changes: 97 additions & 87 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,115 +1,124 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.0.1)
actionpack (= 5.0.0.1)
nio4r (~> 1.2)
actioncable (5.0.7)
actionpack (= 5.0.7)
nio4r (>= 1.2, < 3.0)
websocket-driver (~> 0.6.1)
actionmailer (5.0.0.1)
actionpack (= 5.0.0.1)
actionview (= 5.0.0.1)
activejob (= 5.0.0.1)
actionmailer (5.0.7)
actionpack (= 5.0.7)
actionview (= 5.0.7)
activejob (= 5.0.7)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.0.1)
actionview (= 5.0.0.1)
activesupport (= 5.0.0.1)
actionpack (5.0.7)
actionview (= 5.0.7)
activesupport (= 5.0.7)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.0.1)
activesupport (= 5.0.0.1)
actionview (5.0.7)
activesupport (= 5.0.7)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (5.0.0.1)
activesupport (= 5.0.0.1)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.0.7)
activesupport (= 5.0.7)
globalid (>= 0.3.6)
activemodel (5.0.0.1)
activesupport (= 5.0.0.1)
activerecord (5.0.0.1)
activemodel (= 5.0.0.1)
activesupport (= 5.0.0.1)
activemodel (5.0.7)
activesupport (= 5.0.7)
activerecord (5.0.7)
activemodel (= 5.0.7)
activesupport (= 5.0.7)
arel (~> 7.0)
activesupport (5.0.0.1)
activesupport (5.0.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (7.1.4)
binding_of_caller (0.7.2)
bcrypt (3.1.11)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
builder (3.2.2)
byebug (9.0.6)
builder (3.2.3)
byebug (10.0.2)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
concurrent-ruby (1.0.2)
debug_inspector (0.0.2)
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.4)
debug_inspector (0.0.3)
erubis (2.7.0)
execjs (2.7.0)
globalid (0.3.7)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.6.0)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (4.2.1)
ffi (1.9.23)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
loofah (2.0.3)
json (1.8.6)
loofah (2.2.2)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.9.1)
multi_json (1.12.1)
nio4r (1.2.1)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
rack (2.0.1)
mail (2.7.0)
mini_mime (>= 0.1.1)
method_source (0.9.0)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
multi_json (1.13.1)
nio4r (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
rack (2.0.5)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.0.1)
actioncable (= 5.0.0.1)
actionmailer (= 5.0.0.1)
actionpack (= 5.0.0.1)
actionview (= 5.0.0.1)
activejob (= 5.0.0.1)
activemodel (= 5.0.0.1)
activerecord (= 5.0.0.1)
activesupport (= 5.0.0.1)
bundler (>= 1.3.0, < 2.0)
railties (= 5.0.0.1)
rails (5.0.7)
actioncable (= 5.0.7)
actionmailer (= 5.0.7)
actionpack (= 5.0.7)
actionview (= 5.0.7)
activejob (= 5.0.7)
activemodel (= 5.0.7)
activerecord (= 5.0.7)
activesupport (= 5.0.7)
bundler (>= 1.3.0)
railties (= 5.0.7)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.1)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6.0)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.0.0.1)
actionpack (= 5.0.0.1)
activesupport (= 5.0.0.1)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.0.7)
actionpack (= 5.0.7)
activesupport (= 5.0.7)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (11.3.0)
rdoc (4.2.2)
json (~> 1.4)
sass (3.4.22)
sass-rails (5.0.6)
rake (12.3.1)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rdoc (4.3.0)
sass (3.5.6)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
Expand All @@ -118,41 +127,42 @@ GEM
sdoc (0.4.2)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
spring (2.0.0)
spring (2.0.2)
activesupport (>= 4.2)
sprockets (3.7.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.0)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.12)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.5)
tzinfo (1.2.2)
sqlite3 (1.3.13)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (3.0.3)
uglifier (4.1.10)
execjs (>= 0.3.0, < 3)
web-console (2.3.0)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
websocket-driver (0.6.4)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
websocket-extensions (0.1.3)

PLATFORMS
ruby

DEPENDENCIES
bcrypt (~> 3.1.7)
byebug
coffee-rails (~> 4.1.0)
jbuilder (~> 2.0)
jquery-rails
rails (~> 5.0)
rails (~> 5.0.1)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
spring
Expand All @@ -161,4 +171,4 @@ DEPENDENCIES
web-console (~> 2.0)

BUNDLED WITH
1.11.2
1.16.1
3 changes: 3 additions & 0 deletions app/assets/javascripts/reservations.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/restaurants.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/sessions.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/users.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
47 changes: 47 additions & 0 deletions app/assets/stylesheets/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
$font-family-helvetica: Helvetica, Arial, sans-serif;

$color-black: #000;
$color-blue: #016297;

html{
box-sizing: border-box;

body {
position: relative;

a {
color: $color-black;
text-decoration: none;
}

a:hover {
color: $color-blue;
}

h1, h2, h3, h4, h5, a {
font-family: $font-family-helvetica;
font-weight: 200;
}

form {
h3 {
font-size: 0.75em;
}
}

header {
display: grid;
grid-template-columns: 1fr 1fr;

nav {
justify-self: right;
padding: 15px;
}
}

footer {
text-align: center;
}
}

}
7 changes: 7 additions & 0 deletions app/assets/stylesheets/reservations.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Place all the styles related to the reservations controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

.new-reservation {

}
Loading