Welcome To Snipplr


Everyone's Recent Rails Snippets



2 117 posted 12 years ago by tonic
1 125 posted 12 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 118 posted 12 years ago by cczona
1 85 posted 12 years ago by udayrayala
2 96 posted 12 years ago by brettarogers
Use this to upload and resize your images using RMagick. Code by nixnewbie.
2 135 posted 13 years ago by Tricon
override the boolean expression with your own conditions.
3 109 posted 13 years ago by capitalist
1 39 posted 13 years ago by z0rg
From railscast #41
2 82 posted 13 years ago by bordalix
1 70 posted 13 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 83 posted 13 years ago by bordalix
A quick and simple way of having any flash messages, from railscast #18
1 72 posted 13 years ago by bordalix
1 87 posted 13 years ago by t0d0r
1 96 posted 13 years ago by sethbuntin
1 74 posted 13 years ago by jpowell
1 89 posted 13 years ago by jpowell
1 77 posted 13 years ago by winson
2 82 posted 13 years ago by winson
1 89 posted 13 years ago by winson
1 91 posted 13 years ago by winson