![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ROR
DHQ-ZH
这个作者很懒,什么都没留下…
展开
-
Rails-----Model与表名不一致咋办?
在Rails中.默认的表名是实体的复数.如果我们表已经建好.没有满足rails的规则怎么办.不要担心啦.rails框架已经充分考虑到我们这个需求;那就是 set_table_name for example:class Employee < ActiveRecord::Base11 set_table_name "employee"...原创 2011-04-29 16:11:07 · 237 阅读 · 0 评论 -
ror-常见错误
ActionController::InvalidAuthenticityToken解决办法1、在Controller中加入 class FooController < ApplicationController protect_from_forgery :except => :index # you can disable csrf protecti...原创 2011-04-06 16:14:59 · 203 阅读 · 0 评论