Welcome To Snipplr
Everyone's Recent Rails Snippets Tagged rails
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
"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
620
posted 16 years ago by cczona
Use this to upload and resize your images using RMagick. Code by nixnewbie.
2
827
posted 16 years ago by Tricon
A quick and simple way of having any flash messages, from railscast #18
1
534
posted 16 years ago by bordalix
This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.
3
1610
posted 17 years ago by jonhenshaw