Nexus Weblogging
ChinaonRails
You are here ChinaonRails > Ruby on Rails > > 窥rails3 早体验之

bd7lx


56.126%

disconnected
登录后回复主题 | 跳到回复(40)

窥rails3 早体验之

... by bd7lx ... 7 月 15 天前 ... 1497 次点击

http://chinaonrails.com/topic/view/2959.html

讨论了rails3从不确定性的特性走向实际的过程

越来越多上手体验升级到rails3pre

http://omgbloglol.com/post/344792822/the-path-to-rails-3-introduction



rails3的模样,图画big pictures也越来越清晰

textmate 准备好,您呢?
http://darwinweb.net/articles/81

Tm_syntax_highlighting Plugin Updated for Rails 3


3 - 1-29 10:03
bd7lx 楼主 深圳
http://cardarella.blogspot.com/2010/01/rails-2-rails-3-side-by-side.html

幻灯片
http://www.slideshare.net/kuahyeow/rails-3-cool-new-things
7 - 2-1 17:20
bd7lx 楼主 深圳
http://omgbloglol.com/post/364624593/rails-upgrade-is-now-an-official-plugin

To use it now, simply install the plugin:

script/plugin install git://github.com/rails/rails_upgrade.git
The plugin adds the following tasks:

rake rails:upgrade:check # Runs a battery of checks on your Rails 2.x app
# and generates a report on required upgrades for Rails 3
rake rails:upgrade:gems # Generates a Gemfile for your Rails 3 app out of your config.gem directives
rake rails:upgrade:routes # Create a new, upgraded route file from your current routes.rb
8 - 2-2 11:13
bd7lx 楼主 深圳
http://blog.peepcode.com/tutorials/2010/live-coding-rails-3-upgrade

视频25分钟
不到100mb
converted a Rails 2.x app to Rails 3.0.

10 - 2-4 14:13
bd7lx 楼主 深圳
http://lindsaar.net/2010/1/31/validates_rails_3_awesome_is_true

验证方法上出奇之处

可以跟参数 an attribute, followed by a hash of validation options.

validates_with 任何类(比如放到lib里的)只要
class HumanValidator < ActiveModel::Validator

还有可以有条件的执行验证
14 - 2-8 15:50
bd7lx 楼主 深圳
http://litanyagainstfear.com/blog/2010/02/03/the-rails-module/

Railties now deprecates:

RAILS_ROOT in favour of Rails.root,
RAILS_ENV in favour of Rails.env, and
RAILS_DEFAULT_LOGGER in favour of Rails.logger.

Rails.class
17 - 2-12 13:21
bd7lx 楼主 深圳
http://blog.js.hu/2010/02/06/getting-familiar-with-rails-3/

rubygems 版本得 1.3.5

Second issue: shallow nesting
It seems rails 3.0.0.beta doesn’t have support for shallow nesting. Or at least the new native implementation doesn’t contain it. The funniest part is it seems nobody cares about it.

还有蹦豁牙的插件们
http://chinaonrails.com/topic/view/3717.html
19 - 2-17 16:57
bd7lx 楼主 深圳
http://blog.xdite.net/?p=1526

Rails3 架構與進展 Part.2 - model

Rails3 架構與進展 Part.2 - routes

http://blog.xdite.net/?p=1509
20 - 2-23 8:33
bd7lx 楼主 深圳
http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/

Rails3世界:使用新的命令rails(五)
23 - 2-26 8:14
bd7lx 楼主 深圳
http://railscasts.com/episodes/202-active-record-queries-in-rails-3

Rails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in named scopes.
24 - 3-1 10:58
bd7lx 楼主 深圳
http://www.dev-fr.com/archives/2010/02/27/rails-3-let-activerecord-manage-your-translations/

Rails 3 开创新时代,把翻译放在数据库里存ActiveRecord-baked database.

参考上面9楼

http://chinaonrails.com/topic/view/2644.html
25 - 3-2 10:27
bd7lx 楼主 深圳
接上帖

http://nextsprocket.com/tasks/gettext-on-rails-3-0-0-beta

可能完成的任务
Create a fully functional multilingual demo app with Rails 3.0.0.beta using gettext for i18n.

在3月23日前完成
26 - 3-8 9:47
bd7lx 楼主 深圳
http://ihower.tw/blog/archives/3917


在 Rails3 中使用 jQuery
by ihower
29 - 3-24 8:30
bd7lx 楼主 深圳
http://www.ibm.com/developerworks/web/library/wa-introrails3/index.html?ca=drs-

All aboard! An introduction to Rails 3
刊载于IBM的开发网 可下载pdf
30 - 3-30 8:57
bd7lx 楼主 深圳
http://www.viget.com/extend/rails-3-generators-hooks/

Rails 3 generator API 可提供自定义的generator通过钩子或插件

比如用 mongomapper generator 替代缺省的active_record generator 来生成自定义的模型代码
33 - 4-3 17:07
阿昭 地球
我也来为楼主添加一些
在mac上使用rails3
用这个
http://bitnami.org/stack/rubystack
下载:
http://bitnami.org/files/stacks/rubystack/2.0-3/bitnami-rubystack-2.0-3-osx-x86-installer.app.zip
mac上基本这个最好用了
34 - 4-20 10:38
bd7lx 楼主 深圳
35 - 5-25 10:14
bd7lx 楼主 深圳
37 - 6-8 9:37
bd7lx 楼主 深圳
http://www.stjhimy.com/posts/4

用rvm装同一ruby版本下的不同版本rails
Using RVM GEMSETS to manage multiple rails installations in the same ruby version

http://bcardarella.com/post/699582642/rvm-gemsets-bundler-awesome
38 - 7-6 8:36
bd7lx 楼主 深圳
http://blog.plataformatec.com.br/2010/07/new-active-record-scoping-syntax

留意即将过期的参数
In short, passing options hash containing :conditions, :include, :joins, :limit, :offset, :order, :select, :readonly, :group, :having, :from, :lock to any of the ActiveRecord provided class methods, is now deprecated.
.

http://chinaonrails.com/topic/view/3550.html
39 - 8-3 10:25
bd7lx 楼主 深圳
接承37楼

Simple alias for changing to the current RVM Gemset directory

别名cdgems

Stick this in your .bash_profile and run 'cdgems' if you're using RVM. It will open a new terminal tab and cd to the correct directory.

http://gist.github.com/499070

function cdgems() {
/usr/bin/osascript -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down"
/usr/bin/osascript -e "tell application \"Terminal\" to do script with command \"cd $GEM_HOME/gems\" in window 1"
/usr/bin/osascript -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"k\" using command down"
return 0
}

alias cdgems=cdgems

40 - 8-6 11:20
bd7lx 楼主 深圳
http://www.stjhimy.com/posts/10-five-quick-steps-to-set-up-rvm-with-rails-2-and-rails3

rvm利用gemset做 2 3切换



$ rvm use 1.8.7@rails2
$ rails -v
Rails 2.3.5

Switching to rails 3:

$ rvm use 1.8.7@rails3
$ rails -v
Rails 3.0.0.rc

看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
电子邮件或昵称
密码
当前热门主题  野心勃勃的用“饭桶”来部署git ... 34 篇回复
© 2006-2010 A Jesse Cai Production   -   About   -   京ICP备07020911号
a site powered by Project Babel