Commit 5ec7227

mo khan <mo@mokhan.ca>
2017-02-16 20:06:57
set the search path for workouts.
1 parent 720fad8
Changed files (1)
app
app/controllers/workouts_controller.rb
@@ -1,4 +1,6 @@
 class WorkoutsController < ApplicationController
+  before_action { @search_path = workouts_path }
+
   def index
     @exercise = Exercise.find_by(name: params[:exercise])
     @primary_exercises = Exercise.primary.order_by_name.to_a