- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 山丘的首个实用程序 - I18N 中文错误提示
左百度,右google。终于找到了实现中文错误提示的办法,参考的帖子为http://www.iteye.com/topic/280917http://www.iteye.com/topic/469505因为是简单的程序,提示错误在一起还是可以的,所以采用了第一个帖子的方法,虽然我只要中文,不需要英,法,日,德的提示,还是用i18n这个大刀来实现中文错误提示。首先安装插件i18n_g...
2010-03-06 00:12:43 154
原创 山丘的首个实用程序
看了较多的中、英文教程,书中代码也照猫画虎,练了一下,终于到了可以出师的水平!(自我感觉 :)) 先来一个商品图片的程序练练手,有3多万种商品,分成1200各小类,然后把每个商品的图片上传。模型分为categry,product,photo 和user,做为用户登录管理。万事具备,go!前提: 我的开发环静为windows2003 + instantRails(Rails版本2.3...
2010-03-05 23:32:00 89
测试代码笔记-RailsSpace
[code="java"]def test_about get :about title = assigns(:title) assert_equal "About RailsSpace", title [color=blue]assert_response :success[/color] assert_template "about"end[/code]as...
2009-03-16 16:58:49 107
RecordActive中default_errors_messages的改变
正在看railsspace_building_a_social_networking_website_with_ruby_on_rails一书,Rails_Space的测试代码,在测试时发现用下列验证输入信息过长的错误。在Rails2.2.2中发生错误。error_messages = ActiveRecord::Errors.default_error_messagessprintf(e...
2009-03-15 10:19:52 165
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人