Week 6 Homework

February 18th, 2009

This week I’m having you all start a new project called “rubyholic”. Rubyholic is a website for people to find their local ruby groups. For now we’ll have two models, one called “group” to represent our ruby group, and “location” to represent the location where the group meets.

For example, the Seattle.RB group meets at Vivace, so there will be a group record with the name “Seattle.RB” and a location named “Vivace”. Locations also have latitude and longitude attributes which we’ll be using later for maps.

I want you to:

  • Create the rubyholic rails project
  • Create your models, controllers, and views
  • Limit the number of groups that are displayed to 10
  • Let the user sort groups by name
  • Let the user sort groups by location name
  • Tests! You must test all of this functionality

Before you check this project in to git, add a .gitignore file. Put this in the .gitignore file: db/.sqlite3 ..swp tags log/*.log log

Remember, turn in early and often. If you have more questions, email the list, or me, or come to my office hours every Tuesday night.

Week 6 Slides

February 18th, 2009

Hey everyone!

Just a reminder, my coworker and internetexpert John Barnette will be substituting tonight since I am in LA doing company training.

Here are your week 6 slides.

Week 5 Slides

February 11th, 2009

It’s that time again! Tonight we’ll be talking about generating XML, JSON, i18n, and tests, tests, tests!

Here are the week 5 slides.

Week 4 Slides

February 4th, 2009

Hello everyone! Here are the slides for week 4.

Week 3 Homework

January 29th, 2009

Hey everyone, since we’re moving too quickly, I’m posting the homework for week 3 here.

  • implement db session store
  • implement the cart
  • test the cart
  • test the flash
  • attempt RJS (we will also do this in class next week

Remember that the week 2 homework is due Sunday night. Have a good weekend!

Aaron’s leniancy act

January 28th, 2009

Your week 2 homework is due Feb 1st at midnight. Your week 3 homework is due Feb 8th at midnight.

Turn in early and often.

Week 3 Slides

January 28th, 2009

Hey everyone. This week we’ll be looking at chapters 8, 9, and 10.

Here are week 3 slides. See you tonight!

Week 2 Homework Requirements

January 25th, 2009

Hi everyone! I mentioned this in class and in the slides, but I’m going to post it on the blog again just in case.

In addition to getting my test cases to pass, I want to see more test cases. More tests in the units, and more in the functionals. Specifically in the functionals, I want to see tests which submit form data which would be considered invalid by the models and verifies that the user is notified of their mistakes.

Remember. Turn your homework in early and often! Week 2 homework is due on the 31st at midnight.

Week 2 Homework

January 21st, 2009

This homework is due Saturday the 31st. There are two functional tests and one unit test. Put the functional tests in the test/functional directory, and the unit test in the test/units directory.

homework

Week 2 Slides

January 21st, 2009

Here are your week 2 slides! here!