On 7/6/05, Sean T Allen <sean-5W9FBhQXBOtBDgjK7y7TUQ@public.gmane.org>
wrote:> when a new version of rails ships with changes to dispatch.fcfi or
> prototype.js or any of the other files that get installed wen you run
> rails MYAPP... is there a convenient ( read non-manual ) way of updating
> them?
Sort of. If you run the `rails` command on an existing application''s
directory, it will prompt you before overwriting files. As long as you
take care not to overwrite files that you''ve made your own changes to
(such as application.rb, application_helper.rb, routes.rb and
database.yml) you should be OK.
It does require _some_ manual oversight, but it''s not as bad as having
to copy each file individually. It would be nice if this could
eventually be made even easier by default.
Another trick (if you are using a SCM such as Subversion) is to put
the basic Rails installation into a vendor branch and then merge
updates into you trunk line (the documentation for Subversion at
http://svnbook.red-bean.com/ has details on how to manage this).
--
Regards,
John Wilger
-----------
Alice came to a fork in the road. "Which road do I take?" she asked.
"Where do you want to go?" responded the Cheshire cat.
"I don''t know," Alice answered.
"Then," said the cat, "it doesn''t matter."
- Lewis Carrol, Alice in Wonderland