Welcome To Snipplr


Everyone's Recent Rails Snippets



2 414 posted 13 years ago by tonic
1 375 posted 13 years ago by mikegreen
"The new naming scheme for template (eg. .html.erb) does not seem to work for partials. When using :partial => 'form' a filename "_form.html.erb" is not recognized. " Rails now requires the partial to be referenced by dotted format
1 328 posted 13 years ago by cczona
1 309 posted 13 years ago by udayrayala
2 335 posted 14 years ago by brettarogers
Use this to upload and resize your images using RMagick. Code by nixnewbie.
2 435 posted 14 years ago by Tricon
override the boolean expression with your own conditions.
3 380 posted 14 years ago by capitalist
1 203 posted 14 years ago by z0rg
From railscast #41
2 329 posted 14 years ago by bordalix
1 269 posted 14 years ago by bordalix
A great way to improve the performance of your web app, by using a column in the projects table which stores the number of task associated with it, seen in railscast #23
1 301 posted 14 years ago by bordalix
A quick and simple way of having any flash messages, from railscast #18
1 277 posted 14 years ago by bordalix
1 319 posted 14 years ago by t0d0r
1 280 posted 14 years ago by sethbuntin
1 244 posted 14 years ago by jpowell
1 276 posted 14 years ago by jpowell
1 256 posted 14 years ago by winson
2 295 posted 14 years ago by winson
1 317 posted 14 years ago by winson
1 295 posted 14 years ago by winson