Hi, Maybe the best way is just to recreate the app using the new names and then re-implement the enhancements I added to reach the current version. I'm going to start that approach while I wait for some advice about a better way.
Regards, Richard On May 13, 4:18 pm, RichardOnRails <[email protected]> wrote: > Hi, > > I've got an app close to ready as version 1, but client wants labels > on a form and corresponding column names in the database changed, e.g. > the label/column named "purpose" to "description". > > I've got a form defined in app\views\expenses\new.html.erb with a > field defined as: > > <%= f.label :purpose %><br /> > <%= f.text_field :purpose %> > > Of course the name "purpose" appears, among other places, also in > app\views\expenses\index.html.erb > > <table> > <tr> > <th>Purpose</th> > [snip] > </tr> > > <% @expenses.each do |expense| %> > <tr> > <td><%=h expense.purpose %></td> > > In short, can I make changes like this: > 1. simply through the "change" mechanism of migration -or- > 2. with a Ruby program to make case-sensitive changes in all files > with names ending in .rb or .html -or > 3. some other way aside from manually? > > Thanks in advance, > Richard > > -- > 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 > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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.

