public
Fork of deimos1986/book_mdar
Description: Life On The Edge With Merb, DataMapper & RSpec
Homepage: http://blog.new-bamboo.co.uk
Clone URL: git://github.com/rubymaverick/book_mdar.git
Search Repo:
a couple of various notes
rubymaverick (author)
Thu Jun 12 17:19:22 -0700 2008
commit  f8dfc416f2d3fefeeec57e63541097d77a009563
tree    abdd4f61d7173afb47ba31dbb3f78721075e2385
parent  9e4a785cded945035d926e5e7b595293fa8d8892
...
1
2
3
 
4
5
6
...
130
131
132
 
133
134
135
...
1
2
 
3
4
5
6
...
130
131
132
133
134
135
136
0
@@ -1,6 +1,6 @@
0
 ## Models
0
 
0
-(TODO) - rewrite for DM 0.9, and make this section clearer
0
+(TODO) - rewrite for DM 0.9 almost done, just need to finish it!
0
 
0
 ### Getting started
0
 
0
@@ -130,6 +130,7 @@ DataMapper > 0.9 now supports has_many :through. For example, if you have a Pos
0
 #### Validation
0
 
0
 (TODO) - custom validation, and validatable gem
0
+(TODO) - does this user bashing fluff need to be here?
0
 It’s a known fact that users are stupid. They screw up; it happens. They enter information in the wrong format, leave required fields blank, or even enter in completely horrid data because they’re idiots and that’s what idiots do. I point you at [YouTube](http://www.youtube.com) video comments, [Digg](http://www.digg.com) (as a whole), and [MySpace](http://www.myspace.com) as proof of web users’ collective idiocy.
0
 
0
 But, alas, they’re how we make our money online. Thus, we need to guard against user error by validating anything that we need to save out to our persistence layers. Sometimes that means guarding against hack attempts, but most of the time it means guarding against invalid data and accidents.

Comments

    No one has commented yet.