28 Oct '13, 3pm

TIL that whit ActiveRecord 4 you can do Author.joins(:posts).where(posts: {author: author}). Neat!

because of argument safety. Putting the variable directly into the conditions string will pass the variable to the database as-is . This means that it will be an unescaped variable directly from a user who may have malicious intent. If you do this, you put your entire database at risk because once a user finds out he or she can exploit your database they can do just about anything to it. Never ever put your arguments directly inside the conditions string.

Full article: http://guides.rubyonrails.org/active_record_querying.html...

Tweets

Best-selling author Stuart Woods named first M2...

cessna.com 21 Oct '13, 6pm

Best-Selling author named as first M2 customer LAS VEGAS, Oct. 21, 2013 – Cessna Aircraft Company, a Textron Inc. (NYSE:TX...

Interview With Andrew Pincock From Trafficado At #Pubcon: How To Build A Strong Author Rank by

Interview With Andrew Pincock From Trafficado A...

searchenginejournal.com 29 Oct '13, 5pm

While many try to contribute content on as many sites as possible, the whole point of Author Rank is to build credibility....

Screenwriter and Author Mark Frost Lists Sonoma-style Hideaway in the B.H.P.O.

Screenwriter and Author Mark Frost Lists Sonoma...

realestalker.blogspot.com 24 Oct '13, 5pm

LOCATION: Beverly Hills (Post Office), CA PRICE: $3,450,000 SIZE: 3,734 square feet, 2 bedrooms, 3.5 bathrooms YOUR MAMAS ...

Retired Col. Bob Doerr: Airman, spy hunter, awa...

navytimes.com 20 Oct '13, 2pm

During retired Col. Bob Doerr’s 28 years conducting criminal and counterintelligence investigations for the Air Force, he ...

Retired Col. Bob Doerr: Airman, spy hunter, awa...

airforcetimes.com 20 Oct '13, 2pm

During retired Col. Bob Doerr’s 28 years conducting criminal and counterintelligence investigations for the Air Force, he ...

Retired Col. Bob Doerr: Airman, spy hunter, awa...

armytimes.com 20 Oct '13, 1pm

During retired Col. Bob Doerr’s 28 years conducting criminal and counterintelligence investigations for the Air Force, he ...

先會推薦人直接把字串塞進 sql statement, 再說前提示OOXX, 這超抖的呀

guides.rubyonrails.org 17 Oct '13, 4am

But this approach becomes increasingly impractical as the table size increases, since User.all.each instructs Active Recor...

4

4

care2.com 27 Oct '13, 2pm

When Frosted Flakes mascot Tony the Tiger shouts, “They’re Grrrreat!”, you can be sure he’s not raving about his parent co...

4 Ways to Make Deep-Fried Food Maybe Not So Bad For You

4 Ways to Make Deep-Fried Food Maybe Not So Bad...

care2.com 26 Oct '13, 11am

Deep-fried food is (rightfully) at the top of The List of Things Thou Shalt Not Eat to stay healthy. So anyone would wonde...

$AIT ZSW Produces World Record CIGS Solar Cell

green-energy-news.com 26 Oct '13, 2pm

October 26 , 201 3 – Vol.18 No.32 . ZSW Produces World Record CIGS Solar Cell Thin-film photovoltaics achieves 20.8 percen...

4 Paid Search Strategies For Converting On-The-Go Customers

4 Paid Search Strategies For Converting On-The-...

searchengineland.com 24 Oct '13, 1pm

Consumers are increasingly engaging with businesses while they’re on the go. In fact, of the 94 percent of smartphone owne...

Optimizing TLS Record Size & Buffering Latency:...

rubyflow.com 24 Oct '13, 8pm

Optimizing TLS Record Size & Buffering Latency Posted by igrigorik on October 24, 2013 — 0 comments TLS record size can ha...

Racing this weekend? Here are 7 ways runners ca...

runnersworld.com 26 Oct '13, 1am

from the National Sleep Foundation released earlier this year, active people were more likely to report good sleep than in...