App breaks with empty database
by shreyankg@gmail.com
Hello Gaurav,
I tried the latest snapshot of your git clone at
http://github.com/reddragon/fsoc
I tried doing a fresh
rake db:create and rake db:migrate
On opening / , the application breaks with the following trace:
--START TRACE --
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/whiny_nil.rb:52:in
`method_missing'
/home/sgupta/projects/soc/lib/access_control.rb:23:in `within_timeframe?'
/home/sgupta/projects/soc/lib/access_control.rb:48:in `can_create_project?'
(eval):2:in `send'
(eval):2:in `can_create_project?'
/home/sgupta/projects/soc/app/views/layouts/application.html.erb:89:in
`_run_erb_app47views47layouts47application46html46erb'
--END TRACE --
Please fix this so I can review the rest of your work.
--
Peace and Love,
Shreyank Gupta
Blog: http://allsortsofshrink.blogspot.com
13 years, 10 months
Unit/functional tests and continuous integration
by Shakthi Kannan
Hi,
Few more suggestions:
In Test Driven Development (TDD), we write test cases first, and then
write the code to make the tests pass. So, when using Agile
methodologies, I urge you to write unit/functional test cases. This is
helpful:
- As it gives motivation for you to write code to pass the tests.
- Setup continuous integration [1] builds that re-run the test cases
at periodic intervals, to make sure one hasn't broken anything. If
anything breaks, the result of the tests should be sent via e-mail to
the list, or the concerned team members.
- When you refactor code, you can re-run the tests to make sure your
logic hasn't been affected.
- Please use rails_rcov [2] (or any other related tool) to see the
code coverage of your test cases.
- In a production system, you can run these test cases on the test
database to make sure everything is fine, before switching to the
production database. This can save you lot of time troubleshooting
problems, if there exists any.
If you are looking for specific gems, you can refer the Ruby Toolbox
[3]. Bookmark the same.
SK
[1] Continuous Integration.
http://martinfowler.com/articles/continuousIntegration.html
[2] rails_rcov. http://agilewebdevelopment.com/plugins/rails_rcov
[3] Ruby Toolbox. http://ruby-toolbox.com/
--
Shakthi Kannan
http://www.shakthimaan.com
13 years, 10 months
[reddragon/fsoc] 2743c0: Calendar added using event_calendar plugin, reflec...
by GitHub
Branch: refs/heads/master
Home: http://github.com/reddragon/fsoc
Commit: 2743c0fba63f6b7afb5cd6fe3b72e782e5d9d644
http://github.com/reddragon/fsoc/commit/2743c0fba63f6b7afb5cd6fe3b72e782e...
Author: Gaurav Menghani <gaurav.menghani(a)gmail.com>
Date: 2010-06-26 (Sat, 26 Jun 2010)
Changed paths:
A app/controllers/calendar_controller.rb
R app/controllers/calender_controller.rb
M app/controllers/dashboard_controller.rb
A app/helpers/calendar_helper.rb
R app/helpers/calender_helper.rb
A app/models/event.rb
A app/views/calendar/index.html.haml
R app/views/calender/index.html.erb
M app/views/dashboard/configure.html.haml
M app/views/layouts/_tabs.html.erb
M app/views/tasks/_list.html.erb
M config/routes.rb
A db/migrate/20100627162649_create_events.rb
M db/schema.rb
A public/javascripts/event_calendar.js
A public/stylesheets/event_calendar.css
A vendor/plugins/event_calendar/CHANGELOG.rdoc
A vendor/plugins/event_calendar/MIT-LICENSE
A vendor/plugins/event_calendar/README.rdoc
A vendor/plugins/event_calendar/Rakefile
A vendor/plugins/event_calendar/generators/event_calendar/USAGE
A vendor/plugins/event_calendar/generators/event_calendar/event_calendar_generator.rb
A vendor/plugins/event_calendar/generators/event_calendar/lib/insert_routes.rb
A vendor/plugins/event_calendar/generators/event_calendar/templates/controller.rb.erb
A vendor/plugins/event_calendar/generators/event_calendar/templates/helper.rb.erb
A vendor/plugins/event_calendar/generators/event_calendar/templates/javascript.js
A vendor/plugins/event_calendar/generators/event_calendar/templates/jq_javascript.js
A vendor/plugins/event_calendar/generators/event_calendar/templates/migration.rb.erb
A vendor/plugins/event_calendar/generators/event_calendar/templates/model.rb.erb
A vendor/plugins/event_calendar/generators/event_calendar/templates/stylesheet.css
A vendor/plugins/event_calendar/generators/event_calendar/templates/view.html.erb
A vendor/plugins/event_calendar/init.rb
A vendor/plugins/event_calendar/install.rb
A vendor/plugins/event_calendar/lib/event_calendar.rb
A vendor/plugins/event_calendar/lib/event_calendar/calendar_helper.rb
A vendor/plugins/event_calendar/spec/event_calendar_spec.rb
A vendor/plugins/event_calendar/spec/fixtures/models.rb
A vendor/plugins/event_calendar/spec/spec.opts
A vendor/plugins/event_calendar/spec/spec_helper.rb
A vendor/plugins/event_calendar/tasks/event_calendar_tasks.rake
A vendor/plugins/event_calendar/uninstall.rb
Log Message:
-----------
Calendar added using event_calendar plugin, reflects Timeframes
13 years, 10 months
[reddragon/fsoc] de6034: Dashboard & Misc Fixes
by GitHub
Branch: refs/heads/master
Home: http://github.com/reddragon/fsoc
Commit: de6034f5a0b1bcfd1e61d3608b7fd45a7015a278
http://github.com/reddragon/fsoc/commit/de6034f5a0b1bcfd1e61d3608b7fd45a7...
Author: Gaurav Menghani <gaurav.menghani(a)gmail.com>
Date: 2010-06-24 (Thu, 24 Jun 2010)
Changed paths:
M app/controllers/comments_controller.rb
M app/controllers/dashboard_controller.rb
M app/controllers/journals_controller.rb
M app/helpers/application_helper.rb
R app/views/dashboard/_configure.html.haml
A app/views/dashboard/configure.html.haml
M app/views/dashboard/index.html.haml
A app/views/dashboard/proposals.html.haml
A app/views/dashboard/task_status.html.haml
M app/views/journals/index.html.haml
M lib/access_control.rb
Log Message:
-----------
Dashboard & Misc Fixes
13 years, 10 months