Fedora ruby工程更方便的安装包是什么

54次阅读
没有评论

共计 1973 个字符,预计需要花费 5 分钟才能阅读完成。

这篇文章将为大家详细讲解有关 Fedora ruby 工程更方便的安装包是什么,丸趣 TV 小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

想知道到 Fedora ruby 工程系统的真相么,想知道 Fedora ruby 工程系统中藏有的内在奥义么,只有我来给大家全面讲解介绍 Fedora ruby 工程系统 *** 个工程建立 rails 工程 rails –Fedora ruby 工程 =path 工程锁在的 path 修改 environment 里的 database.yml 然后做例子重启服务器 Fedora ruby 工程 script\server 关闭 control c 访问地址 http://localhost:3000/chinese/list

ruby script\generate model paper 修改 db\migrate\ 新的 rb 文件,里边加:t.column :name,:string rake db:migrate ruby script\generate controller paper ruby script\generate scaffold paper paper

fc6 更方便的安装包下一个 yumexsudo yum install yumex 在 yumex 可以直接选一个安装用 yum 的话就要输命令字体问题操作系统语言选择了 english,中文就变成了乱码。

需要安装字体 * 字体安装将 Microsoft Windows(windows\fonts\) 的相应 TrueType 拷贝到 Fedora ruby 工程相应目录。我是放在 /usr/share/fonts/windows 目录下。然后以 root 执行下面的命令

cd /usr/share/fonts/windows ttmkfdir . cp fonts.scale fonts.dir chkfontpath --add /usr/share/fonts/windows

以下是我安装的字体文件

(Arial) - arial.ttf arialbd.ttf arialbi.ttf ariali.ttf (Tahoma) - tahoma.ttf tahomabd.ttf (Verdana) - verdana.ttf verdanab.ttf verdanai.ttf verdanaz.ttf (GB) - simsun.ttc (BIG5) - mingliu.ttc

装了 gb 和 big5 后,网页和 openoffice 里的中文就没问题了。开发 oracle 应用需安装 OCI 从 http://Fedora ruby 工程 forge.org/frs/?group_id=256 release_id=12694 上下载然后 cmd 中运行 Fedora ruby 工程 ruby-oci8-1.0.0-rc3-mswin32.rb 即安装成功,就可以 rake db:migrate 了.

http://www.railsapi.org/activerecord-base-set_primary_key set_primary_key Description set_primary_key(value = nil,  block) Sets the name of the primary key column to use to the given value, or (if the value is nil or false) to the value returned by the given block. Examples: add Suggest an example Examples currently must be approved. This means that when you submit the example, it will not show up on this page until approved (generally 24 hours) Enclose ruby in  code  tags to get it syntax highlighted. Description or Cancel Example: class Project   ActiveRecord::Base set_primary_key  sysid  end User Contributed Notes add Add Comment Name Email Title Body or Cancel No comments

关于“Fedora ruby 工程更方便的安装包是什么”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-25发表,共计1973字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)