随笔分类 -  ruby on rails

摘要:vagrant file 配置 阅读全文
posted @ 2016-06-13 14:01 上官帅帅 阅读(531) 评论(0) 推荐(0)
摘要:1.创建controler: welcome ;action: index $ rails generate controller welcome index 2.创建名为Article的model定义title:string text:text$ bin/rails generate model 阅读全文
posted @ 2016-02-14 17:32 上官帅帅 阅读(247) 评论(0) 推荐(1)
摘要:知识点 1.html 选择时间的input标签 Date.today.to_s 2. action 返回json 数据 3. 返回到article 数据到view redirect_to article_path(@article) 4. permit 方法允许在动作中使用 title 和 text 阅读全文
posted @ 2016-01-29 14:50 上官帅帅 阅读(273) 评论(0) 推荐(1)