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

          rails記錄

          Posted on 2008-12-03 02:53 leekiang 閱讀(445) 評論(0)  編輯  收藏 所屬分類: ruby
          1,在以下的文章中找到bort這個rails應用
          http://www.railsinside.com/elsewhere/100-7-barebones-rails-apps-to-kick-start-your-development-process.html
          ? 下載bort,放到netbeans6.5中,設置為主項目,啟動報錯,第一次報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',然后就可以啟動了。執行ruby db/migrate,重啟后,首頁能進,但注冊一個用戶提交后報
          Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
          這個發生在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)


          主站蜘蛛池模板: 白朗县| 临汾市| 龙门县| 景东| 大安市| 临安市| 安龙县| 新田县| 锦州市| 宁化县| 长兴县| 石渠县| 延庆县| 忻州市| 枣阳市| 旬阳县| 马边| 手机| 瑞安市| 衡东县| 尖扎县| 观塘区| 鄯善县| 拉萨市| 奉贤区| 乌兰浩特市| 和田市| 华容县| 娄烦县| 自治县| 林州市| 平舆县| 四平市| 盐亭县| 霍山县| 庐江县| 涪陵区| 贵阳市| 游戏| 永川市| 宣化县|