
Rails-Hobo
1fuyi
这个作者很懒,什么都没留下…
展开
-
hobo中的继承
hobo能够自动处理继承 例:从user继承employee 先建立资源 hobo g model employee birthday:date 直接更改:employee.rb class Employee < ActiveRecord::Base hobo_model # Don't put anything above this fields do ...原创 2011-11-15 00:44:23 · 165 阅读 · 0 评论 -
改变 Hobo 编辑后的默认跳转到 index 页面
hobo 中的对记录编辑后,默认是跳转到 show页面 以下可改变默认跳转到 index [code="java"] class ContactsController < ApplicationController hobo_model_controller auto_actions :all def update hobo_update do ...原创 2011-11-17 00:36:29 · 201 阅读 · 0 评论 -
为程序增加tag功能
http://hobo.tylerlesmann.com/entries/4-make-a-blog-with-hobo-tagging In this episode, we’ll add tagging support to our blog. Features of this lesson will be applicable to any many-to-many relations...原创 2013-03-26 11:02:00 · 274 阅读 · 0 评论 -
sti rails 注意事项
环境变量: [code="java"] config.active_record.mass_assignment_sanitizer = :logger # :restrict in application.rb: config.active_record.whitelist_attributes = false [/code] 参考网址: http://hobocent...原创 2013-03-30 10:58:14 · 172 阅读 · 0 评论