11月27日 招聘网第七部分,.gitignore的用法。

回想Rails --Active Record Query Interface--Scopes的基本用法:

1.Passing in arguments.例子:scope  :name , -> {order("..")}

2.Using conditionals.             scope :name, -> {where(...)} 


单词:migrate:

1. if people migrate, they go to live in another area or country, especially in order to find work.

2. (computer) to move information or software from one computer system to another.


11-2(解答)招聘网站第七部

  • 送出的履历网址是:/jobs/1/resumes/new
设计controller的时候,注意参数的传递写法:⚠️ :@job = Job.find(params(:job_id))

设计views中的new.html.erb的时候,注意:注意 : simple_form_for [:job, @resume] do |f|

 

 rails new 后会产生一个.gitignore文件。用于记录不想加入git版本控制的文件,凡是记录到这个文件的文件都不会上传到git。

这是原文文件:    https://help.github.com/articles/ignoring-files/

posted @ 2017-11-27 19:54  Mr-chen  阅读(107)  评论(0编辑  收藏  举报