Skip to content

kudelabs/roc-lab3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi, Welcome to Rails on Campus.

This is the sample code from Lab #3 - the final session. Hopefully you had a chance to work on this in class and have your own version. This is the sample code that is meant to go along with the lecture. Please be sure to start with Lab #1, and use the NOTES to follow along.

Topics covered in this Lab include:

  • User sessions - session[:user_id]
  • Before filters - before_filter :require_login
  • Form tag helpers - form_tag, text_field_tag
  • Custom routes - match 'login' => 'sessions#new'

Versions used for this code:

  • Rails 3.1.1
  • ruby 1.9.2
  • see Gemfile for more information

Instructions:

Additional resources:


Rails on Campus is a program started by Leon Du and Shaokun Wu, 2 ruby developers in Guangzhou, China. The idea is to build a good set of material for introduction courses that can be used to teach Rails on college campuses. College students are often not exposed to the latest development techniques, and are left to learn on the job. The goal of this program is to introduce students to the world of open source development frameworks to help prepare them for a good job.

Rails on Campus是由中国广州两位Ruby 开发者, Leon Du和Shaokun Wu 发起的。活动的初衷是为大学Rails的 教学积淀一些有价值的学习材料。大学学生接触新技术的机会不十分多,而常常要上到工作岗位才开始学习。 希望通过这次活动,可以为同学们带来更多开源的开发框架,以此为将来的好工作更好地准备自己。

Rails on Campus is sponsored by:

Rails on Campus的赞助团队有:

About

demo code for Rails on Campus Lab #3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 94.3%
  • CoffeeScript 3.8%
  • JavaScript 1.9%