By kajattun on Tag:

ผมกำลังเริ่มศึกษา Ruby

ก็เลยลอง run sample ที่มากับ netbeans
แต่มันขึ้น error ที่
undefined method `paginate' for #AdminController:0x15f5d8d

แก้ไขได้ยังไงบ้างครับ

ปล. เนื่องจากเขียนจาวาด้วย netbeans ก็เลยใช้ netbeans ครับ

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

Sikachu Mon, 08/12/2008 - 18:40

คิดว่าเป็นเพราะว่า Rails version ที่โค้ด example นั้นเขียนไว้มันเป็น version เก่ากว่าครับ เพราะว่า `paginate' นั้นมันถูกเอาออกจาก Rails ไปสักพักแล้ว (ไปใช้ gem `will_paginate' แทนครับ :))

แอบแนะนำว่า ให้ลองศึกษา Ruby โดยการศึกษาตาม tutorial ตามเว็บต่างๆ จะดีกว่าครับ ลอง train by example สร้าง weblog สักอันนึง ลองดูว่า Rails ทำอะไรได้บ้าง หรือจะดู Screencast สักรอบก็ดีครับ ;)

ไม่ได้มีอคติกับ Netbeans นะครับ แต่คิดว่าถ้าเรียนรู้โดยการที่เรา setup environment เอาเอง ลองใช้ text editor เขียนไฟล์ขึ้นมา แทนที่จะเป็น IDE น่าจะได้รสชาติกับการลองหัดทำดูมากกว่าครับ เพราะว่ายังไง ผมละยืนยัน .. `write less' อยู่แล้วครับ Ruby (on Rails)

ปล. ผมเข้าใจว่าคุณต้องการจะเรียนรู้ Ruby on Rails (web) ไม่ใช่เฉพาะ Ruby ถูกต้องใช่ไหมครับ? ปปล. http://rails66.com ครับ :) ___ บล็อกของผม: http://sikachu.com

ขอบคุณครับ ที่คุณ Sikachu ให้คำชี้แนะ
เดี๋ยวจะลองทำเองตามที่อย่างที่คุณ Sikachu แนะนำ
ว่าแต่พี่ๆส่วนใหญ่ใช้ Tools ตัวไหนกันครับ แนะนำทีครับ
แล้วสามารถทำให้ netbeans ใช้ gem 'will_paginate' ได้ไหมครับ

ปล.สำหรับเหตุผลหลักๆคือต้องการนำมาทำ web ครับ
และเพราะว่าในเครื่องมี netbeans ที่สามารถเขียน ruby อยู่แล้ว
ก็เลยเริ่มจาก Sample ที่มากับ netbeans ครับ

Sikachu Tue, 09/12/2008 - 01:13

  • ทำให้ Netbeans ใช้ will_paginate ได้ไหม .. อันนี้ผมไม่คล่องกับ Netbeans ครับ เลยไม่รู้ว่าจะ set ยังไงดี .. แต่ตามหลักแล้วน่าจะได้ครับ ลองค้นหาตาม google ดู :) .. gem ชื่อ will_paginate นี่ละครับ
  • ส่วนใหญ่ผมใช้ Text editor กันครับ ที่ทำงานผมใช้ Textmate กัน (ของ mac) แต่ถ้าบนวินโดวส์ ผมว่าที่เทพที่สุดคงเป็น E-Texteditor ครับ ลองโหลดมาใช้งานดูครับ
  • ผมไม่เคยเห็น Sample ของ Netbeans แฮะ .. แล้วผมก็ยังคงยืนยัน นั่งยัน และนอนยัน (- -") ว่าผมแนะนำให้เริ่มลองทำตาม tutorial ทั่วไป ที่เขาสอนตั้งแต่ rails projectname อะไรอย่างนี้เลย .. มันจะได้กว่าการที่จะต้องมาใช้ IDE ครับ :)

ปล. ที่ผมกล้าแนะนำให้ออกมาใช้ Text editor เพราะว่า Ruby on Rails นั้น ง่ายกว่าที่คิดครับ ไม่จำเป็นต้องใช้ IDE :)

บล็อกของผม: http://sikachu.com