You are here: Blogsphere Longtail

Rails BlogSphere

BlogSphere

Keep up to date with your favourite Rails bloggers in context.

Read more about how it works


Surf_s_up OK, that's awkward--an Angels fielding error on a pop fly scores 3 runs. (via Twitter)

by Brian Del Vecchio | 1 day ago | Read more

Twitter posted a message on Twitter
“OK, that's awkward--an Angels fielding error on a pop fly scores 3 runs.”

Kristen Wiig, cute.

by Kevin Burg | 1 day ago | Read more



Kristen Wiig, cute.

Karl Rogue Amoeba - Fission: Lossless Audio Editor for Mac OS X

by Rick Bradley | 1 day ago | Read more

Rogue Amoeba - Fission: Lossless Audio Editor for Mac OS X: (posted by cardioid)

[Tumblr] That’s the lady from Firefly in the weird laser surgery ad...

by Gabriel Handford | 1 day ago | Read more



That’s the lady from Firefly in the weird laser surgery ad down the block from my house, right? (via The Sound of Young America: Firefly Lady: Tratamientos Laser?)

Surf_s_up @gobigdave do you recognize the guy behind home plate? I think it's a retired umpire. (via Twitter)

by Brian Del Vecchio | 1 day ago | Read more

Twitter posted a message on Twitter
“@gobigdave do you recognize the guy behind home plate? I think it's a retired umpire.”

links for October 5th

by Tom Armitage | 1 day ago | Read more

All This ChittahChattah » The Conversation, and The Technology "There’s a lot of great technology imagery… Here’s a sampling of stills depicting the awesomeness:" Beautiful. (If I had to have a favourite film, it would still be The Conversation). (tags: technology movies audio theconversation retro imagery coppola via:brandonnn ) IDEO Labs » Hello World! "Normally, one of the first [...]

RISC and CISC Architectures

by Jonathan Clarke | 1 day ago | Read more

Gmail, Blocked Boxes, and Customer Support

by Diego Orjuela | 1 day ago | Read more

I am not usually one to write a post that is just a link to another post. However, in this case, I think it is absolutely necessary for everyone to read. Not to mention the recent “hacking” of VP-hopeful Palin’s email, others have been victims of lockouts and boilerplate “We’re so sorry…” messages. So today I [...]

Polaroids

by Daniel Weinand | 1 day ago | Read more

Raw instant film: Penelope (Sutherland, MIM)
make-up: Sommer Mbonu, hair: Anne-Marie Rooney, 120mm Hasselblad on Fuji 100c

My friend Pete Forde had brought a polaroid camera with him on his last visit to Ottawa. I really liked the raw quality and the fact that you can “touch” the picture immediately (something that you don’t get from a picture on a LCD screen).

And just a few months after Polaroid has stopped producing instant film, their legacy has become more important to me than ever. Thankfully, Fuji still continues to produce Polaroid 100 film for medium and large format cameras. Using proof polaroids (like the ones seen above) are extremely useful to make sure the light, settings and everything else is alright before wasting a roll of film.

Jerry135x135 "I started to cry, tears were pouring down my face and I had no idea what to do. Then I heard a..."

by Jerry Richardson | 1 day ago | Read more

“I started to cry, tears were pouring down my face and I had no idea what to do. Then I heard a gentle and friendly voice behind me saying, That’s OK, I’ll pay for her.”

- Leisha’s Random Thoughts & Ponderings: Not that it matters …

Stanford on iTunes U

by Jörg Battermann | 1 day ago | Read more

Stanford on iTunes U: More Knowledge. More Information. I need more time.. so much more time…

Headshot2 Why does it cost less to fly t…

by Damien McKenna | 1 day ago | Read more

Why does it cost less to fly to Dublin from SanFrancisco than it does Orlando?

Cat wanted: crackdown on shitty advertising

by Thomas Olausson | 1 day ago | Read more

I really hate these kinds of web sites. Advertisement meets desperation. You’ve seen them all over the place. This example is fairly ok, but you get my point. If you need f*kin ads, dont put them in your text. I understand webmasters (haven’t heard that word in a long time) want to recoup some of the [...]

Me Meme

by Gareth Reeves | 1 day ago | Read more



1. Take a picture of yourself right now.
2. Don’t change your clothes, don’t fix your hair…just take a picture. (should be super-easy with Photobooth)
3. Post that picture with NO editing.
4. Post these instructions with your picture

Al3x Treating Developers Right

by Alex Payne | 1 day ago | Read more

I've had the idea for a quotation-capturing application for the Mac for some time.  It's been towards the top of my list of side-projects for ages, held in place by Cocoa's steep learning curve (easy to get started, takes years of experience to do an app right).

It recently occurred to me that this application would work even better on the iPhone, and that the smaller "surface area" of the iPhone SDK might make the project more approachable.  I applied to be an iPhone developer and began consuming Apple's materials for developers as I waited for approval.

That was two weeks ago.  In the intervening time, Apple has disbanded the NDA on the iPhone developer program, which indicates that they're responding to pressure from Android starting to materialize as a viable and open mobile development platform.  It's disheartening that it takes a market threat in order for Apple to do the right thing by their developers.

My full-time job is looking after Twitter's developer community.  Twitter's and Apple's respective developer technologies are very different beasts, but it's hard to imagine treating our developers the way Apple treats theirs and still having a community to speak of.

Let's be clear about Apple's iPhone developer program: you're paying them.  That means they should work for you.  If they don't, you should fire them.  If Apple can't afford to support their developer community at $99 per year per developer, they should charge more.  But in the two weeks that I've been waiting for Apple to give me permission to pay them, I've come to realize that my free time is better spent on side-projects that I have more control over.

At Twitter, our developers don't pay us a dime, and we don't currently have a formalized quality of service policy that obliges us to any particular behavior.  Still, leaving developers hanging without support for two weeks is unthinkable to me.

Treating developers right isn't difficult: be open, be honest, and respect their time.  When we've failed to keep to those rules, developers are rightly pissed.  When we keep to them, our developers are happy.  For the sake of my friends in the Mac development community, I hope Apple figures these simple rules out.

384560 Tweets for Today

by Ryan Williams | 1 day ago | Read more

In the last 24 hours, Jimmy...


  • 12:36 is wary of Shamwow imitators. #

Automatically shipped by LoudTwitter

Nolan_eakins_2007 Sitting at the Hilton in Glendale, CA (via Twitter)

by Nolan Eakins | 1 day ago | Read more

Twitter posted a message on Twitter
“Sitting at the Hilton in Glendale, CA”

03 am - Comment

by Logan Koester | 1 day ago | Read more

03 am - Comment

DataMapper Migrations

by Glenn Gillen | 1 day ago | Read more

I’ve been working on some merb related things of late, and I’m planning on writing a more detailed article on creating a merb application from scratch as so many of the tutorials out there kind of leave you hanging. In the interim though, I’m just going to touch on a little nugget of information that isn’t very well publicised regarding DataMapper, one of the ORMs that gets used with merb.

ActiveRecord Style Migrations with DataMapper

That’s right, you aren’t left having to wrestle with the command line and ALTER TABLE statements just because you’ve left ActiveRecord behind. All the migration joy you’ve come to love with ruby on rails can come and live with you happily with merb and DataMapper.

First things first, you’ll want to generate a new migration:

merb-gen migration my_migration

We should now have a file named 001_my_migration.rb and if we look at it, it won’t be too foreign based on our ActiveRecord experiences:

migration 2, :my_migration do
  up do
  end

  down do
  end
end

To pad it out with some code that is actually useful, add in the definitions for what you want done:

migration 2, :my_migration do
  up do
    create_table(:posts) do
      column(:id, Integer, :serial => true)
      column(:title, String, :size => 255)
      column(:description, Text)
      column(:published, Boolean)
      column(:created_at, DateTime)
      column(:updated_at, DateTime)
    end
  end

  down do
    drop_table(:posts)
  end
end

Running the DataMapper Migration

And now that we’ve got the migration we are happy with, applying it to our underlying database is just a matter of the following:

rake dm:db:migrate

API

by Gregoire Lejeune | 1 day ago | Read more

“The userspace API you propose should however be taken out and shot, then buried with a stake through its heart, holy water in its mouth and its head cut off, at midnight in a pentacle at a crossroads in the presence of a priest” Alan Cox (http://article.gmane.org/gmane.linux.kernel.malware/513)

Porticus: MacPorts con interfaccia grafica

by ynw | 1 day ago | Read more

Ho intercettato un twitt di Coby Randquist su Porticus; è bello avere consigli così preziosi nei momenti meno attesi. Uno degli aspetti che mi ha sempre interessato di OSX è la sua duplice natura; da una parte è un sistema operativo *nix-like, di diretta discendenza BSD, ottima piattaforma per lo sviluppo di codice e per l’utilizzo [...]

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae 괴물은 괴물..

by SangHyun Son | 1 day ago | Read more

3일 쉬는날은 연짱.. 회사서 보냈다..   이틀동안 밤을 샜고,,   어제는 철야후에.. 주일 예배까지 보고,,   체력이 짱인거야.. 무식한거얌..   결국 오늘도. 어렵다는 시간 4시를 넘기니..   잠이 돌연 사라지는 구나..   이제 가을임을 물씬 느낍니다.   전에.. 5시만 되면.. 벌써.. 해가 떠서.. 아침이 밝아 왔는데..   6시 5분을 지나는 지금..   아직 어둡네요.. 내년 3월까진.. 앞으로.. 밤이 갈수록 길어지겠죠..   제발 밤새는 날은 없기를 바랄 뿐입니다..   회사에서 밤새고 나서.. 문득,, 밖을 보니..   떠오르는 생각이 있어 적어.......

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae 위젯 생태계와 경제 By 조산구 박사님 PT 자료입니다.

by SangHyun Son | 1 day ago | Read more

Widget Ecosystem and Widget Economy View SlideShare presentation or Upload your own. (tags: badge ecosystem) 위젯코리아 컨퍼런스 2008 에서 발표하신 자료입니다.   p.s : http://www.slideshare.net..   여기도.. StoryQ 와 같은 개념으로 서비스를 하네요..   외국이니.. PT 를 만들면.. 이쪽에다 올려놔야 겠어요..   잘 사용하겠습니다.  

Carmelynethompson HDR practice 2

by Carmelyne Thompson | 1 day ago | Read more

Magnificent Tiger walking about in his lair.


Just mouseover image to see the original

Tiger HDR Practice

Credits: Flickr image (I took this picture)

I'm still loving HDR and have been practicing it with every free time I get.

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae 마이크로소프트, 조만간 "Windows Cloud" 발표 예정

by SangHyun Son | 1 day ago | Read more

개발자들이 웹 어플리케이션, 웹사이트를 개발할 때 뭐가 필요할까요? 웹서버가 필요하죠. 웹서버를 통해 웹사이트 및 웹 어플리케이션을 개발하고 정보를 저장하는 공간, 즉 스토리지가 필요합니다. 웹서버와 스토리지는 운영체제가 필요하고, 이 운영체제는 하드웨어, 즉 서버가 필요하게 됩니다. 어플리케이션, 사이트 개발에 꼭 필요한 이런 기본적인 것들이 준비된 이후 개발이 가능합니다. IT 관리자를 통해 하드웨어 선정, 발주, 입고, 설정 등의 복잡한 절차 및 기간이 필요하게 되죠. IDC 및 호스팅 업체를 통해 장비를 임대하여 사용할 수도 있지 않을까? 라고 생각이 드시죠. 그래도 여러가지 절차는 거쳐야 하죠. 클라우드 컴퓨.......

Me-300x225 Broken Social Scene: interview and live performance music - Boing Boing TV

by Stephen Boisvert | 1 day ago | Read more

The Quest for the Perfect Shave

by Michael D. Ivey | 1 day ago | Read more

At some point when Emily was pregnant, I became convinced that the baby would be a girl. I admit that this is an irrational thing to believe without any evidence, especially since I figured it out in a dream. However, the Chinese calendar method confirmed my belief, so I think it was fine.

Anyway, once I “knew” I was going to have a little girl, I had some changes to make. Up to that point, I’d been shaving in the shower, if I shaved at all. I didn’t really like shaving, and I hated spending ridiculous amounts of money on blade cartidges, so I’d keep using one well past any reasonable amount of sharpness. Shaving in the shower was the only way I could get through it.

How was my little girl going to watch Daddy shave, if Daddy always shaved hidden away in the shower?

And so began my quest. It’s a quest some men spend their entire lives on, and other men abandon as a waste of time. For me, it’s been fun, and saved money, and made Ellie not scream when she kisses me.

So, if you’re interested in starting the quest, your journey begins here:

I sat at the kitchen table and watched these, and a bunch of the guy’s other videos. In fact, I just watched them all again in the background while I wrote this post.

I decided that I was going to make the investment in a good safety razor, because it would allow me to have ridiculously cheap blades. (As an example, 30 Gillette Sensor Excel cartridges on Amazon go for $38.99, while 30 Feather Hi-Stainless blades go for $17.25. Feathers are some of the most expensive blades available, and are still 40% of the cost of cartridges.)

After some research, I settled on the Merkur ‘Hefty Classic’ available for about $40. You’ll never have to replace it. You can also find great razors on eBay, or in the old guy down the street’s bathroom. Ask him, he may have a spare.

Next, I needed a brush. I was serious about this, so I spent a little more than I needed to and got a nice badger hair brush. You can certainly get by with the brush you’ll find at Walmart, but you may want to splurge a little. I think I got my brush from Classic Shaving at the same time as I bought my razor, but I’m not positive.

I bought a latte mug at some discount store. It’s wide, so I can get a rich lather, and it’s heavy, so it retains heat. For my birthday my Mom got me a nicer mug with a pewter base, which is really nice, but sometimes I still use my $1 mug. Don’t go nuts on this part.

Let’s see, razor, brush, mug … oh, I need soap. Traditional wet-shaving enthusiasts don’t usually use shaving cream or gel from a spray can, but instead use shave soap and make the lather in the mug. I won’t go into too much detail on how I picked what I use, which is Taylor of Old Bond Street, Lemon and Lime flavor. Flavor? Scent? Whatever. I spent a remarkable amount of time picking the shave soap I wanted, but I’ve been very happy with it.

Finally we come to sharp things. There are a lot of blades out there. Some are good, some are bad, and only a handful are right for you. I personally love the Feather Hi-Stainless blades made in Japan by a company that used to make ninja swords, or so I hear. You may find them too sharp. You may love the Personnas from Israel, and they’ll scratch me up and leave me red and irritated. For that reason, I recommend you get a sampler pack. I got one of these but I don’t remember what size I got. I know it had Feathers, Dorcos, Treet Blues, so it was probably the #3. Maybe he changes them out. I don’t know, I love the Feathers. I started at the bottom, hated most of them, found a few I could live with, and then got an amazing shave with the Feathers. The Dorco from Korea works well for me, too. The point is, you have to try, you have to be patient, and you have to be willing to bleed some, and be red and irritated some. This takes work, but it is highly rewarding.

Dorco blade

Surf_s_up Oh Yea! Cassel to Moss for a sweet 66 yd TD (via Twitter)

by Brian Del Vecchio | 1 day ago | Read more

Twitter posted a message on Twitter
“Oh Yea! Cassel to Moss for a sweet 66 yd TD”

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae [통계] 조회수 TOP 10, 2008년 09월 29일~2008년 10월 05일 주간

by SangHyun Son | 1 day ago | Read more

통계 기간 : [주간 통계] 2008년 09월 29일 ~ 2008년 10월 05일 순위 포스트명 구분 조회수 1 XML을 사용하는 좋은 습관 열 가지 블로그 79 2 Windows 7 Gets a Blog 블로그 67 2 구글 위성지도, 웹브라우저 속으로! 블로그 67 4 [연세대학원] 2009학년도 전기 신입 모집.. 블로그 66 5 프로그래밍은 상상이다 블로그 65 6 싸이질과 케빈 베이컨의 6단계 게임 블로그 64 6 ERP/SAP ABAP.......

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae [통계] 검색유입분석, 2008년 09월 29일~2008년 10월 05일 주간

by SangHyun Son | 1 day ago | Read more

통계 기간 : [주간 통계] 2008년 09월 29일 ~ 2008년 10월 05일 검색어 검색엔진 별 유입률 순위 검색어 유입률 검색엔진비중 1 windows 7 15.7% 네이버 100.0% 2 ITSM 13.7% 네이버 100.0% 3 인블롬 13.0% 다음 42.1% 네이버 36.8% 엠파스 21.1% 4 주인의식 10.2% 네이버 100........

%ed%81%ac%ea%b8%b0%eb%b3%80%ed%99%98_dscn0264-mirnae [통계] 통계요약, 2008년 09월 29일~2008년 10월 05일 주간

by SangHyun Son | 1 day ago | Read more

통계 기간 : [주간 통계] 2008년 09월 29일 ~ 2008년 10월 05일     09.29 ~ 10.05 09.22 ~ 09.28 방문 현황 방문횟수 8,582 -5% 9,122 방문자수 8,291 -5% 8,793 페이지뷰 9,395 -4% 9,882 순위 검색어 유입률 주요 검색엔진비중 1 windo.. 15.7% 네이버 100.0% 2 ITSM 13.7% 네이버 100.0% 3 인블롬 13.0% 다.......

Ruby on Rails Resources

by Corey Ehmke | 1 day ago | Read more

If you check out the left-hand sidebar, you’ll see that I’ve added something new to the site. The Ruby on Rails Resources page presents a categorized list of Rails sites, screencasts, podcasts, and discussion groups that I have personally found useful in getting to know and love Rails. So please check it out, and use the [...]

Spock McCain Didn't Think Osama Bin Laden Was A BAD Guy in 1998

by Ara T Howard | 1 day ago | Read more

McCain Didn't Think Osama Bin Laden Was A BAD Guy in 1998

Animating the YouTube Arrow

by Andrew Dupont | 2 days ago | Read more

Whenever I drift into one of my twice-weekly YouTube stream-of-consciousness video-watching binges, I let myself be bothered by a small, inconsequential nitpick. Here’s the “Related Videos” heading in its collapsed state: And here it is in its expanded state: Though there’s no animation between these two states, I’ve always considered the metaphor to be a lot like the [...]

210054790_9fc00d9caf Apple picking!

by Adam Bair | 2 days ago | Read more



Apple picking!

2008년 10월 5일

by Heungseok Do | 2 days ago | Read more

  • 올해 딸내미 생일선물은 이걸로 오케이(딸내미 생일선물 저렴하네 ㅋ me2photo)2008-10-05 14:57:01

  • 오늘은 토마토스파게티(식미투 me2photo)2008-10-05 16:51:20

  • 이 글은 꽃띠앙님의 2008년 10월 5일의 미투데이 내용입니다.

    <!-- end of daily_digest -->

    Sikachu เอา Adsense มาแปะ

    by Prem Sichanugrist | 2 days ago | Read more

    เอา Code ของ Adsense มาแปะกระจายอยู่ร่ำไป ฉลองที่ Google Adsense รองรับเว็บไซต์ภาษาไทยแล้ว เลยแปะโฆษณาฟรีๆ ให้เขาซะหน่อย (ไม่หรอก คือ แล้วใครจะกด T____T”) ปล. โพสอย่างนี้ผิดกฎป่าวหว่า T_T? Tags: Adsense, blog, google, web

    Surf_s_up 4 hours til the Red Sox - Angels game 3. In the meantime, enjoying some football (via Twitter)

    by Brian Del Vecchio | 2 days ago | Read more

    Twitter posted a message on Twitter
    “4 hours til the Red Sox - Angels game 3. In the meantime, enjoying some football”

    Surf_s_up @jonpierce thanks for the pointer to the Eye-Fi upgrade. (via Twitter)

    by Brian Del Vecchio | 2 days ago | Read more

    Twitter posted a message on Twitter
    “@jonpierce thanks for the pointer to the Eye-Fi upgrade.”

    Headshot2 Delerium to release EP this we…

    by Damien McKenna | 2 days ago | Read more

    Delerium to release EP this week, new album soon: http://is.gd/3yMo

    Njp links for 2008-10-05

    by Nuno Job | 2 days ago | Read more

    LogoPond - Identity Inspiration - (tags: webdesign web2.0 web typography showcase resources logos reference) GoDaddy (tags: website webhosting webhost webdesign web tools technology shopping star)       

    Nolan_eakins_2007 Leaving phoenix to burbank (via Twitter)

    by Nolan Eakins | 2 days ago | Read more

    Twitter posted a message on Twitter
    “Leaving phoenix to burbank”

    W/ Family

    by Curt Mills | 2 days ago | Read more

    W/ Family

    It’s Back

    by Dennis Eusebio | 2 days ago | Read more

    Words can’t express how awesome this is going to be.

    Marze FFFFOUND! | Sexuality in Art

    by Marcelino Llano Villa | 2 days ago | Read more



    FFFFOUND! | Sexuality in Art

    Surf_s_up Eye-Fi add geotagging to their wireless camera flash cards... (via Tumblr)

    by Brian Del Vecchio | 2 days ago | Read more

    Tumblr posted an entry on Tumblr

    Q_cballard warsow

    by César Ballardini | 2 days ago | Read more

    Siempre he sido aficionado a los First Person Shooter Games, aunque mi afición no llega a la adicción. Jugar a un FPS es al combate como ir de campamento es a la supervivencia. O sea, casi inocuo, pero muy divertido. Cuando los juegos se distribuyen bajo la licencia GPL son más divertidos, porque no [...]

    86 Ruby on Rails :: Page caching

    by Surasit Liangpornrattana | 2 days ago | Read more

    รีบปั่นก่อน ก่อนที่ merb 1.0 จะออกมา เดี๋ยวจะไม่ได้เขียน blog สักเท่าไหร่ เพราะคงไปนั่งวุ่นอยู่กับ merb นี่แหละ

    post อันนี้ คงจะอยู่ทั้ง blog ผม และ rails66.com ด้วย เขียนทีเดียว แปะมันทั้งสองที่

    วิธีการทีจะลดการทำงานของ server ได้ หนึ่งวิธีในนั้นที่ช่วยได้เยอะเลยคือการทำ cache
    ใน Rails เองมีการทำ cache อยู่ 4 ระดับ คือ

    • page caching
    • action caching
    • fragment caching
    • sql caching

    และตัวควบคุมการลบ cache พวกนี้ ก็คือ

    • sweeper

    อันแรกนี้ ขอเป็น page caching ก่อน

    ซึ่ง page caching เนี่ย มันจะเก็บ output ไว้เป็น file โดย save ไว้เป็น html เลย โดยเก็บไว้ใน public/ ซึ่งสามารถเปลี่ยนที่เก็บได้ เดี๋ยวค่อยว่ากันอีกที เมื่อมันมี request มา มันจะวิ่งเข้าที่ file นี้แทน แทนที่จะวิ่งไปที่ controller แล้วก็ทำงานตามที่เราเขียนไว้

    การทำ page caching นี้ เหมาะสำหรับอะไรที่มันอยู่นานๆ แล้วคงจะไม่เปลี่ยน เช่นระบบ blog ซึ่งปกติ จะไม่ค่อยแก้ไขอะไรเท่าไหร่ จะทำการลบ cache นี้ออก ก็ต่อเมื่อมีการ update หรือมีการเพิ่มข้อคิดเห็น(comment) เป็นต้น

    เริ่มต้นด้วยการเปิด cache ก่อน โดยปกติ ถ้าเราทำงานใน development environment มันจะปิดระบบ cache ทั้งหมด แต่ถ้าสลับมาเป็น production environment มันจะทำการเปิด cache ทุกอย่าง ลองดูใน config/environments/production.rb

    ไปตั้งค่าให้เป็น true ใน config/environments/development.rb มันก็จะไปเปิดตัวจัดการ cache ให้

    สมมติว่าถ้าต้องการเปลี่ยน path ในการเก็บ cache ก็ใส่เพิ่มไปว่า

    เวลาเข้าถึงก็ http://localhost:3000/wherever/you/want/file

    วิธีเซ็ต page caching ก็ง่ายๆ เราใส่ไปใน controller ว่า

    แค่นี้เอง

    เวลาจะลบ cache สมมติว่าเราจะลบ หลังจากที่เรา update content ของเรา เราก็ใส่ใน controller ไปว่า

    expire_page จะไปทำการลบให้เองเลย สบายมากๆ (รออีกสักหน่อย เดี๋ยวจะเขียนเรือง sweeper มาจัดการตรงนี้ครับ)

    แต่ก็ใช่ว่าจะไม่มีปัญหาเลย เพราะหลังจาก update เสร็จแล้ว เราควรที่จะแสดงข้อความอะไรบอกหน่อย ในที่นี้ผมใส่ไปใน flash[:notice] ปัญหามันคือ มันจะเก็บ cache ไว้ในขณะที่มีข้อความนี้อยู่บนหน้า เพราะมันจะเก็บตอนที่เราสั่ง redirect_to

    วิธีซ่อมแบบไม่ลงแรงเลยคือ ใช้ plugin ที่ชื่อว่า Cacheable Flash

    เอามาจาก นั่งเทียนเขียนข่าว#12 ครับ

    โดยวิธีการมันก็ง่ายๆ ครับ คือเก็บข้อความไว้ใน cookie ก่อน แล้วก็ดึงมาแสดงผลด้วย javascript อีกที
    แต่ผมไม่ค่อยชอบ น่าจะมีตรวจว่ามี flash หรือเปล่า ก็เลยลงมืองัดแงะปลุกปล้ำเสียหน่อยได้หน้าตาแบบนี้

    คือ cache ถ้า flash message ว่าง
    ดูเท่กว่าเยอะ

    ปล. อาทิตย์หน้ามาต่อกับ action caching ครับ

    ข้อมูลจาก rails api

    Startup PoSasiedzku.pl - witaj w sąsiedztwie!

    by Marcin Szajda | 2 days ago | Read more

    Ostatnio miałem przyjemność przyjrzeć się bliżej jednemu z wrocławskich startupów - PoSasiedzku.pl. Serwis, jak sama nazwa mówi, służy do nawiązywania ’sąsiedzkich relacji’. Główną ideą serwisu jest budowanie społeczności poprzez łączenie ludzi z okolicy - sąsiadów. Słowo sąsiad nie jest nigdzie zdefiniowane, może to być sąsiad z bloku obok a może być i sąsiad internetowy. Sąsiedzi grupują [...]

    Avatar Technical Hiring is Hard!

    by Mark Coates | 2 days ago | Read more

    So we’re in recruiting mode at Observer Media Group, and boy does it suck. We’re trying to fill just one position; a junior to mid-level developer. We’re looking for candidates who know PHP, HTML, and Javascript cold, and ideally know a bit of Drupal and have at least one other language under their belt with [...]


    Tell us what you think of the new BlogSphere feature. We are continually looking to improve and update the functionality based on your feedback.

    Job Board

    Job Boards
    Find your next Ruby on Rails project or job.
    Exclusive content, regularly updated - onsite and tele-working positions listed.

    View the opportunities

    Latest from the Weblog

    Recent Recommendation

    _WhyTheLuckyStiff:

    The one, the only.

    - Sbubble G.G, United States