1 / 21

Photo Album Final Project

Photo Album Final Project. AIT 616 Spring 2008. Tom Auth Ahmed Ismail. Flickr demonstration. Share. Maps. Features. Picture upload. Intended to allow the user to select photos from their personal computer and add them to the website. The upload page. Upload file.rhtml

linda-bush
Download Presentation

Photo Album Final Project

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Photo Album Final Project AIT 616 Spring 2008 Tom Auth Ahmed Ismail

  2. Flickr demonstration

  3. Share

  4. Maps

  5. Features

  6. Picture upload • Intended to allow the user to select photos from their personal computer and add them to the website.

  7. The upload page • Upload file.rhtml • ‘upload File’ • ‘upload’ • ‘data file’

  8. Upload Controller Defines the index and the “uploadFile” actions. Calls Datafile.save

  9. Datafile Model • Defines a function for .save • Shows where the files are to be saved. • Questionable section of code.

  10. The login • Intended to authenticate users by user name and password. • Create a session that could be used to track the user as the moved from page to page. • -Also to identify the images that were associated to that user. • Created a whole set of functions with scaffold.

  11. The login Page • Consists of two fields • Calls the action “login”

  12. Login def. In the controller • The redirect actions direct the website to the proper controller or page base don the outcome of authenticate

  13. Users / Login controller Cont • The “show” definition is what held up the whole app. • This is the original index definition that would have shown all the users when accessed.

  14. User / Login Model • Very simple version • U=find(:first, :conditions=>[“nickname=? And password=?”, nickname, password])

  15. The User Database • The integer Id and the date and time fields are auto created with the scaffold. • The rest serve to ID the user and authenticate them for access to the site.

  16. Thank you

More Related