rails kick start

ปกติผมเป็นคนขี้เกียจทำอะไรแบบเริ่มต้นมาก เวลาจะ start project ทีก็จะหาพวกที่เขาทำระบบ authenticate มาให้แล้วส่วนหึง อย่างเช่น Bort แต่หลังๆๆเหมือน Bort จะทำท่ารอ Rails 3.0 หรือกะไรไม่ทราบได้ จึงต้องออกแรงเองหน่อย โดยใช้ rails 2.3.8 กับ authenligic_bundle วิธีใช้ก็แสนง่าย
 $ rails <your-app> -m http://github.com/tsechingho/authlogic_bundle/raw/master/templates/remote.rb
หรือถ้ามี app อยู่แล้วแต่ยังไม่มีระบบ authen ก็ให้ใช้
  $ cd <your-app>
  $ git submodule add git://github.com/tsechingho/authlogic_bundle.git vendor/plugins/authlogic_bundle
  $ rake rails:template LOCATION=vendor/plugins/authlogic_bundle/templates/base.rb SCM=g
แล้วก็สั่ง

  $ rake db:seed
เป็นอันพร้อมใช้งาน

Posted by Revolution Thu, 17 Jun 2010 06:14:08 GMT

Comments - (Leave a comment)

    Trackbacks

    Use the following link to trackback from your own site:
    /articles/trackback/2214

      Leave a comment