Commit e841e4ff
Changed files (2)
app
controllers
views
layouts
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>