Up Version Rails

  • warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
  • warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.

ผมมี Code ที่ set Version ใน environment ไว้ว่า RAILS_GEM_VERSION = ‘1.2.5’

แล้วผม Up Version ของ Rails เป็น 2.0.2 แล้วจะ ทำการแก้ไข Code เก่าให้ใช้ไปใช้ของ Version ใหม่

ได้ยังงั้ยบ้างครับ หรือมี plugins ที่ช่วยเรื่องนี้ไหมครับ

sirn's picture

เปลี่ยนแถว 1.2.5 เป็น RAILS_GEM_VERSION="2.0.2" หรือไม่ก็ freeze 2.0.2 ลงไป

คือผมลองใช้ ตัว deprecated ครับ

พอเรา rake ดู จะได้ list ในสิ่งที่เราต้องแก้ใน ในการ Up Ver 2

ทำให้ชีวิตง่ายขึ้นครับ

ขยายความหน่อยครับ ว่า deprecated คืออะไร แล้วใช้ยังไงครับ

********เปลี่ยนแถว 1.2.5 เป็น RAILS_GEM_VERSION=”2.0.2”******** ต้องไปเปลี่ยนที่ไฟล์ไหนครับ งงๆ

apirak's picture

ไฟล์ environment.rb ครับ

ย้าย Codenone

ประกาศย้าย Codenone ไปใช้ Forum ของ Blognone แทนครับ ตามไปตั้งกระทู้ต่อได้ที่ Codenone Forum (รายละเอียดอ่านจากกระทู้ ย้าย Codenone ไปรวมกับ Blognone)

กระทู้เก่าๆ จะย้ายตามไปในภายหลัง ตอนนี้ปิดการโพสต์กระทู้ไว้ เหลือไว้เฉพาะอ้างอิงเท่านั้น