After a first thousand of tests using Rspec I fount it very annoying to repeat my self testing the standard code as spec code is usually twice longer than code it test. I've started to look for a way to simplify the patterns and make it reusable. Among other nice rspec tricks there is possibility to write custom Rspec matchers. Spec the validation is just two lines of code for each attribute now.
Home » Posts filed under rails
Showing posts with label rails. Show all posts
Showing posts with label rails. Show all posts
Advanced non-flat controllers hierarchy with rails
REST became the best practice for organizing CRUD server side interface.
But what to do when we have something more than hello-world application that
goes forward from data CRUD and provides many presentations
of the same data with different filters and different layouts?
But what to do when we have something more than hello-world application that
goes forward from data CRUD and provides many presentations
of the same data with different filters and different layouts?
Advanced SQL and named scopes stack with ActiveRecord
If you ever work with rails application that is a little bit more complex then a simple CRUD you would know that some of the ActiveRecord magic doesn't work for complex SQL queries. I am primary talking about named scopes stack feature.
Subscribe to:
Posts (Atom)Template Responsive Design
Label
Aneh Banget
Apresiasi
Artikel
Artis Unik
asmara
Berita Aneh
Berita unik
Blogging
Cerita Inspiratif
Christmas
Dahsyat
Dampak Media
Dewasa
Foto Unik
Free Download
Hewan Unik
Inspirational
Inspiring SMS
IT-related
Kesaksian
Kesehatan
Lucu
Misteri
motivasi
Motivational
Nama Allah
News
Olahraga Unik
orang terkenal
pengembangan diri
programming
Religi
Renungan
Resources
Second Coming
Sejarah
Selebriti
Seni
SEO
Sharing
Soal Asmara
Spiritual Reflection
Suara Hati
Tau Gak Sih
Tekno
Teknologi
Tempat Unik
Tips
Tips Unik
Tokoh
travel
Trik Kehidupan
True Love
True Story
Tumbuhan Unik
Unik
Wallpaper
Worship Video