Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jatwell93/rubyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirv committed May 31, 2017
2 parents f425486 + a8eb54d commit 3fac989
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
8 changes: 1 addition & 7 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,10 @@ Javascript trouble shooting stuff ...

to do first:

- fix delete posts
- add images parralax image to aws
- go through every page and double check and every file
- fix facebook login by changing details in facebook app homepage
- fix workout show on users homepage
- fix delete review function
- fix javascript on login page
- get rid of inline javascripts
- fix feeds and preptime

Beta:

Expand All @@ -68,9 +64,7 @@ Beta:
- refactor and speed up
- add gravatar to mailbox
- add font awesomes to icons
- change to 'birthday' social share icons
- add measurements again
- change to link back to previous page
- add redcarpet and friendly_id
- add confirmaions in devise then add promo html markup to the mailer

Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require cocoon
//= require bootstrap-sprockets
//= require turbolinks
Expand Down
4 changes: 2 additions & 2 deletions app/views/recipes/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
<br>
<br>
<strong>Feeds: </strong>
<%= f.collection_check_boxes :feed_ids, Feed.all, :id, :people do |cb| %>
<%= f.collection_check_boxes :feed_ids, Feed.all, :id, :people do |cb| %>
<% cb.label(class: "checkbox-inline input_checkbox") {cb.check_box(class: "checkbox") + cb.text} %>
<% end %>
<br>
<br>
<strong>Preptime: </strong>
<%= f.collection_check_boxes :preptime_ids, Preptime.all, :id, :time do |cb| %>
<%= f.collection_check_boxes :preptime_ids, Preptime.all, :id, :time do |cb| %>
<% cb.label(class: "checkbox-inline input_checkbox") {cb.check_box(class: "checkbox") + cb.text} %>
<% end %>
<br>
Expand Down
3 changes: 2 additions & 1 deletion app/views/recipes/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
<%if logged_in? and is_owner? %>
<%= link_to "Edit this Recipe", edit_recipe_path(@recipe), class: "btn btn-success pull-right edit" %>
<%end %>

<%if logged_in? and (is_owner?) %>
<%= link_to "[Delete Recipe]", recipe_path(@recipe.delete), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-danger pull-right delete"%>
<%= link_to "[Delete Recipe]", @recipe, method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-danger pull-right delete"%>
<%end %>
<div class="social-share-button">
Share this! <%= social_share_button_tag(@recipe.name) %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% provide(:title, "User: #{@user.username})" %>
<% provide(:title, "User: #{@user.username}") %>
<div class="container">
<nav class="breadcrumb">
<a class="breadcrumb-item" <%= link_to 'Home/', root_path%></a>
Expand Down
4 changes: 3 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Rails.application.routes.draw do

# users rotues
# users rotues
devise_for :users, :controllers => {registrations: "registrations", omniauth_callbacks: "omniauth_callbacks"}
match '/users/:id/finish_signup' => 'users#finish_signup', via: [:get, :patch], :as => :finish_signup
#workout routes
Expand All @@ -12,6 +12,7 @@
get 'like'
post 'like'
post 'review'
delete 'review', to: "recipes#deletereview"
end
resources :reviews, except: [:show, :index]
end
Expand All @@ -33,6 +34,7 @@
get 'like'
post 'like'
post 'review'
delete 'review', to: "recipes#deletereview"
end
resources :reviews, except: [:show, :index]
end
Expand Down

0 comments on commit 3fac989

Please sign in to comment.