From 8a40ffb5d1115c10ae4e984eae534df1fb8682fc Mon Sep 17 00:00:00 2001 From: mo k Date: Sat, 2 Jun 2012 07:35:53 -0600 Subject: tidy up some of the page headers and create route alias for login, logout --- app/controllers/registrations_controller.rb | 1 + app/views/creations/index.html.erb | 10 +++------- app/views/creations/show.html.erb | 18 ++++++------------ app/views/devise/sessions/new.html.erb | 2 -- app/views/favorites/index.html.erb | 1 - app/views/profiles/favorites.html.erb | 2 -- app/views/profiles/index.html.erb | 21 +++++++++++++++++---- config/routes.rb | 3 +-- 8 files changed, 28 insertions(+), 30 deletions(-) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 97bf7375..30bcf8be 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -1,4 +1,5 @@ class RegistrationsController < Devise::RegistrationsController + #force_ssl def edit @user = current_user end diff --git a/app/views/creations/index.html.erb b/app/views/creations/index.html.erb index 59a88e64..8f8c2cff 100644 --- a/app/views/creations/index.html.erb +++ b/app/views/creations/index.html.erb @@ -3,14 +3,12 @@

Welcome cake enthusiast!

Make cakes, sell cakes, or just love eating them? You've come to the right place!

CakeSide is a free site to share your cake creations and ideas with other cake fanatics like yourself!

-
-
@@ -35,11 +33,9 @@


-
-
-

Recently uploaded creations

-
-
<% end %> + <%= render "shared/a_12_column_gallery" %> diff --git a/app/views/creations/show.html.erb b/app/views/creations/show.html.erb index b7917cae..079bf18e 100644 --- a/app/views/creations/show.html.erb +++ b/app/views/creations/show.html.erb @@ -1,5 +1,4 @@ <% provide(:title, "#{@creation.name} by #{@creation.user.name}") -%> - -

@@ -24,11 +22,9 @@

-
- +
<% if user_signed_in? %> @@ -36,11 +32,10 @@ <%= button_to "Add to favorites", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary' %> <% end %> <% else %> - <%= button_to "Add to favorites", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary' %> + <%= button_to "Add to favorites", creation_favorites_path(:creation_id => @creation.id), :method => :post, :class => 'btn btn-primary' %> <% end %>
-
    @@ -55,7 +50,6 @@
-

Description

diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 24676f88..ebc4e417 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,6 +1,5 @@ <% content_for :head do %> <% end %> - -
diff --git a/app/views/favorites/index.html.erb b/app/views/favorites/index.html.erb index a9a83719..78e9532d 100644 --- a/app/views/favorites/index.html.erb +++ b/app/views/favorites/index.html.erb @@ -1,7 +1,6 @@ <% content_for :title do %> <%= @creation.name %> by <%= @creation.user.name %> - fanclub <% end %> -