随笔分类 - ruby on rails
摘要:1.创建controler: welcome ;action: index $ rails generate controller welcome index 2.创建名为Article的model定义title:string text:text$ bin/rails generate model
阅读全文
摘要:知识点 1.html 选择时间的input标签 Date.today.to_s 2. action 返回json 数据 3. 返回到article 数据到view redirect_to article_path(@article) 4. permit 方法允许在动作中使用 title 和 text
阅读全文

浙公网安备 33010602011771号