2009/6/24 John Woods <[email protected]>:
>
> 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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to