- Declare doctype
- Set html tag lang to "en"
- Set the meta charset to utf8 in the head
- reset.css?
- figcaptions not used within a figure on main page
- Microformats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for @workout, :url => { :action => "create" }, :method => "post" do |f| | |
2 .input | |
3 When | |
4 = f.date_select :when, :order => [:month, :day, :year], | |
5 :default => @workout_date | |
6 .input | |
7 Type | |
8 = f.text_field :category | |
9 .input | |
10 Duration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for @workout, :url => { :action => "create" }, :method => "post" do |f| | |
2 .input | |
3 When | |
4 = f.date_select :when, :order => [:month, :day, :year], | |
5 :default => @workout_date | |
6 .input | |
7 Type | |
8 = f.text_field :category | |
9 .input | |
10 Duration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WorkoutsController < ApplicationController | |
2 before_filter :authenticate_user! | |
3 | |
4 def index | |
5 @writable = true | |
6 @period = TrainingPeriod.new current_user.id, DateTime.now.in_time_zone.midnight | |
7 end | |
8 | |
9 def new | |
10 @workout = Workout.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activemodel (3.1.0) lib/active_model/naming.rb:134:in `model_name_from_record_or_class' | |
activemodel (3.1.0) lib/active_model/naming.rb:129:in `param_key' | |
actionpack (3.1.0) lib/action_view/helpers/form_helper.rb:942:in `instantiate_builder' | |
actionpack (3.1.0) lib/action_view/helpers/form_helper.rb:589:in `fields_for' | |
app/views/workouts/new.html.haml:11:in `block in _app_views_workouts_new_html_haml__2976773174929774366_70033736789520' | |
haml (3.1.3) lib/haml/helpers/action_view_mods.rb:180:in `call' | |
haml (3.1.3) lib/haml/helpers/action_view_mods.rb:180:in `block (2 levels) in form_for_with_haml' | |
haml (3.1.3) lib/haml/helpers.rb:255:in `with_tabs' | |
haml (3.1.3) lib/haml/helpers/action_view_mods.rb:180:in `block in form_for_with_haml' | |
actionpack (3.1.0) lib/action_view/helpers/capture_helper.rb:40:in `block in capture' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Workout < ActiveRecord::Base | |
2 has_one :duration | |
3 | |
4 def long_hash | |
5 Digest::SHA1.hexdigest(self.id.to_s) | |
6 end | |
7 end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/assets/javascripts/slider.js.erb:2:in `evaluate_source' | |
tilt (1.3.3) lib/tilt/template.rb:209:in `instance_eval' | |
tilt (1.3.3) lib/tilt/template.rb:209:in `evaluate_source' | |
tilt (1.3.3) lib/tilt/template.rb:144:in `cached_evaluate' | |
tilt (1.3.3) lib/tilt/template.rb:127:in `evaluate' | |
tilt (1.3.3) lib/tilt/template.rb:76:in `render' | |
sprockets (2.0.3) lib/sprockets/context.rb:175:in `block in evaluate' | |
sprockets (2.0.3) lib/sprockets/context.rb:172:in `each' | |
sprockets (2.0.3) lib/sprockets/context.rb:172:in `evaluate' | |
sprockets (2.0.3) lib/sprockets/bundled_asset.rb:171:in `build_dependency_context_and_body' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.1.0' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
group :production do | |
gem 'pg' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Controller: | |
def show_week_ajax | |
@period = TrainingPeriod.new current_user.id, TrainingPeriod.parse_date(params[:startdate]) | |
@writable = true | |
respond_to do |format| | |
format.js { render :action => "workout-slider", :layout => false } | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.1.0' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
# Gems used only for assets and not required |
OlderNewer