打印

新手,请多指教

新手,请多指教

我是Phper,最近对框架很感兴趣,听说rails框架是最好的框架之一,所以想从ror上找点灵感
我下载了最新的rails2.0.2,却发现跟以前的教材好多都不一样,
我现在很难决定是直接学习2.0.2还是按经典教材里的环境学习。
期待大家的建议

TOP

其实2.0变化最大的就是全面基于REST,目前2.0的书还没有跟上,如果是初学,先学习1.2也未尝不可,等书籍跟上了,自己也对rails有一定了解了,再跟进2.0也不迟。
First they ignore you, then they laugh at you, then they fight you, then you win.

TOP

谢谢管理员的建议。
然后我有个问题,能用gem下载到以前的rails版本吗?就是你说的1.2版
还有rails对ruby的版本挑剔吗?现在官网上的ruby 1.8.6能用上1.2版本的rails吗?

TOP

我发现这论坛都是html耶跟个贴看看文件名会不会变……

TOP

复制内容到剪贴板
代码:
E:\>gem help install
Usage: gem install GEMNAME [GEMNAME ...] [options] -- --build-flags [options]

  Options:
        --platform PLATFORM          Specify the platform of gem to install
    -v, --version VERSION            Specify version of gem to install

  Install/Update Options:
    -i, --install-dir DIR            Gem repository directory to get installed
                                     gems
    -d, --[no-]rdoc                  Generate RDoc documentation for the gem on
                                     install
        --[no-]ri                    Generate RI documentation for the gem on
                                     install
    -E, --env-shebang                Rewrite the shebang line on installed
                                     scripts to use /usr/bin/env
    -f, --[no-]force                 Force gem to install, bypassing dependency
                                     checks
    -t, --[no-]test                  Run unit tests prior to installation
    -w, --[no-]wrappers              Use bin wrappers for executables
                                     Not available on dosish platforms
    -P, --trust-policy POLICY        Specify gem trust policy
        --ignore-dependencies        Do not install any required dependent gems
    -y, --include-dependencies       Unconditionally install the required
                                     dependent gems
        --[no-]format-executable     Make installed executable names match ruby.
                                     If ruby is ruby18, foo_exec will be
                                     foo_exec18

  Local/Remote Options:
    -l, --local                      Restrict operations to the LOCAL domain
    -r, --remote                     Restrict operations to the REMOTE domain
    -b, --both                       Allow LOCAL and REMOTE operations
    -B, --bulk-threshold COUNT       Threshold for switching to bulk
                                     synchronization (default 1000)
        --source URL                 Use URL as the remote source for gems
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations
    -u, --[no-]update-sources        Update local source cache

  Common Options:
    -h, --help                       Get help on this command
    -V, --[no-]verbose               Set the verbose level of output
    -q, --quiet                      Silence commands
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging


  Arguments:
    GEMNAME       name of gem to install

  Summary:
    Install a gem into the local repository

  Defaults:
    --both --version '>= 0' --rdoc --ri --no-force
    --no-test --install-dir D:/ruby/lib/ruby/gems/1.8
gem install 默认安装最新版本,你可以使用--version选项安装指定的版本,当然包括1.2
First they ignore you, then they laugh at you, then they fight you, then you win.

TOP

谢谢版主的细心解答

TOP