rails 新人培训提纲

第一天:学习基本的rails做法,写一个博客作为例子。学习model,controller,helper,views, migration,router,asset pipeline的基本用法。建议课外了解validator和callback。

第二天:
   further in application.rb and initializers/ directory.
   further in model:association, validation , callback , observer。
   further in router: nested,scope……
   further in views : nested form, ujs, coffee script, scss
   sth helpful in activesupport and helper methods
   建议课外了解mailer.

第三天:学习gem/plugin模式和generator模式。在博客基础上,用formtasitic做表单,用kaminari做分页,用acts_as_taggable_on做tag。利用enginex写一个gem。写一个generator例子。建议课外了解thor。


第四天:以rsepc为场景学习rails下的TDD。machinist + rspec2。学习rspec2内的一些新的convention,let方法等。建议课外了解cucumber和inline test。

第五天:rake task 和 rack。没想好。

猜你喜欢

转载自up2u0609.iteye.com/blog/1122046