文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Fedora ruby工程更方便的安装包

Fedora ruby工程更方便的安装包

时间:2010-09-26  来源:mydear

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

  1. ruby scriptgenerate model paper修改dbmigrate新的rb文件,里边加:t.column :name,:string
  2. rake db:migrate
  3. ruby scriptgenerate controller paper
  4. ruby scriptgenerate scaffold paper paper

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

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

  1. cd /usr/share/fonts/windows
  2. ttmkfdir .
  3. cp fonts.scale fonts.dir
  4. chkfontpath --add /usr/share/fonts/windows

以下是我安装的字体文件

  1. (Arial) - arial.ttf arialbd.ttf arialbi.ttf ariali.ttf
  2. (Tahoma) - tahoma.ttf tahomabd.ttf
  3. (Verdana) - verdana.ttf verdanab.ttf verdanai.ttf verdanaz.ttf
  4. (GB) - simsun.ttc
  5. (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了.

  1. http://www.railsapi.org/activerecord-base-set_primary_key
  2. set_primary_key
  3. Description
  4. set_primary_key(value = nil, &block)
  5. 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.
  6. Examples: add
  7. Suggest an example
  8. Examples currently must be approved.
  9. This means that when you submit the example, it will not show up on this page until approved (generally 24 hours)
  10. Enclose ruby in <code> tags to get it syntax highlighted.
  11. Description
  12. or Cancel
  13. Example:
  14. class Project < ActiveRecord::Base
  15. set_primary_key "sysid"
  16. end
  17. User Contributed Notes add
  18. Add Comment
  19. Name
  20. Email
  21. Title
  22. Body
  23. or Cancel
  24. No comments

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载