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

Stacks - Jackie - Media Ranker #39

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
9612b9a
initial rails setup
jackiewatanabe Apr 11, 2017
d8641a1
imported csv into seeds file
jackiewatanabe Apr 11, 2017
9e879a4
works index page shows all media by category
jackiewatanabe Apr 11, 2017
ee510ad
made work titles clickable links that go to broken pages
jackiewatanabe Apr 11, 2017
67e53f2
created one model test
jackiewatanabe Apr 11, 2017
595e280
added show controller action and view
jackiewatanabe Apr 11, 2017
98f994a
created albums, books, movies controllers and index views. also added…
jackiewatanabe Apr 11, 2017
96598ed
added links back to respective index pages for each work
jackiewatanabe Apr 11, 2017
1ed7bb1
added header to app
jackiewatanabe Apr 12, 2017
001b411
created new work method, route, view
jackiewatanabe Apr 12, 2017
e46085c
added link to add new work on album list, movie list, and book list v…
jackiewatanabe Apr 12, 2017
7d78795
updated books view, forms, route and controller to add new books
jackiewatanabe Apr 12, 2017
59a8617
adjusted forms and routes so new books, albums, movies are categorize…
jackiewatanabe Apr 12, 2017
eee8bfc
made header text clickable and set path to root
jackiewatanabe Apr 12, 2017
ab09d7a
fixed edit functionality, routes, forms, and controller method. Also …
jackiewatanabe Apr 12, 2017
ee7f023
changed views to show table of works
jackiewatanabe Apr 12, 2017
c902e67
added delete functionality
jackiewatanabe Apr 13, 2017
54ebbc4
updated delete so that it redirects to list of respective media type
jackiewatanabe Apr 13, 2017
4d85c23
created user model, controller, view
jackiewatanabe Apr 13, 2017
0ab5569
added login and logout functionality....entering new name adds new us…
jackiewatanabe Apr 13, 2017
44a4664
added section to application layout so flash messages actually appear
jackiewatanabe Apr 13, 2017
37331cb
created show view for users and added links back to all users and bac…
jackiewatanabe Apr 13, 2017
0661176
minor tweaks
jackiewatanabe Apr 13, 2017
1638017
added works model tests
jackiewatanabe Apr 13, 2017
8e2a745
added tests to user model
jackiewatanabe Apr 13, 2017
4dbfd51
added some fixtures
jackiewatanabe Apr 13, 2017
f51c80d
added some controller tests...WIP
jackiewatanabe Apr 13, 2017
6aa7fb4
fixed works index page to show only top ten and in order. also fixed …
jackiewatanabe Apr 13, 2017
d630bb5
fixed views for indexes so votes would disply in table
jackiewatanabe Apr 13, 2017
6d139ef
added flash message when adding new work
jackiewatanabe Apr 13, 2017
720b979
added flash message when deleting works
jackiewatanabe Apr 13, 2017
dcf7757
created initial votes controller, vote model, votes table and columns
jackiewatanabe Apr 13, 2017
777bd20
added upvote route, controller method, changed works table to include…
jackiewatanabe Apr 13, 2017
7c14861
created upvote controller method and made sure that you can't upvote …
jackiewatanabe Apr 13, 2017
eace6fd
changed upvote controller method to make sure you can't vote for the …
jackiewatanabe Apr 14, 2017
77bebf4
adjusted main index to show vote count and fixed ordering so it shows…
jackiewatanabe Apr 14, 2017
db9cb43
changed login logout to nav in application.html.erb
jackiewatanabe Apr 14, 2017
85af8be
user can now vote from books list, movies list, albums list
jackiewatanabe Apr 14, 2017
92d350f
changed formate of how dates are displayed.
jackiewatanabe Apr 14, 2017
c759511
adjusted root route in routes.rb
jackiewatanabe Apr 14, 2017
452023a
adjusted syntax for root route
jackiewatanabe Apr 14, 2017
6da58b7
added foundation to rails app
jackiewatanabe Apr 14, 2017
dacd2bc
basic styling for main page and show pages.
jackiewatanabe Apr 14, 2017
c8bf773
adjusted section header sizing
jackiewatanabe Apr 14, 2017
c1cfd43
added different temporary logo
jackiewatanabe Apr 14, 2017
93b7d94
tried to clean up unnecessary controllers, controller methods, views,…
jackiewatanabe Apr 14, 2017
8d5e3d3
added flash errors for when a work is invalid and doesn't create and …
jackiewatanabe Apr 14, 2017
dfd0f27
updated flash error and success messages for destroy action
jackiewatanabe Apr 14, 2017
f4385fe
used rails destroy controller to get rid of votes controller instead …
jackiewatanabe Apr 14, 2017
858400b
got rid of new view in works because I wasn't using it anywhere
jackiewatanabe Apr 14, 2017
1f47dff
made it so when you upvote, it redirects back to the same page you we…
jackiewatanabe Apr 14, 2017
3d1bac9
changed error message for when user has already voted
jackiewatanabe Apr 14, 2017
c875a98
attempted to show username of logged in user... only shows user id fo…
jackiewatanabe Apr 14, 2017
86db9a1
added user vote count feature by utilizing users.votes.count in user …
jackiewatanabe Apr 14, 2017
aa08aac
changed other places where I was using vote_counts column instead of …
jackiewatanabe Apr 14, 2017
8c2ed50
fixed it so it displays name of user who is logged in. Also fixed ind…
jackiewatanabe Apr 14, 2017
3884bd3
fixed index pages to actually show respective media categories
jackiewatanabe Apr 14, 2017
d2c2095
added css styling
jackiewatanabe Apr 14, 2017
7efc9de
adjusted main padding css
jackiewatanabe Apr 14, 2017
dd98f29
tweaked css
jackiewatanabe Apr 14, 2017
9240988
fixed spacing on main page
jackiewatanabe Apr 14, 2017
a83aaac
Doing debug for Heroku
jackiewatanabe Apr 14, 2017
b12426f
working on new update method
jackiewatanabe Apr 14, 2017
9d9cfe7
created unique index to validate for uniqueness of two columns. also …
jackiewatanabe Apr 17, 2017
2aa70db
fixed css so that errors would show up in red
jackiewatanabe Apr 17, 2017
16f57dd
created controller tests for books, movies, albums, users. updated wo…
jackiewatanabe Apr 17, 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
Prev Previous commit
Next Next commit
made work titles clickable links that go to broken pages
jackiewatanabe committed Apr 11, 2017
commit ee510ad9f87634f1e0628dedd6c71699fe2c4350
8 changes: 4 additions & 4 deletions app/views/works/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>Media Ranker</h1>

<h2>Media Spotlight: <% @spotlight = @works.sample %>
<%= @spotlight.title %> by: <%= @spotlight.creator %> </h2>
<%= link_to @spotlight.title, work_path(@spotlight.id) %> by: <%= @spotlight.creator %> </h2>


<h2>Top Albums</h2>
@@ -11,7 +11,7 @@

<% @albums.each do |album| %>
<li>
<%= album.title %> by <%= album.creator %>
<%= link_to album.title, work_path(album.id) %> by <%= album.creator %>
</li>
<% end %>
</ul>
@@ -23,7 +23,7 @@

<% @books.each do |book| %>
<li>
<%= book.title %> by <%= book.creator %>
<%= link_to book.title, work_path(book.id) %> by <%= book.creator %>
</li>
<% end %>
</ul>
@@ -35,7 +35,7 @@

<% @movies.each do |movie| %>
<li>
<%= movie.title %> by <%= movie.creator %>
<%= link_to movie.title, work_path(movie.id) %> by <%= movie.creator %>
</li>
<% end %>
</ul>
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Rails.application.routes.draw do
get '/works', to: 'works#index'

get '/works/:id', to: 'works#show', as: 'work'

# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end