Welcome To Snipplr


Everyone's Recent Rails Snippets



2 356 posted 13 years ago by tonic
1 324 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 291 posted 13 years ago by cczona
1 270 posted 13 years ago by udayrayala
2 300 posted 13 years ago by brettarogers
Use this to upload and resize your images using RMagick. Code by nixnewbie.
2 372 posted 14 years ago by Tricon
override the boolean expression with your own conditions.
3 331 posted 14 years ago by capitalist
1 174 posted 14 years ago by z0rg
From railscast #41
2 293 posted 14 years ago by bordalix
1 240 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 265 posted 14 years ago by bordalix
A quick and simple way of having any flash messages, from railscast #18
1 232 posted 14 years ago by bordalix
1 280 posted 14 years ago by t0d0r
1 253 posted 14 years ago by sethbuntin
1 222 posted 14 years ago by jpowell
1 247 posted 14 years ago by jpowell
1 226 posted 14 years ago by winson
2 253 posted 14 years ago by winson
1 276 posted 14 years ago by winson
1 263 posted 14 years ago by winson