Commit d2b6151f

mo khan <mo@mokhan.ca>
2015-03-19 03:09:25
remove fluid container from tutorials page.
1 parent 1805782
Changed files (3)
app
controllers
views
tutorial_tags
tutorials
app/controllers/tutorial_tags_controller.rb
@@ -5,6 +5,6 @@ class TutorialTagsController < ApplicationController
 
   def show
     @tag = params[:id].downcase.gsub(/ /, '-')
-    @tutorials = Tutorial.includes(:user).tagged_with(@tag).page(params[:page]).per(12)
+    @tutorials = Tutorial.tagged_with(@tag).includes([:tags]).page(params[:page]).per(12)
   end
 end
app/views/tutorial_tags/show.html.erb
@@ -1,4 +1,5 @@
 <% provide(:title, @tag) -%>
+<% provide(:search_path, tutorials_path) %>
 <div class="row-fluid">
   <table class='table'>
     <% @tutorials.each do |tutorial| %>
app/views/tutorials/index.html.erb
@@ -1,5 +1,4 @@
-<%= provide(:search_path, tutorials_path) %>
-<% provide(:container_class, 'container-fluid') %>
+<% provide(:search_path, tutorials_path) %>
 <div class="row-fluid">
   <table class='table'>
     <% @tutorials.each do |tutorial| %>