Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
7e4d667
created models for situdown
Buraisx Dec 4, 2017
389d43e
Fix reservation association in user model
ericmarrone Dec 4, 2017
907557a
added seeded data
Buraisx Dec 4, 2017
e14d9cf
added more seed data, added migration to change time to datetime. RE…
Buraisx Dec 4, 2017
6356f8b
routes added
bluepeartree Dec 4, 2017
0d9376f
added controllers
Buraisx Dec 4, 2017
a74809e
sessions controller added
bluepeartree Dec 4, 2017
f656675
Revert "routes added"
ericmarrone Dec 4, 2017
9b7ecab
Restaurant controller delete
ericmarrone Dec 4, 2017
3af8bff
Add restaurant controller
ericmarrone Dec 4, 2017
79eea0d
added users controller
Buraisx Dec 4, 2017
7887748
Add to restaurant controller actions
ericmarrone Dec 4, 2017
49b3517
Add routes back to routes.rb
ericmarrone Dec 4, 2017
ae91f40
added views for users and sessions
blevy115 Dec 5, 2017
6efe70d
sessions routes added
bluepeartree Dec 5, 2017
b4626a8
added s to user routes
Buraisx Dec 5, 2017
62f1e16
changed session to resource and added application controller methods
blevy115 Dec 5, 2017
d1d5bc9
Add private label to app controller
ericmarrone Dec 5, 2017
bc019af
fixed some errors in user controller
Buraisx Dec 5, 2017
a55021c
authentication added
bluepeartree Dec 5, 2017
6245e50
added authorization for reservations + users
bluepeartree Dec 5, 2017
569eb21
added authorization for restaurants
bluepeartree Dec 5, 2017
18a6435
added reservation controller methods
blevy115 Dec 5, 2017
5ae2323
ensure user owns restaurant/reservation before accepting changes
bluepeartree Dec 5, 2017
dc858c6
added User and restaurant views
Buraisx Dec 5, 2017
a47f75e
Merge branch 'william' into sharon
Buraisx Dec 5, 2017
8b6c0bd
Merge pull request #1 from Buraisx/sharon
Buraisx Dec 5, 2017
6326443
added time formatting
Buraisx Dec 5, 2017
7c3b58f
Add availability method to reservation model
ericmarrone Dec 5, 2017
2cd4dde
completed availability method
blevy115 Dec 5, 2017
f89f695
added content to reservation views
Buraisx Dec 5, 2017
0f977b5
Merge pull request #2 from Buraisx/brandon
ericmarrone Dec 5, 2017
a9bf5b4
Merge branch 'master' into william
ericmarrone Dec 5, 2017
a4e5a3e
Merge pull request #3 from Buraisx/william
ericmarrone Dec 5, 2017
73669ca
fixed reservation error
Buraisx Dec 5, 2017
388e07f
added show reservations to user page
blevy115 Dec 5, 2017
944836d
added a little bit of styling
Buraisx Dec 5, 2017
3b53f97
Merge branch 'master' into william
Buraisx Dec 5, 2017
f81bdcf
added error message to availability
blevy115 Dec 5, 2017
4af8d76
Merge pull request #4 from Buraisx/master
bluepeartree Dec 5, 2017
884b391
Add partial view for restaurants, add new migration for restaurant cu…
ericmarrone Dec 5, 2017
cc9d8db
added form to create reservations
bluepeartree Dec 5, 2017
c48a219
Merge branch 'master' into sharon
blevy115 Dec 5, 2017
c723e91
Merge pull request #5 from Buraisx/sharon
blevy115 Dec 5, 2017
bcd9052
Fix user errors in user controller and show page
ericmarrone Dec 5, 2017
8f7fb21
Add root route and add restaurant form partial view
ericmarrone Dec 5, 2017
f6260b0
Merge branch 'master' into eric
ericmarrone Dec 5, 2017
b885505
Merge pull request #6 from Buraisx/eric
ericmarrone Dec 5, 2017
9f7fe1a
worked on availability and fixing views
blevy115 Dec 5, 2017
9893c65
Merge pull request #7 from Buraisx/brandon
ericmarrone Dec 5, 2017
7f46d98
added navbar
Buraisx Dec 5, 2017
19fb98a
Merge branch 'master' into william
Buraisx Dec 5, 2017
52056da
Merge pull request #8 from Buraisx/william
Buraisx Dec 5, 2017
cdb4da9
fixed path issues in navbar
Buraisx Dec 5, 2017
f1922bd
fixed reservation form
blevy115 Dec 5, 2017
ae02a2f
Merge pull request #9 from Buraisx/brandon
ericmarrone Dec 5, 2017
8357f46
Merge branch 'william'
Buraisx Dec 5, 2017
b93c161
Merge pull request #10 from Buraisx/master
bluepeartree Dec 6, 2017
fdbba1b
added functionality to reservation form
bluepeartree Dec 6, 2017
a923d79
fixed edit reservation link on user page
bluepeartree Dec 6, 2017
2802b06
added edit reservation form
bluepeartree Dec 6, 2017
5faddbf
update reservation form urls
bluepeartree Dec 6, 2017
6e1b5c0
allowed reservation form to be prepopulated from restaurant page
blevy115 Dec 6, 2017
fbea08d
Add form to restaurants show page
ericmarrone Dec 6, 2017
f572dd9
fixed forms but not availability method
bluepeartree Dec 6, 2017
671b138
Remove new datetime picker on form due to error
ericmarrone Dec 6, 2017
c6c0f0e
Added some pics to seed data. Run db:reset. Fixed error for path in l…
ericmarrone Dec 6, 2017
c589fe1
added dropdown to the navbar
Buraisx Dec 6, 2017
25c9280
updated reservations controller to account for datetime_select
bluepeartree Dec 6, 2017
64297a0
Add to reservations controller, edit action to make edit reservation …
ericmarrone Dec 6, 2017
66dfb3e
Capitalize user name on app layout. Add padding to restaurant sections
ericmarrone Dec 6, 2017
53866a1
added sharon to brandon
blevy115 Dec 6, 2017
01d8260
added links to move around pages
blevy115 Dec 6, 2017
f3bcc36
added dropdown, and edited some styling changes
Buraisx Dec 6, 2017
3eae940
removed random class
Buraisx Dec 6, 2017
b76c15a
Fix issues with edit controller
ericmarrone Dec 6, 2017
8c6049e
Merge pull request #11 from Buraisx/eric
ericmarrone Dec 6, 2017
7251d25
Merge branch 'master' into brandon
ericmarrone Dec 6, 2017
84c0008
Merge pull request #12 from Buraisx/brandon
ericmarrone Dec 6, 2017
2a8a6f5
Change reservation form to include to date time dropdown.
ericmarrone Dec 6, 2017
6c9ee81
removed logout button
Buraisx Dec 6, 2017
52de058
Merge branch 'master' into william
Buraisx Dec 6, 2017
9d341e4
Merge pull request #13 from Buraisx/william
Buraisx Dec 6, 2017
bbd3ddc
add reservation functionality works
bluepeartree Dec 6, 2017
e2592b8
restaurant-specific reservation form fixed
bluepeartree Dec 6, 2017
9a69a9b
fixed reservation display to include time
bluepeartree Dec 6, 2017
b1d99f1
fixed edit reservation page
bluepeartree Dec 6, 2017
e11d386
Fix error display in reservations controller. Added restaurant boolea…
ericmarrone Dec 6, 2017
a43e0de
Merge branch 'master' into eric
ericmarrone Dec 6, 2017
02ad4db
Merge pull request #14 from Buraisx/eric
ericmarrone Dec 6, 2017
0ed297c
Merge pull request #15 from Buraisx/master
bluepeartree Dec 6, 2017
1379b23
update user reservation page
bluepeartree Dec 6, 2017
6f16da8
added delete restaurant function
bluepeartree Dec 6, 2017
6bfce25
added search bar for restaurant name/type
blevy115 Dec 6, 2017
015ae38
added redirect to signup
Buraisx Dec 6, 2017
9b06c46
Merge branch 'william' into sharon
Buraisx Dec 6, 2017
5a3cdfe
Merge pull request #16 from Buraisx/sharon
Buraisx Dec 6, 2017
679a9b6
Merge branch 'william' into brandon
Buraisx Dec 6, 2017
21accad
Merge pull request #17 from Buraisx/brandon
Buraisx Dec 6, 2017
a30c427
fixed if ends
Buraisx Dec 6, 2017
c224458
Merge pull request #18 from Buraisx/william
Buraisx Dec 6, 2017
6042935
added address to search bar
blevy115 Dec 6, 2017
063f8d0
Change routes, controllers and views to allow reservations on restaur…
ericmarrone Dec 6, 2017
0daa15f
Merged master in with Eric
ericmarrone Dec 6, 2017
29e4c51
Removed reservation link from user page
ericmarrone Dec 6, 2017
ce587d1
Merge pull request #20 from Buraisx/eric
ericmarrone Dec 6, 2017
1a59204
added list of reservation for restaurent to show for owner
blevy115 Dec 6, 2017
55a987b
added searchbar to navbar
Buraisx Dec 6, 2017
1454c72
Merge branch 'master' into brandon
blevy115 Dec 6, 2017
8a8995f
Merge branch 'master' into brandon
blevy115 Dec 6, 2017
a4ca2cb
Merge pull request #21 from Buraisx/brandon
blevy115 Dec 6, 2017
85f8fc9
Merge branch 'master' into william
Buraisx Dec 6, 2017
5ad343e
Merge pull request #22 from Buraisx/william
Buraisx Dec 6, 2017
7e0dc80
removed reservation link from user
Buraisx Dec 6, 2017
f07d0a9
changed open hours layout
blevy115 Dec 6, 2017
fe9d82d
added function of party size affecting reservation time
blevy115 Dec 7, 2017
8dc9285
added validation so reservation cannot be in the past
blevy115 Dec 7, 2017
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 @@ -2,7 +2,7 @@ source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.1'
gem 'rails', '~> 5.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
Expand All @@ -22,7 +22,7 @@ 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 Down
178 changes: 94 additions & 84 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.6)
actionpack (= 5.0.6)
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.6)
actionpack (= 5.0.6)
actionview (= 5.0.6)
activejob (= 5.0.6)
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.6)
actionview (= 5.0.6)
activesupport (= 5.0.6)
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.6)
activesupport (= 5.0.6)
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.6)
activesupport (= 5.0.6)
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.6)
activesupport (= 5.0.6)
activerecord (5.0.6)
activemodel (= 5.0.6)
activesupport (= 5.0.6)
arel (~> 7.0)
activesupport (5.0.0.1)
activesupport (5.0.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (7.1.4)
binding_of_caller (0.7.2)
bcrypt (3.1.11)
binding_of_caller (0.7.3)
debug_inspector (>= 0.0.1)
builder (3.2.2)
byebug (9.0.6)
builder (3.2.3)
byebug (9.1.0)
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.3)
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.18)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.1)
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.1.1)
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.10.3)
multi_json (1.12.2)
nio4r (2.1.0)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
rack (2.0.3)
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.6)
actioncable (= 5.0.6)
actionmailer (= 5.0.6)
actionpack (= 5.0.6)
actionview (= 5.0.6)
activejob (= 5.0.6)
activemodel (= 5.0.6)
activerecord (= 5.0.6)
activesupport (= 5.0.6)
bundler (>= 1.3.0)
railties (= 5.0.6)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.1)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.0.0.1)
actionpack (= 5.0.0.1)
activesupport (= 5.0.0.1)
railties (5.0.6)
actionpack (= 5.0.6)
activesupport (= 5.0.6)
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.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rdoc (4.3.0)
sass (3.5.3)
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.4)
thread_safe (~> 0.1)
uglifier (3.0.3)
uglifier (4.0.1)
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.0)
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.0
Binary file added app/assets/images/landing-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/seat-yourself.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/seatyourself.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/
15 changes: 0 additions & 15 deletions app/assets/stylesheets/application.css

This file was deleted.

68 changes: 68 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_tree .
*= require_self
*/
.container-fluid{
padding:0px;
font-family: 'Open Sans', sans-serif;
}
.row{
margin:0;
}

nav{
border-radius:0px;
border-bottom: 1px solid black;
.btn-primary{
color:white;
a{
color:white;
}
}
.form-control{
margin-top:6px;
}
.navbar-form{
margin:0;
}
.navbar-text{
margin-bottom:0px;
}
.dropdown{
display:inline-block;
}
.navbar-brand{
font-family: 'Pacifico', cursive;
padding: 0;
img{
width:50px;
height:50px;
display:inline;
}
}
.navbar-right{
margin-right:0px;
}
.btn{
margin-top:8px;
margin-right:10px;
border: 1px solid black;
}
a{
color:black;
}
a:hover{
text-decoration:none;
}
}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/reservations.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// 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/
6 changes: 6 additions & 0 deletions app/assets/stylesheets/restaurants.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Place all the styles related to the restaurants controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.restaurant {
padding: 20px;
}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/sessions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the sessions controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
Loading