MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          rails記錄

          Posted on 2008-12-03 02:53 leekiang 閱讀(445) 評論(0)  編輯  收藏 所屬分類: ruby
          1,在以下的文章中找到bort這個rails應(yīng)用
          http://www.railsinside.com/elsewhere/100-7-barebones-rails-apps-to-kick-start-your-development-process.html
          ? 下載bort,放到netbeans6.5中,設(shè)置為主項目,啟動報錯,第一次報capistrano的錯誤,我在environment.rb中把那幾個config.gem屏蔽了。接著又報 `load_missing_constant': uninitialized constant Authorization::AasmRoles::AASM (NameError) ,我照著http://rails_security.lighthouseapp.com/projects/15332/tickets/10-uninitialized-constant-authorization-aasmroles-aasm-nameerror這個鏈接里的做法
          在application.rb的ApplicationController里加了一行require 'aasm',然后就可以啟動了。執(zhí)行ruby db/migrate,重啟后,首頁能進,但注冊一個用戶提交后報
          Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
          這個發(fā)生在app/views/users/new.html.erb
          暫時就到這里了,以上大多不懂,先作個記錄。

          2,這是一個基于2.2.2的例子,名叫starter
          http://github.com/josevalim/starter/tree/master/app
          可以在github里搜2.2.2,或在code search里搜索RAILS_GEM_VERSION = '2.2.2',以尋找基于2.2.2的例子。
          http://github.com/brainopia/shop/tree/master
          http://github.com/ccjr/play-eoj/tree/master
          http://github.com/Radar/rboard/tree/master
          http://github.com/rbarazi/simple_blog/tree/master
          http://github.com/csiszarattila/webshop/tree/master
          http://github.com/bushymark/depot/tree/master

          運行starter,卻報
          ? Missing these required gems:
          ? win32console
          ? ruby-debug
          ? ruby-prof

          然后
          starter>rake gems:install
          (in c:/starter)
          rake aborted!
          no such file to load -- spec/rake/spectask
          C: /starter/rakefile:10
          (See full trace by running task with --trace)


          主站蜘蛛池模板: 桐乡市| 迁西县| 洪湖市| 榆林市| 壤塘县| 甘南县| 磐安县| 化州市| 靖西县| 泾川县| 玛沁县| 施甸县| 云龙县| 辽阳县| 永靖县| 搜索| 乐都县| 汝城县| 安徽省| 扎赉特旗| 平乡县| 桐庐县| 斗六市| 江城| 高陵县| 抚州市| 津南区| 班戈县| 瓦房店市| 榆中县| 宁海县| 通海县| 沙河市| 盐边县| 新晃| 清原| 屯留县| 东城区| 白山市| 东台市| 舟山市|