论坛首页 编程语言技术论坛

rails 1.2 rc1 出来了

浏览 15344 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2006-11-24  
http://weblog.rubyonrails.org/2006/11/23/rails-1-2-release-candidate-1
   发表时间:2006-11-24  
ActionController::Resources
script/generate scaffold_resource


wow!
0 请登录后投票
   发表时间:2006-11-24  
一定要学习1.2新特性
0 请登录后投票
   发表时间:2006-11-24  
REST and Resources,Formats and respond_to,Prototype这几个新功能N不错......
0 请登录后投票
   发表时间:2006-11-24  
开发中的ROR站点,能不能直接升级到1.2rc1?
0 请登录后投票
   发表时间:2006-11-24  
好像服务器已经改成mongrel了,不过我升级以后怎么连controller也找不到了?
Expected script/../config/../app/controllers/user_controller.rb to define UserController
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:246:in `load_missing_constant'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:446:in `const_missing'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:458:in `const_missing'
./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:162:in `constantize'
./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'
./script/../config/../vendor/rails/actionpack/lib/action_controller/routing.rb:1250:in `recognize'
./script/../config/../vendor/rails/railties/lib/dispatcher.rb:40:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:84:in `process'
/usr/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:83:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:267:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:127:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:482:in `load'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:482:in `load'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:337:in `new_constants_in'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:482:in `load'
./script/../config/../vendor/rails/railties/lib/commands/servers/mongrel.rb:52
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in `require'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:337:in `new_constants_in'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:489:in `require'
./script/../config/../vendor/rails/railties/lib/commands/server.rb:39
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
script/server:3

0 请登录后投票
   发表时间:2006-11-24  
直接从SVN提取的代码就是上面这个问题, http://weblog.rubyonrails.org/2006/11/23/rails-1-2-release-candidate-1 这里介绍的方法是:
gem install rails --source http://gems.rubyonrails.org --include-dependencies

完了把config/environment.rb里面修改一下:
RAILS_GEM_VERSION = '1.1.6.5618'

就可以启动了,有一堆DEPRECATION WARNING。
问题又来了,我使用的login engine也出错:
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:399:in `to_constant_name': Anonymous modules have no name to be referenced by

RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_record/base.rb:1363:in `compute_type'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:211:in `qualified_name_for'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:470:in `const_missing'
(eval):1:in `compute_type'
app/controllers/user_controller.rb:48:in `login'
0 请登录后投票
   发表时间:2006-11-24  


老版本还没弄通呢!新版本就出来了!努力学习中ing!
0 请登录后投票
   发表时间:2006-11-25  
qiezi 写道

就可以启动了,有一堆DEPRECATION WARNING。
问题又来了,我使用的login engine也出错:
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:399:in `to_constant_name': Anonymous modules have no name to be referenced by

RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5618/lib/active_record/base.rb:1363:in `compute_type'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:211:in `qualified_name_for'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5618/lib/active_support/dependencies.rb:470:in `const_missing'
(eval):1:in `compute_type'
app/controllers/user_controller.rb:48:in `login'

把login engine下的app/models/下的文件复制到项目的models下,可以用了。

另外InfoQ上给的安装方法是:
rake rails:freeze:edge TAG=rel_1-2-0_RC1

这个比较好,不升级系统,只在项目的vendor下增加一个rails目录,不使用1.2时可以把它移走或删除。
0 请登录后投票
   发表时间:2006-11-25  
发现一个大BUG,我有一个model中写了一个方法,使用1.2第一次访问时正常,刷新一次就会提示找不到这个方法。在development和production中都一样。不过我无法用简单的代码重现这个问题。
0 请登录后投票
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics