01 Nov '13, 6am

TIL: it’s possible to override the serialization/deserialization logic of a Rails model’s attribute.

If you have an attribute that needs to be saved to the database as an object, and retrieved as the same object, then specify the name of that attribute using this method and it will be handled automatically. The serialization is done through YAML . If class_name is specified, the serialized object must be of that class on retrieval or SerializationTypeMismatch will be raised.

Full article: http://apidock.com/rails/ActiveRecord/AttributeMethods/Se...

Tweets

From Apple To Tesla: Woz Follows The Trend, Buy...

greencarreports.com 01 Nov '13, 11am

By Stephen Edelstein 125 views Nov 1, 2013 Reddit This! Share on Facebook Share on Twitter 2013 Tesla Model S Enlarge Phot...

Test Drive a Tesla Model S in #Pittsburgh tomor...

teslamotors.com 01 Nov '13, 5pm

Model S is the world's first premium electric sedan and sets the standard for 21st century performance. Designed from the ...

First Tesla Model S makes it to Chinese mainlan...

green.autoblog.com 30 Oct '13, 5pm

has big plans for China and has already started taking reservations from the mainland for its Model S . One man, however, ...

Tesla Model S Can Now Travel From San Diego To ...

cleantechnica.com 01 Nov '13, 1pm

Consumer technology is going to exist indefinitely, perhaps for as long as the human species exists. At CleanTechnica, we ...

Rigmarole Required To Buy Tesla Model S In Texas

Rigmarole Required To Buy Tesla Model S In Texas

cleantechnica.com 29 Oct '13, 1pm

It’s the same case with Tesla-owned service centers, which cannot advertise that they offer Tesla service, or even display...

Report: First Tesla Model S makes it to Chinese...

green.autoblog.com 29 Oct '13, 11pm

has big plans for China and has already started taking reservations from the mainland for its Model S . One man, however, ...

Tesla Model S gets 'recommended' rating from Consumer Reports; Prius V, Ford hybrids not so much

Tesla Model S gets 'recommended' rating from Co...

green.autoblog.com 28 Oct '13, 10pm

Consumer Reports Annual Auto Reliability Rankings: Japanese Dominance Cracks as Audi, Volvo & GMC Secure Spots in Top 10 I...

Second @TeslaMotors Model S fire caught on #video.

green.autoblog.com 29 Oct '13, 1pm

As I pointed out after the first fire, when Musk stated that there is “1 vehicle fire for every 20 million miles driven, c...

Second Tesla Model S fire caught on video after...

green.autoblog.com 28 Oct '13, 5pm

First understand, to make a car move, you have to have lots and lots of stored energy. Be it electric, gas, steam, etc. A ...

Tesla Model S Sales Low In Germany

Tesla Model S Sales Low In Germany

cleantechnica.com 24 Oct '13, 8pm

The numbers from IBT indicate that Tesla’s sales in Norway hit 801 in the first two months of availability. In Holland, De...

From Nissan Leaf To Tesla Model S: The Big Elec...

greencarreports.com 24 Oct '13, 11am

By George Parrott 1,812 views Oct 24, 2013 Follow George Reddit This! Share on Facebook Share on Twitter 2013 Tesla Model ...

Official: Tesla looking at Chrome, Android update for Model S; big Supercharger network in Germany

Official: Tesla looking at Chrome, Android upda...

green.autoblog.com 24 Oct '13, 6pm

Tesla Motors Inc: Tesla Motors Announces Major Developments for Germany Significant investments in Superchargers, service ...

Tesla Model S To Offer 'Autobahn' Tuning For To...

greencarreports.com 23 Oct '13, 10am

By Antony Ingram 459 views Oct 23, 2013 Follow Antony Reddit This! Share on Facebook Share on Twitter 2013 Tesla Model S E...

"the logic of stupid poor people", or why it mi...

tressiemc.com 30 Oct '13, 8am

Why do poor people make stupid, illogical decisions to buy status symbols? For the same reason all but only the most wealt...

Tesla Underground: Texas Franchise Rules Make M...

greencarreports.com 22 Oct '13, 11am

By David Noland 6,712 views Oct 22, 2013 Reddit This! Share on Facebook Share on Twitter Tesla owners & supporters gather ...