Re: A table named references

Colin Law
2009-06-25T09:26:00Z

2009/6/24 John Woods
<john.woods-+ksaPUZU+wsI+954vlgkHg@public.gmane.org>:
>
> Hi all,
>
> I accidentally generated a scaffold called reference, not realizing
> references was apparently a reserved word in MySQL. I thought I could
> get away with it, since the scaffold itself seemed to be working, but
> now I''m getting an error that suggests Rails doesn''t like
this
> scaffold name.
>
> I''d like to rename it to ref. Is it as simple as a search-replace,
or
> will I encounter other problems? What''s the easiest solution?
>

It should be as simple as changing all uses of the text
''reference'' to
''ref'' and ''Reference'' to
''Ref'' plus renaming the files and folders.
That is assuming you have not used the text ''reference''
anywhere else
of course.   I would advise committing to your source control system
first and then if it is a disaster for some unforeseen reason you can
just revert.

Colin