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
| ArgumentError in 'Reports::ReportCardsController GET index exposes course statuses as @course_statuses' | |
| wrong number of arguments (2 for 1) | |
| /Users/camwest/Sites/paultv/trunk/app/controllers/reports/report_cards_controller.rb:19:in `show' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `send' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `perform_action_without_filters' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in `call_filters' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_c |
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
| ArgumentError in 'Reports::ReportCardsController GET index exposes course statuses as @course_statuses' | |
| wrong number of arguments (2 for 1) | |
| /Library/Ruby/Gems/1.8/gems/rspec-rails-1.2.1/lib/spec/rails/example/controller_example_group.rb:207:in `render' | |
| /Library/Ruby/Gems/1.8/gems/rspec-rails-1.2.1/lib/spec/rails/example/controller_example_group.rb:207:in `render' | |
| /Users/camwest/Sites/paultv/trunk/app/controllers/reports/report_cards_controller.rb:19:in `show' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `send' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `perform_action_without_filters' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in `call_filters' | |
| /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' |
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
| Then I should only see generate courses with the course status "In Progress" # features/step_definitions/user_training_report.rb:33 | |
| stack level too deep (SystemStackError) | |
| /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/attribute_methods.rb:233:in `method_missing' | |
| /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/attribute_methods.rb:245:in `method_missing' | |
| ./features/step_definitions/user_training_report.rb:34:in `__instance_exec0' | |
| /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/core_ext/instance_exec.rb:47:in `send' | |
| /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/core_ext/instance_exec.rb:47:in `instance_exec' | |
| /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/core_ext/instance_exec.rb:18:in `cucumber_instance_exec' | |
| /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/core_ext/instance_exec.rb:25:in `cucumber_run_with_backtrace_filtering' | |
| /Library/Ruby/Gems/1 |
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
| require_dependency "user_training_report_status.rb" | |
| require_dependency "content.rb" | |
| require_dependency "course_status_report.rb" | |
| class UserTrainingReport | |
| REPORT_WORKER_KEY = "report_worker" | |
| #class methods | |
| def self.get_reports(user_ids, options = {}) | |
| user_ids.collect do |user_id| |
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
| require_dependency "user_training_report_status.rb" | |
| require_dependency "content.rb" | |
| require_dependency "course_status_report.rb" | |
| class UserTrainingReport | |
| REPORT_WORKER_KEY = "report_worker" | |
| #class methods | |
| def self.get_reports(user_ids, options = {}) | |
| user_ids.collect do |user_id| |
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
| NoMethodError (undefined method `asset' for #<Author id: 5, name: "Lloyd Schiller", asset_id: 1963>): | |
| /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/attribute_methods.rb:256:in `method_missing' | |
| /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_proxy.rb:177:in `send' | |
| /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/associations/association_proxy.rb:177:in `method_missing' | |
| /app/models/overview.rb:33:in `get_small_image' | |
| /app/models/overview.rb:11:in `xml_data' | |
| /app/models/content.rb:51:in `to_xml' | |
| /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call' | |
| /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures' | |
| /Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing' |
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
| ##### asset.rb ###### | |
| require "net/http" | |
| require "cgi" | |
| require "aws/s3" | |
| class Asset < ActiveRecord::Base | |
| belongs_to :asset_directory | |
| belongs_to :mime_type |
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
| desc "Push Content from Staging to Production." | |
| task :content_to_production, :roles => :db, :only => { :primary => true } do | |
| backup_name | |
| on_rollback { run "rm -f #{backup_file}" } | |
| run "mysqldump --add-drop-table -h #{staging_dbhost} -u #{dbuser} -p#{dbpass} #{staging_database} asset_directories assets authors chapter_overviews content_types contents cue_points mime_types multiple_choices nominal_role_infos nominal_roles overviews progress_tests question_options roles training_materials videos > #{backup_file}" | |
| run "mysql -u #{dbuser} -p#{dbpass} -h #{production_dbhost} #{production_database} < #{backup_file}" | |
| run "rm -f #{backup_file}" | |
| 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
| Contents | id parent_id name lft rgt content_type_id content_id created_at updated_at | |
| Content_Types | id title description created_at updated_at | |
| Videos | id title description created_at updated_at asset_id | |
| Overviews | id title description created_at updated_at asset_id large_image small_image author_id course_id content_id | |
| ProgressTest | id title description created_at updated_at pass_rate time total_questions | |
| MultipleChoice | id title created_at updated_at question | |
| ChapterOverview | id title description created_at updated_at large_image small_image content_id thumb |
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
| # models | |
| class Content < ActiveRecord::Base | |
| acts_as_nested_set | |
| end | |
| class Overview < Content | |
| end |