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

Leah - Water #52

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
26bf60e
Initial Rails Setup
scottzec Nov 11, 2020
b76497e
validations
scottzec Nov 15, 2020
78bcd84
views
scottzec Nov 15, 2020
fd197ff
validation tests added and passing
scottzec Nov 15, 2020
634df9d
prep for layout template
scottzec Nov 15, 2020
ec5c551
app and works#index html
scottzec Nov 15, 2020
bdacb6c
homepages#index html framework
scottzec Nov 15, 2020
c75a27b
works#index html framework
scottzec Nov 15, 2020
de97ac5
works form works show user show html base
scottzec Nov 15, 2020
66fefc5
css
scottzec Nov 15, 2020
48453dd
works listed by cat
scottzec Nov 16, 2020
052aa61
change works index html buttons to erb
scottzec Nov 16, 2020
4726c3c
works show
scottzec Nov 16, 2020
d568689
form with css new work
scottzec Nov 16, 2020
2e85acd
spotlight finally working
scottzec Nov 16, 2020
2096d79
css works on top 10
scottzec Nov 16, 2020
809618e
spotlight tests, 1 still not passing
scottzec Nov 16, 2020
91f3115
top 10 testing
scottzec Nov 16, 2020
99a1cef
added fixtures
scottzec Nov 16, 2020
e02eb02
rollback successful after migration disaster, saving schema
scottzec Nov 16, 2020
73cb04a
after updating fixtures to correct data type for publication_year, te…
scottzec Nov 16, 2020
1c68da9
edit with flash blank page
scottzec Nov 16, 2020
318c71e
delete with flash, same 404
scottzec Nov 16, 2020
e78f30c
edit and delete functioning again, flash to be resolved
scottzec Nov 16, 2020
3ca8905
added flash to view
scottzec Nov 16, 2020
3f04e2e
votes nested route
scottzec Nov 17, 2020
7109e8a
added session routes
scottzec Nov 17, 2020
e33113b
login routes, actions and views setup. still need logout button
scottzec Nov 17, 2020
13c6e8e
logout and current views all setup and running
scottzec Nov 17, 2020
16428bf
vote create action
scottzec Nov 17, 2020
75a7e20
migrations relating votes to user and work
scottzec Nov 17, 2020
07e59e8
upvote functionality working
scottzec Nov 17, 2020
b3f5485
added votes for views
scottzec Nov 17, 2020
862bfed
added filters to controllers
scottzec Nov 17, 2020
da23f4a
only 1 vote per user per work
scottzec Nov 17, 2020
f1be597
top 10, spotlight and works index all sorted by votes descending
scottzec Nov 17, 2020
7680e3e
current user tests
scottzec Nov 17, 2020
72e4aa6
vote fixtures
scottzec Nov 18, 2020
3b026ad
vote fixtures
scottzec Nov 18, 2020
8c34218
find_work controller working
scottzec Nov 18, 2020
0bb9076
relationship tests
scottzec Nov 18, 2020
5f3947d
user views complete with relation has many works thru votes
scottzec Nov 18, 2020
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
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
8 changes: 8 additions & 0 deletions .generators
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Settings><!--This file was automatically generated by Ruby plugin.
You are allowed to:
1. Reorder generators
2. Remove generators
3. Add installed generators
To add new installed generators automatically delete this file and reload the project.
--><GeneratorsGroup><Generator name="active_record:migration" /><Generator name="active_record:model" /><Generator name="active_record:observer" /><Generator name="active_record:session_migration" /><Generator name="controller" /><Generator name="erb:controller" /><Generator name="erb:mailer" /><Generator name="erb:scaffold" /><Generator name="generator" /><Generator name="helper" /><Generator name="integration_test" /><Generator name="mailer" /><Generator name="metal" /><Generator name="migration" /><Generator name="model" /><Generator name="model_subclass" /><Generator name="observer" /><Generator name="performance_test" /><Generator name="plugin" /><Generator name="resource" /><Generator name="scaffold" /><Generator name="scaffold_controller" /><Generator name="session_migration" /><Generator name="stylesheets" /><Generator name="test_unit:controller" /><Generator name="test_unit:helper" /><Generator name="test_unit:integration" /><Generator name="test_unit:mailer" /><Generator name="test_unit:model" /><Generator name="test_unit:observer" /><Generator name="test_unit:performance" /><Generator name="test_unit:plugin" /><Generator name="test_unit:scaffold" /></GeneratorsGroup></Settings>
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.5
78 changes: 78 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.5'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 4.1'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 4.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.2', require: false

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '~> 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'jquery-rails'
gem 'jquery-turbolinks'
gem 'bootstrap'
group :development, :test do
gem 'pry-rails'
end

group :development do
gem 'guard'
gem 'guard-minitest'
gem 'debase', '>= 0.2.4.1'
gem 'ruby-debug-ide', '>= 0.7.0'
end

group :development do
gem 'better_errors'
gem 'binding_of_caller'
end

group :test do
gem 'minitest-rails'
gem 'minitest-reporters'
end
Loading