9 Dec 2007, 11:24pm
/dev/rails
by

Comments Off

Don’t Preface Partials With Numbers

I just learned today that it’s a bad idea to name your Rails partials starting with a number, ie: _4_happy_places.html.erb. Turns out Rails throws the following error if you do:

`@4_happy_places’ is not allowed as an instance variable name

This has been tested against Rails 2.0.1.