配置有关问题。望多给些意见
发布时间:2011-06-29 18:41:37 文章来源:www.iduyao.cn 采编人员:星星草
配置问题。望多给些意见!
配置文件夹下的environment.rb
请给解释一下下面每个配置是配置什么的,谢谢!您要有经历就给介绍一下整个配置文件的配置项,十分感谢了。
如:
# config.i18n.default_locale = :de
是配置中文化的(或者更好的解释)。我把一些配置项发上,望给解释一下!我的是rails2.3.2版本。
1 # Settings in config/environments/* take precedence over those specified here.
2 # Application configuration should go into files in config/initializers
3 # -- all .rb files in that directory are automatically loaded.
4 # Add additional load paths for your own custom dirs
5 # config.load_paths += %W( #{RAILS_ROOT}/extras )
6 # Specify gems that this application depends on and have them installed with rake gems:install
7 # config.gem "bj"
8 # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
9 # config.gem "sqlite3-ruby", :lib => "sqlite3"
10 # config.gem "aws-s3", :lib => "aws/s3"
11 # Only load the plugins named here, in the order given (default is alphabetical).
12 # :all can be used as a placeholder for all plugins not explicitly named
13 # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
14 # Skip frameworks you're not going to use. To use Rails without a database,
15 # you must remove the Active Record framework.
16 # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
17 # Activate observers that should always be running
18 # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
19 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
20 # Run "rake -D time" for a list of tasks for finding time zone names.
21 config.time_zone = 'UTC'
22 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
23 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
------解决方案--------------------
1. 你不会是想让别人一句句和你解释吧配置的作用吧,我想这个你去搜索一下资料的好,或者找本书,毕竟论坛不是教室
2. link_to image_tag(...),....
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
Redmine+Git,在版本库菜单中404错误怎么回事?
在配置中用Git方式管理代码,加上了本地Git库路径:
/home/git/repositories/project.g...
-
一段RUBY代码,既不报错,但是不输出结果,帮忙看下
class Song
def initialize(name,artist,duration)
@name = name
@ar...
-
有没有人使用《Web开发敏捷之道》这本书的测试出了问题啊……
正在用《Web开发敏捷之道》第3版,测试这一块出现了问题,然后接着问题...
-
关于rake命令撤销 migrations
我这里遇到一个难题:
a.) ruby script/generation migration add_price_to_product_99 price:decima...
-
Ruby on Rails 如何实现完成大型数据库的实现与管理及维护
前些天在一家公司实习进行Web开发时 所用的语言是ruby 环境是 rails ...
-
RoR菜鸟求助
我在Windows系统上安装了ruby 1.9.3p0 (2011-10-30) [i386-mingw32],
然后安装了Rails 3.1.2,
因为mysql2 0.3.10没有w...
-
三个月可以做个EC网站吗?
像这种规模的:
http://www.infotop.jp
顺便问一下,在中国有这样的信息素材网站吗?
------解决方案-------...
-
网上的rails视频中用的是什么IDE
网上有一些老外的rails讲解视频,我想问下他们用的那个是什么IDE,不胜感激
------解决方案-------...
-
安装gem的路径问题
近日需要使用redis, 因为网络连不上gem, 我下载了源码准备本地安装.安装时一切顺利, gem list也显示已经安装...
-
ruby 连接 mysql 的问题
想用ruby 连接 mysql
修改database.yml
# SQLite version 3.x
# gem install sqlite3
#
# Ensure ...