`
chinapkw
  • 浏览: 109104 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
1.1 创建一个Rails应用程序 $ rails app_name 可选项: -d, database=xxx 指定安装一个数据库(mysql oracle postgresql sqlite2 sqlite3 ), 默认情况下是数据库 -r, ruby-path= 指定Ruby的安装路径,如果没有指定,scripts使用env去找Ruby -f, freeze (冻结)freezes Rails ...
在windows环境下,旧版本的Rmagick安装完gem后,需要运行一个postinstall.rb来设置windows字体等。新版本的Rmagick没有这个步骤,代替是安装ImageMagick。我按照README安装成功后,在rails中使用还是出现无法读取字体的错误,忍无可忍又换了旧版本的Rmagick,没想到跟ruby的解释器版本不一致,render templage的时候出现parse error类型的错误。认真比对了下新老版本的差别,原来旧版本的Rmagick在Config目录下多了个type-windows.xml来设置windows字体,在此记录下正确的安装方法: 1.到htt ...
gem install memcache-client config/environments # For CachedModel #require 'rubygems' # In production.rb require 'cached_model' memcache_options = {   :c_threshold => 10_000,   :compression => true,   :debug => true,   :namespace => 'ning',   :readonly => false,   :urlencode => fals ...
1.在windows上安装Rmagic,如果你是通过gem安装的, require 'Rmagic' 要修改为: require 'rubygems' require 'Rmagick' 才能正确引入。 2.网上那个例子,画布是使用Rmagic内置的图像格式,Rmagic内置的图像格式还有: gradient* 梯度,比如gradient:red-blue granite 花岗石,比如: "granite:". logo logo型的图像. 如: "logo:",后面会多显示一个五角星^_^ netscape 非常漂亮的彩条。如: "net ...
  # Site URLs   map.with_options(:controller => 'site') do |site|     site.homepage          '',                                   :action => 'show_page', :url => '/'     site.not_found         'error/404',                          :action => 'not_found'     site.error             'error/ ...
呵。。不过用aptana做 rails 还比较方便的。。比如写一个 def active 回车后就自动加上 end 在rhtml中。。CTRL+? 自动生成注释 等。。用它开发。。还是不错的。呵
svn支持的也很好
Global site tag (gtag.js) - Google Analytics