Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beeyonce #5

Open
wants to merge 209 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
f80947a
added erd to images
annamm77 May 2, 2016
1ac78f6
Set up models, controllers, schema, index route
digivava May 2, 2016
98d02d2
Merge branch 'master' of github.com:vconklin/betsy
digivava May 2, 2016
742b943
Added category and description columns to products table
digivava May 3, 2016
bea551a
Added method for category and index for products and view for product…
nlcurry May 3, 2016
6e178ed
Seeds created
annamm77 May 3, 2016
f08fb41
changed seed to match
nlcurry May 3, 2016
24fa2f0
Deleted some stuff
nlcurry May 3, 2016
a09c783
Show page for product done
nlcurry May 3, 2016
9bc2f94
added a cart controller and cart_id to order and order item
rishallen May 3, 2016
6f67346
Merge branch 'master' of github.com:vconklin/betsy
rishallen May 3, 2016
95d388a
not sure
rishallen May 3, 2016
2418fff
Added custom cart route
digivava May 3, 2016
089c6d0
Merge branch 'master' into cart
digivava May 3, 2016
4fba080
made changes in the order controller
rishallen May 3, 2016
bd53929
Started on sign up page. mostly done
nlcurry May 3, 2016
08227e7
Added log in feature for application controller with routes
nlcurry May 3, 2016
01289e4
Created session controller for log in session. Log in and Sign up cap…
nlcurry May 3, 2016
b29f09a
Merge branch 'master' of github.com:vconklin/betsy
nlcurry May 3, 2016
7edabbb
root route now creates a session before redirecting to products index…
digivava May 3, 2016
4ffd797
working to combine order and cart functionality. modified our purchas…
rishallen May 4, 2016
cfbba81
Got rid of all files associated to carts model and controller
nlcurry May 4, 2016
5f581a6
Added associations and validations for the models and created an asso…
nlcurry May 4, 2016
24f6c93
add associations between product and review models
annamm77 May 3, 2016
a0fdebc
nested reviews routes in products
annamm77 May 3, 2016
d0256c3
link to reviews#new from products#show
annamm77 May 3, 2016
4c2acd5
add name and text to reviews model
annamm77 May 3, 2016
ace0d9f
Review submission form functional
annamm77 May 3, 2016
46ee8db
Formatted product#show page review. Added overall stars for product#show
annamm77 May 4, 2016
9a9644a
overall stars only displays if reviews are present, declared in produ…
annamm77 May 4, 2016
172cdde
product#show review created_at date shows next to review
annamm77 May 4, 2016
ae4c952
merge conflict resolution
annamm77 May 4, 2016
d65d530
Val and I worked on order methods and functionality
rishallen May 4, 2016
9c34232
refactoring product#show for reviews
annamm77 May 4, 2016
ae4fc74
Deleted cart controller stuff
nlcurry May 4, 2016
c3f3654
Added status column for products and changed seed file to reflect that
nlcurry May 4, 2016
dabb4c8
updated orders table
rishallen May 4, 2016
9ef34be
added some stuff
rishallen May 4, 2016
879f045
changed local variable to an instance variable
rishallen May 5, 2016
94a0a83
merge changes
rishallen May 5, 2016
621625b
I don't really know what's going on but for some reason git is insist…
digivava May 5, 2016
9587729
Merging in so that cart branch can now have access to master's schema
digivava May 5, 2016
6fddc43
Made it so cart-viewing is done through orderitems controller, so tha…
digivava May 5, 2016
d4ffb0b
Still trying to get it so products are added to the cart. Have most o…
digivava May 5, 2016
ba7125d
Deleted commented-out code that was irrelevant
digivava May 5, 2016
206dcf8
Added bootstrap html section
nlcurry May 5, 2016
4b533e8
deleted cart controller
nlcurry May 5, 2016
4e95c32
Added images for products
nlcurry May 5, 2016
a70ab15
follow schema
nlcurry May 5, 2016
c6b09fd
Got the cart persisting through the session but the product_id isn't …
digivava May 5, 2016
560af02
SO FREAKING CLOSE. we now have figured out that the new order_item is…
digivava May 5, 2016
2021dc2
FINALLY. got it so the cart has the right associated product. the pro…
digivava May 5, 2016
b587c68
Cart shows name of product, price, and quantity. Currently cannot upd…
digivava May 5, 2016
325b3c8
Merge branch 'cart'
digivava May 5, 2016
d798552
Realized add_cart_path was pointless, already covered by cart_path, s…
digivava May 5, 2016
13f51c0
added error messages in the methods for orders
rishallen May 5, 2016
84317db
You can now remove items from the cart
digivava May 5, 2016
bac8aab
Merge branch 'cart'
digivava May 5, 2016
d00abc3
Added products list view page for each signed in user
nlcurry May 5, 2016
9c21adb
forgot to add this. see last commit
nlcurry May 5, 2016
071d109
merging routes
nlcurry May 5, 2016
a976c1b
Merge branch 'master' of github.com:vconklin/betsy
digivava May 5, 2016
7b805d7
Quantity dropdown now shows
digivava May 5, 2016
93657cb
merge changes
rishallen May 6, 2016
690e82c
Quantity dropdown menu now has numbers 1 through whatever number is …
digivava May 6, 2016
e34ffc2
merging purchase info
rishallen May 6, 2016
320f19e
No longer can add out-of-stock items to cart
digivava May 6, 2016
ce2f7d6
Product edit functionality. Also added controller filter, but doesn't…
nlcurry May 6, 2016
6cffe69
edit and new product form made plus added image column to database
nlcurry May 6, 2016
b815ff1
Added images to products
nlcurry May 6, 2016
0e2b3aa
Merge branch 'master' of github.com:vconklin/betsy
nlcurry May 6, 2016
cc384bd
Working on fixtures and tests for oder_items model
digivava May 6, 2016
30f790e
changes on categories
rishallen May 6, 2016
eb1cfcf
yes
rishallen May 6, 2016
e6bb59a
Added methods for new products
nlcurry May 6, 2016
9a42190
Added categories model and join table
nlcurry May 6, 2016
89dad26
Merge branch 'productpage'
nlcurry May 6, 2016
075e8e8
nothings changed
rishallen May 6, 2016
ccaa82d
Dropdown menu update button now updates cart with correct quantity
digivava May 6, 2016
b5163d5
Dropdown menu for quantity now has blank default value for less confu…
digivava May 6, 2016
2abce32
Cart now shows total cost
digivava May 6, 2016
332b5df
Cart now shows text saying Only 1 Left In Stock in place of change-qu…
digivava May 6, 2016
356fe00
made changes
rishallen May 6, 2016
9b4a1b8
Merge branch 'cart'
digivava May 6, 2016
485abe2
Pictures for seed
nlcurry May 6, 2016
75d6222
Merge branch 'categories'
rishallen May 6, 2016
34973da
Merge branch 'purchasepage'
rishallen May 6, 2016
70a85e7
images added to seed
digivava May 6, 2016
6ca3e7b
Merge branch 'master' of github.com:vconklin/betsy
rishallen May 6, 2016
53830c5
changes made
rishallen May 6, 2016
8b9aaea
pseudocode test cases for review
annamm77 May 5, 2016
256708a
some tests set up to pass
annamm77 May 6, 2016
86abb0d
reviews testing in progress
annamm77 May 6, 2016
a816510
tests for review model
annamm77 May 6, 2016
57e9776
added simplecov
annamm77 May 6, 2016
a5478b0
reviews controller#new test
annamm77 May 6, 2016
b266f5e
testing create
annamm77 May 6, 2016
5155341
added minitest and simplecov gems
annamm77 May 6, 2016
61dac66
Reset master branch back to before I added the image seeds, and now a…
digivava May 7, 2016
5d630f9
Commented out order.rb validations because they were the thing causin…
digivava May 7, 2016
da5e1ec
Merge branch 'master' of github.com:vconklin/betsy
digivava May 7, 2016
4d3010b
Changes to be committed:
rishallen May 7, 2016
4448bb6
completed the purchase functionality. Added a confrimation page that …
rishallen May 7, 2016
1a3f519
gemfile.lock conflict resolved
annamm77 May 9, 2016
f70b1db
shows sold out next to stock, cart link removed if out of stock
annamm77 May 9, 2016
819db7b
Website now has low-budget tiling honeycomb background image yaaaay
digivava May 10, 2016
0ba4f45
Products index page now has nice-looking thumbnails... wish I could f…
digivava May 10, 2016
b29708f
Moved h1 to application layout template, changed the login welcome me…
digivava May 10, 2016
3daee6a
Top nav menu now on every page, bigger font
digivava May 10, 2016
13aa524
Added price to products index cards and adjusted CSS on topnav links
digivava May 10, 2016
7ba46b0
Added fancylink class for main links in show page, and also added hom…
digivava May 10, 2016
8ddcc28
Removed back to shop link from cart now that the topnav has a link to…
digivava May 10, 2016
20fb232
Merge branch 'master' of github.com:vconklin/betsy
digivava May 10, 2016
cc243e0
On branch purchasepage
rishallen May 10, 2016
5778b27
Changes to be committed:
rishallen May 10, 2016
e3c837e
Merge branch 'master' of github.com:vconklin/betsy
rishallen May 10, 2016
c639169
products index cards now show up in columns
digivava May 10, 2016
b1b3aa2
Merge branch 'styling'
digivava May 10, 2016
739f09a
Switched location of Add to Cart and Add A Review link for better UX …
digivava May 10, 2016
1b4bdf9
Made Proceed to Checkout link fancylink, and deleted duplicate links
digivava May 10, 2016
1cc0fa8
Removed go back to product link since Home button is doing the same t…
digivava May 10, 2016
b7438cf
Added images to seed and adjusted font size of products index cards s…
digivava May 10, 2016
5ea4414
checks if current_user == product user, but is still creating review.…
annamm77 May 10, 2016
953e720
create else needs to render to an actual place
annamm77 May 10, 2016
43d8f2c
doesnt save if user_id == current_user.id yayyy
annamm77 May 10, 2016
61ca666
Added more content to seed. Products editing or adding
nlcurry May 10, 2016
68bc6ce
Merge branch 'master' of github.com:vconklin/betsy
nlcurry May 10, 2016
24eed28
Added flash error display on application.html.erb.
annamm77 May 10, 2016
4be2ad9
Fiddling around with sign-up page, trying to get it to not act like t…
digivava May 10, 2016
2728155
shows quantity available for products
nlcurry May 10, 2016
fa9951d
merge with master
annamm77 May 10, 2016
7c02a8b
changed verbage
annamm77 May 10, 2016
2963b7f
Merge branch 'cant_review_own_products'
annamm77 May 10, 2016
bff7258
Removed if-else logic from product show page
digivava May 10, 2016
ff0728a
Merge branch 'master' of github.com:vconklin/betsy
digivava May 10, 2016
f5b93a0
bug fix for users/product.html.erb
annamm77 May 10, 2016
7f94129
Login now required for seeing categories page
digivava May 10, 2016
f29f8db
Merge branch 'master' of github.com:vconklin/betsy
digivava May 10, 2016
68f3dbf
simplecov works now
annamm77 May 10, 2016
4a8ad4b
Merge branch 'master' of github.com:vconklin/betsy
annamm77 May 10, 2016
af06da6
removed application helper
annamm77 May 10, 2016
fdee899
Fixed bug where guests were not able to leave reviews because of same…
digivava May 10, 2016
2817880
Merge branch 'master' of github.com:vconklin/betsy
digivava May 10, 2016
c2e1774
cannot view other users my products lists
annamm77 May 11, 2016
0b536d7
bug fix for users with no products
annamm77 May 11, 2016
530ef97
bug fix for viewing user's own products
annamm77 May 11, 2016
55c4062
Added 3 methods to the fulfillment page
rishallen May 11, 2016
768e69c
made methods for fulfillment page.
rishallen May 11, 2016
bae6d5e
added test to reviewscontroller for post create working or not
digivava May 11, 2016
47f8b45
Controller test for create method
digivava May 12, 2016
a1baf0d
Merge branch 'master' of github.com:vconklin/betsy
digivava May 12, 2016
110cfac
Made it so before_action on userscontroller is only for product actio…
digivava May 12, 2016
b5ad5b9
Merchant name on products index now links to users-show
digivava May 12, 2016
63bd0a4
Added class merchantname to link so the merchant's name is not so huge
digivava May 12, 2016
72e3f1a
can now view each individual merchant's store
digivava May 12, 2016
71c43b6
Fixed merchantname font size, and all font sizes, because bootstrap w…
digivava May 12, 2016
5a50965
categories scheme change, seed file now has product-category relations
annamm77 May 12, 2016
d641a02
Added functionality of the order fulsillment page
rishallen May 12, 2016
d928f7b
fixed merge issue
rishallen May 12, 2016
10b2a6d
Search drop down works
annamm77 May 12, 2016
80a4748
drop down alphabetized
annamm77 May 12, 2016
62c0fba
merge conflicts
annamm77 May 12, 2016
616f48f
image on products list is no longer GIGANTIC
digivava May 12, 2016
501bae8
Actually, made images on merchant product list even smaller
digivava May 12, 2016
dcdf3ce
changed config's image compiling preferences and CSS syntax for backg…
digivava May 12, 2016
cf51a2e
still working on production environment config for deploy
digivava May 12, 2016
fe549ce
shows error if @products is empty when seraching by category
annamm77 May 12, 2016
e3db6d7
Merge branch 'master' of github.com:vconklin/betsy
annamm77 May 12, 2016
c50db30
heroku config funtimes
digivava May 12, 2016
1ea6827
Merge branch 'master' of github.com:vconklin/betsy
digivava May 12, 2016
2ec80e4
still messing with production config til heroku works
digivava May 12, 2016
2262d12
fixing bg image for development
digivava May 12, 2016
fc32ec4
come on heroku work
digivava May 12, 2016
675b936
more heroku fun
digivava May 12, 2016
294c825
fixed images with jpeg ending so that they are now jpg which rails re…
digivava May 12, 2016
7d55a17
changed seed files to have jpg ending instead of jpeg
digivava May 13, 2016
831c1e3
attempting to get background image working
digivava May 13, 2016
5b93cde
products list page now has categories for each product
digivava May 13, 2016
991064d
fixed seeding category for beyonce album
annamm77 May 13, 2016
63d21f3
Merge branch 'master' of github.com:vconklin/betsy
annamm77 May 13, 2016
454931c
Individual store pages now show name of merchant in heading so you kn…
digivava May 13, 2016
10a1937
username autofills add review name textbox if current_user is present
annamm77 May 13, 2016
bb634d9
Fixed error where logged-in users couldn't view individual stores
digivava May 13, 2016
8adcea0
Merge branch 'categories'
digivava May 13, 2016
ff589ab
no commas on last category in list of categories for each product, on…
digivava May 13, 2016
ffae0bc
Alphabetized dropdown menu of categories now on update-product form
digivava May 13, 2016
9786cf4
Merge branch 'master' into categories
digivava May 13, 2016
223db67
added a method for shipping and also fixed some errors in the other f…
rishallen May 13, 2016
4a7f81a
Merge branch 'orderfullfillmentpage'
rishallen May 13, 2016
14f1dc6
Merge branch 'master' of github.com:vconklin/betsy
rishallen May 13, 2016
7e09b7d
user can now view individual orders
annamm77 May 13, 2016
fe06377
now displays correct user info
annamm77 May 13, 2016
250cbdc
shows correct info
annamm77 May 13, 2016
f1182a6
cannot view other users order fulfilment pages
annamm77 May 13, 2016
2db2346
shows placeholder product img if no img is in the db
annamm77 May 13, 2016
1699a7f
Fixed spelling error on edit products page, and got it so categories …
digivava May 13, 2016
2501733
search button css
annamm77 May 13, 2016
bab0177
center top title nav bar and greeting
annamm77 May 13, 2016
2a84610
completed the functionality of the order fulfillment page. Added Link…
rishallen May 13, 2016
51fbb91
bottom nav css
annamm77 May 13, 2016
475abea
no products to show
annamm77 May 13, 2016
7890b1a
submit button css
annamm77 May 13, 2016
a96a004
bug fix for new user errors
annamm77 May 13, 2016
101496f
You can now successfully edit categories
digivava May 13, 2016
c94d540
Merge branch 'categories'
digivava May 13, 2016
71e20b4
Merge branch 'master' of github.com:vconklin/betsy
rishallen May 13, 2016
611b388
bottom nav for store
annamm77 May 13, 2016
001b628
Merge branch 'master' of github.com:vconklin/betsy
annamm77 May 13, 2016
901edfc
validation fix
rishallen May 13, 2016
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
18 changes: 17 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,22 @@ 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'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Testing

group :test do
gem 'minitest'
gem 'minitest-reporters'
gem 'simplecov', require: false
end

gem 'pretty_time', '~> 0.2.2'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand All @@ -40,8 +49,15 @@ end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
gem 'better_errors'
gem 'pry-rails'
gem 'binding_of_caller'
gem 'rails-erd'

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the Bullet gem in the Betsy project and it helped me learn about what was going on in the back end in terms of what queries were happening to load each page. Totally not required, but I found it really interesting so I thought I'd share.
http://railscasts.com/episodes/372-bullet

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

group :production do
gem 'rails_12factor'
end
55 changes: 55 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,19 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
ansi (1.5.0)
arel (6.0.3)
bcrypt (3.1.11)
better_errors (2.1.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.2.2)
byebug (8.2.5)
choice (0.2.0)
coderay (1.1.1)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
Expand All @@ -50,10 +58,12 @@ GEM
coffee-script-source (1.10.0)
concurrent-ruby (1.0.1)
debug_inspector (0.0.2)
docile (1.1.5)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
activesupport (>= 4.1.0)
hashie (3.4.4)
i18n (0.7.0)
jbuilder (2.4.1)
activesupport (>= 3.0.0, < 5.1)
Expand All @@ -67,15 +77,30 @@ GEM
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.0)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0221)
mini_portile2 (2.0.0)
minitest (5.8.4)
minitest-reporters (1.0.2)
ansi
builder
minitest (>= 5.0)
powerbar
multi_json (1.11.3)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
pg (0.18.4)
powerbar (1.0.17)
hashie (>= 1.1.0)
pretty_time (0.2.2)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-rails (0.3.4)
pry (>= 0.9.10)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
Expand All @@ -96,8 +121,18 @@ GEM
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-erd (1.4.7)
activerecord (>= 3.2)
activesupport (>= 3.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (4.2.6)
actionpack (= 4.2.6)
activesupport (= 4.2.6)
Expand All @@ -106,6 +141,7 @@ GEM
rake (11.1.2)
rdoc (4.2.2)
json (~> 1.4)
ruby-graphviz (1.2.2)
sass (3.4.22)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
Expand All @@ -116,6 +152,12 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simplecov (0.8.2)
docile (~> 1.1.0)
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
slop (3.6.0)
spring (1.7.1)
sprockets (3.6.0)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -143,18 +185,31 @@ PLATFORMS
ruby

DEPENDENCIES
bcrypt (~> 3.1.7)
better_errors
binding_of_caller
byebug
coffee-rails (~> 4.1.0)
jbuilder (~> 2.0)
jquery-rails
minitest
minitest-reporters
pg (~> 0.15)
pretty_time (~> 0.2.2)
pry-rails
rails (= 4.2.6)
rails-erd
rails_12factor
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
simplecov
spring
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)

RUBY VERSION
ruby 2.3.0p0

BUNDLED WITH
1.12.1
Binary file added app/assets/images/airbeyonce.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/beachwave-extension.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/becoming-beyonce.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/bee-costume.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/beecool.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/beeshack.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/beevenom.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/beeyonce_erd.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/bey-hive.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/beyonce-albums.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/beyonce-barbie.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/beyonce-heat.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/beyonce-sticker.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/beyonces-tears.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/comingsoon.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/honeycomb-bg.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/honeycomb-comb.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/larvae.jpeg
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/lemonade.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/lipbalm.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/pixy-stix.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/royal-jelly.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/stinger.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/toothpaste.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/wasp-plush.jpg
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/categories.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/order_items.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/orders.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/products.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/reviews.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.

120 changes: 120 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
html {
/* because bootstrap apparently messes with this */
font-size: 16px;
}

body {
background-image: asset-url('honeycomb-bg.jpg');
}

a {
color: black;
text-decoration: underline;
}

ul {
list-style-type: none;
}

h1.main-title {
font-size: 6rem;
font-family: 'Sacramento', cursive;
text-align: center;
}

.topnav {
text-align: center;
}

.topnav a {
font-size: 2.5rem;
font-family: 'Sacramento', cursive;
margin: 2rem;
}

.greeting {
font-size: 1.5rem;
text-align: center;
}

.bottomnav {
text-align: center;
}

.search {
text-align: center;
}

.nothinghere {
font-size: 2rem;
text-align: center;
}

.bottomnav a {
font-size: 1.5rem;
font-family: 'Sacramento', cursive;
margin: 2rem;
}

.fancylink {
font-family: 'Sacramento', cursive;
font-size: 2rem;
}

.container ul {
display: inline;
}

.thumbnail li {
text-align: center;
display: block;
}

.caption a {
font-size: 1.5rem;
}

.caption a:hover {
color: yellow;
}

.price {
display: block;
font-size: 1.25rem;
font-family: 'Sacramento', cursive;
font-weight: bold;
}

a.merchantname {
font-size: 1rem;
}

form.productsearch {
font-size: 2rem;
}

input[type=submit] {
padding:2px 5px;
background:lightgray;
border:1px lightgray solid;
cursor:pointer;
-webkit-border-radius: 5px;
border-radius: 5px;
font-size: 1rem;
}

/*
* 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
*/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/categories.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the categories controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/order_items.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the OrderItems controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/orders.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the Orders controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
5 changes: 5 additions & 0 deletions app/assets/stylesheets/products.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Place all the styles related to the Products controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

/*** INDEX ***/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/reviews.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the Reviews controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
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/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/sessions.scss~HEAD
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/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/users.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the Users controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
12 changes: 12 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
helper_method :current_user

def current_user
@user ||= User.find_by(id: session[:user_id])
end

# def require_login
# if current_user.nil?
# flash[:error] = "You must be logged in to view this section"
# redirect_to login_path
# end
# end
end
Loading