- 11/23. Final Project presentations are today (Monday) at 11:30am in our
usual classroom.
- 11/21. The scores for some of the Project 4 submission are posted. I will post scores for the
rest of the projects later tonight. If you submitted Project 4 before November 20,
I won't count it late.
- 11/19. For the final project, you are not required to upload it to the CDMRuby server.
If you prefer, you can bring a zipfile and run it on the instructor podium with localhost.
- 11/18. Quiz 9 is open for the week of November 15 to 21. It will close early on Monday night,
November 23, at 11:30pm. Look at the document
Rails Security to help you answer the
questions for Quiz 9.
- 11/14. There is no quiz for the week of November 8 to 14, because of the
midterm exam. There will be one more quiz for the week of November 15 to 21.
- 11/13. The LoginRegistration Example is posted. This shows how to
allow a new user to register his/her username and password, then to use them to
login.
- 11/13. If you set the permissions on all your folders on the cdmruby server
to 711 (read, write, and execute for user, but only execute for group and other)
you should be able to display your site in a browser, but be able to keep others
from viewing your source code pages with FileZilla and Putty.
- 11/11.When I uploaded the MiniTwitter Example in class today; the
database file was empty. After I executed
> rake db:migrate
> rake db:seed
on the server, everything worked and is working well. You can view this
MiniTwitter project using these URLs:
http://cdmruby.cdm.depaul.edu/sjost/followers
http://cdmruby.cdm.depaul.edu/sjost/users
http://cdmruby.cdm.depaul.edu/sjost/connections
http://cdmruby.cdm.depaul.edu/sjost/comments
- 11/11. For Project 4, in the Additional Requirements section, item 2 has been made optional.
If you want to do something like this on your final project, I will post an example of how to do this.
I will post an annoucement when it is ready, hopefully tomorrow. To see how to
accomplish item 3, see the MiniTwitter Example.
- 11/11. All projects, including the final project, must be submitted by 11:59 on Monday, 11/23. Don't forget to
submit the Final Project Description, which includes the URL and password(s) to use when accessing your site.
On D2L, Submit a zipfile of your project with the project description included.
Also upload your final project to the CDMRuby server.
- 11/10. Please submit your instructor evaluations for this class on MyCDM.
- 11/10. On Monday, November 16, our class will meet in the computer lab CDM 819 instead of in our
normal classroom. On that day we will take some time to work on the final project. You will be able to upload
a version of your final project to the CDM Rails server CDMRuby if you wish.
- 11/10. There will be no class on Wednesday, November 18. That day is the
start of final exam week.
- 11/5. The MiniTwitter Example is posted
to help you with Project 4. Just replace comments with photos.
The recommended models in Project 4 have been changed to be compatible with the
MiniTwitter example.
- 10/29. For Project 4, place the links to the index pages on the layout page application.html.erb like you did you did for Project 1.
- 10/27. A draft of the Final Review Guide is posted. Some further changes may be
made.
- 10/27. The FinalProject Description is posted.
As soon as possible, post the members of your FinalProject group to the
GroupMembers dropbox on D2L.
- 10/26. Project 4 is posted. We will discuss it this week.
- 10/29. These examples have been posted: PhotoGallery, Hospital3,
TemperatureConverter3, BlogPostSite2.
The Depot1 Example will be posted this weekend.
- 10/19. The reason that the BlogPost Example with authentication did not work in class on Wednesday is
that the users table had not been populated with the usernames and encrypted passwords.
After I ran rake db:seed, the login worked without any problem. We will look at the source code for this
example on Monday (10/26).
- 10/19. The early Final Exam is on Monday, November 9.
- 10/17. I am out of town until Sunday night. I will respond to your emails and texts on Monday,
10/19.
- 10/13. To set a background image for your project if the image is named image.jpg,
put this line in your CSS file:
body { background-image: url(image.jpg); }
The image should be placed in app/assets/images.
- 10/13. The due date for Project 3 is moved back to October 23.
- 10/13. We will discuss project 3 in more detail tomorrow (10/14). My suggestion will be that you use
four models for Project 3: User, Follower, Photo, Like.
- 10/9. In the Many-to-many Relationships Section of the 10/7 Notes,
example tables have been added: students, courses, and enrollments.
These tables are similar to the ones drawn on the whiteboard during the class.
- 10/9. One of the comments for Project 2 is "Fonts and layouts look like an out-of-the-box scaffold project."
This means that you should spend more effort choosing fonts and positioning your items on the views to make them
interesting. For example, see the RealEstate Example. This will also apply
to projects going forward.
- 10/9. The scores for Project 2 are posted.
- 10/8. Starting with Project 3, your Rails projects will be expected to follow a specific naming convention:
Correct: Proj3Robinson or proj3robinson, where Robinson is your last name.
Incorrect: robinsonproj3, project3robinson, proj3MichaelRobinson, proj3,
proj3MRobinson, instagram.
If your project file name is Proj3Robinson, your zip file name should be
Proj3Robinson.zip.
- 10/7. Before class on Monday, read the Project 3 Description and spend some time thinking about you want to
do for this project. Think about what you need to know to successfully complete Project 3 and what sorts of examples
you would like to see to help you out.
- 10/5. When working on your projects, if you make changes to the source code, but the changes don't seem to take
effect, check these three things
- Did you save your files before redisplaying the webpage?
- Did you refresh your webpage or pages for which the source was changed?
- Do you have the Double Version Problem: are you changing the source code for one copy of the project
but displaying a different copy?
- 10/5. Project 2 is due today. I won't count it late if it is submitted by midnight tomorrow night.
Before submitting you should upload approximately 5 photos and have at least two users.
- 10/2. Quiz 2 closes at 11:30pm tomorrow. Please take it before then.
Quiz 3 also opens tomorrow.
- 10/2. Final Exam Signup for online students is open on D2L. Please sign up for the final as soon as you can.
- 9/28. Here is the correct validation that uses a regular expression to check a phone number:
validates :phone, format: { with: /\A\d{3}\/\d{3}-\d{4}\Z/,
message: "not a legal phone number" }
- 9/28. Although the User show page should include a photo of the user, these user photos do not have to
be uploaded. They can be added directly to the app/assets/images folder before running the server.
The filename of the image file can be stored in the database table, or you can
use some other method for keeping track of these images.
- 9/28. The project zipfile has been added to the NestedRoutes Example. Remember that
using nested routes for Project 2 is optional.
- 9/27. The due date for Project 2 is changed to Monday, 10/5
- 9/26. Reminder: Quiz 1 closes at 11:30pm tonight.
- 9/26. Quiz 2 is open. It closes on 10/3 at 11:30pm.
- 9/23. Here is some clarification on which fields to use when creating the scaffolds for Project 2.
The fields for the User model depends on what you want to include in your user profile. At a minimum,
include the first and last names, email address, screen name, and photo. You decide if you want to upload
the user's photo or just put them in app/assets/images.
For the Photo model, at a minimum include title, and description. You will then add the virtual field :photo,
and the database field extension as we did in the PetPhotoUpload example.
- 9/23. Here is a link to the picresize site that Ahmed mentioned in class today:
http://picresize.com/.
You should be able to figure out how to use it for resizing your pictures for
Project 2 so that they are 30K or smaller.
- 9/22. Project 1 was due last night. If you have not yet submitted it, submit it as soon as possible
because the late penalty increases for projects that are more than one week late.
- 9/22. Quiz 1 is open until Saturday, 9/26, at 11:30pm. Everyone takes the
quizzes.
- 9/21. There was a typo in Project 1 in the ERB tag that displayed an image. It should be
<%= image_tag "image_name.jpg", class: "img" %>
Note that a Rails programmer never uses the HTML img tag directly.
- 9/16. Our classroom has been changed from CDM 224 to CDM 216 for the rest of the quarter.
- 9/15. The symbol ⇓ is used to indicate that a command typed into a
CommandPrompt Window or Terminal Window is continued on a new line. Caution: when typing such commands yourself do not
press the Enter key, just let the text wrap.
- 9/15. The DivTags example is posted. It may give you more ideas for your Project1 styles and layout.
- 9/14. A little clarification about the grading of projects. A project score for an aspect of the project
(for example, functionality, creativity, originality)
90 to 92 means that you met the expectations for that aspect. A score higher than 93 means that you went
beyond expectations.
- 9/13. The discussion forum and topic FinalProjectGroups is open on D2L. Post
messages to this discussion topic if you wish to solicit
persons to join your group or accept an invitation to join a group.
- 9/13. Each quarter, I am required by the university to provide a list of all the no-shows for this class. For the in-class section, I took attendence on Wednesday, 9/9, and everyone was
present, which is unusual for the first class meeting. Thanks for being so conscientious. For the online section place a document and comment in the AttendenceVerification dropbox
stating that you wish to remain in the class by this coming Thursday, 9/17. I need to submit the list of no shows by Friday, 9/18.
- 9/11. After reconsideration, the final project may completed with a group of 1, 2, or 3
members.
- 9/10. Office hours for Jost's classes are Mondays and Wednesdays from 1:30pm to 3:00pm.
- 9/10. Here is the revised grading scheme for this class:
Final Exam: 30%, Final Project: 20%, Regular Projects: 30%, Quizzes: 10%, Attendence: 10%.
Everyone takes the weekly quiz (posted on Saturday). In addition to 10%
credit for taking the quiz, online students receive credit for attendence by taking the quiz for that
week. (One quiz earns
credit for two days of attendence.)
- 9/10. Quizzes will be posted on Saturday evenings at 6:00pm, starting on September 19.
Each quiz will close a week later at 11:30pm. Quizzes cannot be taken late. Set up a reminder in your
online calendar, put up postit notes in your dorm room, or tie a string around your finger to
remind yourself to take the quiz each week.
- 9/9. Check out Project 1. This project asks you to create a Rails project
with three pages, each containin an image and a description of that image. Start
thinking about which images you will use and start writing the descriptions for them.
- 9/9. A couple of you asked for links to online Ruby tutorials. If you use the Google search string
"Ruby Tutorials" you will get dozens of links to online tutorials. The first
tutorial that Google returns looks okay: www.tutorialspoint.com/ruby/.
It uses Interactive Ruby (invoked with irb). Some of the other tutorials promise to introduce you to Ruby in 15 or 20 minutes.
Here is a link to an earlier edition of the IT 211 textbook:
pine.fm/LearnToProgram/
- 9/9. The first class meeting of IT 232 will be on Wednesday, September 9, from
11:50am to 1:20pm.
- 9/9. There will be no midterm exam, only an early final on Monday, November
9.
- 9/9. Final Project presentations will be held on
during the scheduled final slot of Monday, November 23, at 11:30am.
- 9/9. The Final Project will consist of some sort of Social Networking site built
using the tools concepts that we discuss during the class.
- 9/9. Directions for
installing Rails on your Windows machine.
- 9/9. On Windows, CoffeeScript 1.9.1.1 is incompatable with Rails 4.2.3. To fix this
you have two choices:
- If you are not using JavaScript, JQuery, or CoffeeScript in your project, you can delete
the line
<%= javascript_include_tag 'application',
'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
in the layout file application.html.erb.
- If you are using JavaScript, JQuery, or CoffeeScript in your project, you need to
back up to CoffeeScript 1.8.0 by placing these lines in your project Gemfile:
# Force CoffeeScript to 1.8.0.
gem 'coffee-script-source', '1.8.0'
Then update the gem by typing the following in the CommandPrompt Window:
bundle update coffee-script-source
- 9/9: You probably already know this: set your Windows Explorer to
show file extensions:
Organize >> Layout >> Folder and search options >>
>> Select the View Tab in Folder Options dialog.
>> Uncheck the box "Hide extensions for
known file types.
>> Click OK.