Commit e841e4ff

mo khan <mo@mokhan.ca>
2014-08-23 17:55:21
remove caching and fix about link.
1 parent a7979c8
Changed files (2)
app
app/controllers/profiles_controller.rb
@@ -3,12 +3,10 @@ class ProfilesController < ApplicationController
 
   def index
     @profiles = User.includes(:avatar).where('creations_count > 0').order(:creations_count => :desc).page(params[:page]).per(12)
-    expires_in(1.hour)
   end
 
   def show
     @user = User.find(params[:id])
     @creations = @user.creations.includes([:user, :photos]).page(params[:page]).per(18)
-    expires_in(1.hour)
   end
 end
app/views/layouts/_header.html.erb
@@ -27,8 +27,7 @@
           <% @categories.each do |category| %>
               <li><%= link_to category.name.pluralize, category_path(category) %></li>
           <% end %>
-          <li><a href="#about">About</a></li>
-          <li><a href="#contact">Contact</a></li>
+          <li><%= link_to "About", about_us_path %></li>
         </ul>
       </div><!--/.nav-collapse -->
     </div>