2017 May 29 ~ June 4【泰國 素叻他尼 Surat Thani Thailand 🌊⛵️✈️👭】Ratchaprapa Dam, Koh Samui, Khao Sok National Park

圖片
My first trip to Surat Thani Thailand!

Ratchaprapa Dam is located in South Thailand and I highly recommend it as a destination if you are nature-loving traveller and considering traveling in Thailand.
We had wonderful two night stay at Keree Warin Resort which was a raft house accommodation on the lake. This lake is big, as I think it took around 30 minutes of travel by long tail boat to reach our resort.
We spent our time enjoying the breath-takingly beautiful views, swimming and canoeing around the vicinity of the raft house.It's really a great place to relax and have some quiet time in beautiful surrounding.


















Undefined Method 'length' for Enumerable when calling truncate method in Rails 2.2

日前發現為了使用 Rails 新版的 facebooker plugin 必須將原本的應用程式從 Rails 2.1.x 開發環境升級到 Rails 2.2.x 以上版本,而在升級之後出現了一些問題,其中之一是 Truncate 的問題,啟動 mongrel server 後會出現錯誤訊息:

undefined method length' for #

解決方式只要修改 text_helper.rb 裡面的 truncate_html 和 truncate method 即可:

那麼當我們在視圖中使用如下代碼時:

就可以正常顯示 truncate 效果了。

熱門文章

[轉載] 洛克菲勒寫給兒子的38封信(全文)

2012 アルプスの夏:飛騨・北阿爾卑斯山脈南部の焼岳/槍・穂高連峰/表銀座単独縦走記錄。Day1、Day2 台北~富山~高山~上高地~小梨平露營場~焼岳北峰

September, 2012 白姑大山二天一夜~其實沒那麼累,只是路途遙遠

日本の登山の歷史

2018 May 5~6【宜蘭】南方澳漁港~豆腐岬~朝陽國家步道~南澳觀音海岸~礁溪福哥石窯雞

[平成26年7月12日~13日]夏雲湧く北アルプスへ!白馬大雪渓から白馬三山テント泊縦走と鑓温泉~お花畑と雲上の温泉が待ってます!(白馬岳、杓子岳、白馬鑓ヶ岳)

2013.5.25~26【新阿溪縱走】眠月線鐵道線探勘。順登松山、萬歲山、小笠原山、對高岳

文章列表

聯絡我

名稱

以電子郵件傳送 *

訊息 *