Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example: Data Import as a Process
class WorkoutsController < ApplicationController
...
def index
@workouts = Workout.complete
end
def fix_incompletes
@workouts = Workout.needs_revision
end
def performance
workouts = Workout.complete
@overall_strength_chart = calculate_strength_changes(workouts)
@aerobic_capacity_chart = calculate_aerobic_capacity_changes(workouts)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.