vanne


Member since 09/12/2006

37 snippets

876 profile views

2 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

vanne's Recent Snippets



1 2 Next »
Using instance_eval to abstract values into meaningful methods
1 170 posted 14 years ago by vanne
put this into lib/tasks and then run rake db:version
1 211 posted 14 years ago by vanne
This is a prototype based method for loading functions, this is an alternative to using window.onload = function();
1 192 posted 14 years ago by vanne
A custom assertion that will allow you to pass a block to find the difference between two values.
1 161 posted 14 years ago by vanne
Useful for when you need to do a find and map specific results to an array for use later
1 239 posted 14 years ago by vanne
This is useful for using ActiveRecord validations without the ActiveRecord DB dependencies, this snippet is meant to be used with Textmate... create this in models/name_of_your_model to use.
4 318 posted 14 years ago by vanne
This allows you to turn off ajax requests application wide, so that you don't have to do render :layout => false in every controller that needs it.
1 302 posted 14 years ago by vanne
1 2 Next »