Quick live code from Sunday Section
Attached is the quick and dirty multiple model form from today’s section.
Click here to download.
Attached is the quick and dirty multiple model form from today’s section.
Click here to download.
Another completed project from the Sunday section.
This application makes use of the following:
Click here to download the completed application.
In the Sunday section, we re-created the previous example application using ActiveRecord. This is very similar to the examples from Lecture 6 in the download section, except that this was written with an emphasis on test driven development.
It includes examples of:
For the sake of time, there were no many to many relationships. Examples of m2m can be found in the download section.
Use rake -T to view the rake tasks. Use “rake db:migrate” to run the migrations, and “rake test” to run the tests.
Run “ruby section.rb” to run the demo code. Modify section.rb to play around with the finished results.
You can click here to download the complete source code.
In the Sunday section, we created a small application that several students requested the final source for. It includes examples of:
I tried to make use of as much of the last two lectures as possible. If you have any questions about how this works, or why things are done the way they are, feel free to comment below.
You can click here to downloaded the completed source code.
Run “ruby section.rb” to actually run the application. Edit this file as you see fit.
Run “ruby instrument_test.rb” to run the tests.