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
1019
posted 17 years ago by cczona
Use this to upload and resize your images using RMagick. Code by nixnewbie.
2
1279
posted 17 years ago by Tricon
A quick and simple way of having any flash messages, from railscast #18
1
906
posted 17 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
2139
posted 18 years ago by jonhenshaw