Jdstor第一部分后台设计,4-4上传图片. 3.4 Using Partials--3.4.4 Passing Local Variables You can also pass local variables into partials, making them even more powerful and flexible. show.html.erb: <%= render partial:"image", locals:{product:@product} %>…
2016年12月10日 星期六 --出埃及记 Exodus 21:5 "But if the servant declares, `I love my master and my wife and children and do not want to go free,'倘或奴仆明说,我爱我的主人和我的妻子儿女,不愿意自由出去.…
2016年12月15日 星期四 --出埃及记 Exodus 21:10 If he marries another woman, he must not deprive the first one of her food, clothing and marital rights.若另娶一个,那女子的吃食,衣服,并好合的事,仍不可减少.…
20.1Time类 ,Data类 Time.now或者Time.new:获取当前时间. 相关Method: year, month, hour, min ,sec, wday: 一周中的第几天,返回整数.(0表示星期天) mday: the day in a month yday: the day in one year zone: 时区time zone , => "CST" Time.mktime(参数) > t = Time.mktime(2018,02,11,9,…