摘要: 首先,进入 setting\ide setting\editor\colors&fonts\font 其次,选择你喜欢的Scheme name,并且save as 最后,save as之后你就可以编辑字体的大小了!当然,也可以改变字体本身了! @_@!! 上述方法是在一贴吧看到的,忘记保存链接了,原 阅读全文
posted @ 2013-07-20 18:04 lmei 阅读(3637) 评论(0) 推荐(0) 编辑
摘要: 1. 在migrate文件夹中找到xxxx_create_articles.rb文件 1 class CreateArticles < ActiveRecord::Migration 2 def self.up 3 create_table :articles do |t| 4 t.column : 阅读全文
posted @ 2013-07-20 17:52 lmei 阅读(828) 评论(0) 推荐(0) 编辑
摘要: App文件夹子文件夾功能介绍 (1)controllers 存放驱动业务逻辑的控制器 (2)helpers 存放视图辅助类,一些常用的代码段 (3)mailers Rails3中新增,用于存放与邮件服务相关的类 (4)models 存放数据描述结构、验证和完整性规则等模块 (5)views 存放生成 阅读全文
posted @ 2013-07-20 16:42 lmei 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 之前将rails升级到4.0版本,发生了ActiveModel::ForbiddenAttributesError错误 于是上网溜达了一会,找到解决方案, ActiveModel::ForbiddenAttributesError错误有可能是因为进级到rails 4.0引起的, 此时要将contro 阅读全文
posted @ 2013-07-20 16:34 lmei 阅读(385) 评论(0) 推荐(0) 编辑
摘要: >rails g controller home index 运行该命令时无法连接mysql 先下载配置文件:mysql-connector-c-noinstall-6.0.2-win32.zip 解压后在lib文件夹中找到 libmysql.dll 配置文件 然后将该配置文件解压后复制到Rails 阅读全文
posted @ 2013-07-20 16:28 lmei 阅读(740) 评论(0) 推荐(0) 编辑