I'm doing a tutorial from Head-First Rails (via Safari Online) and cannot get edited HTML to show up in the browser (the changes, I mean). Specifically, I'm just changing the label for one of the columns from "Seat seq id" to "Seat #". I've opened the four view files, edit, index, new and show.html.erb. Everywhere there's an 'f.label :seat_id_seq' I've changed that to 'f.label "Seat #"'. For Table headers I've put Seat # inside the tags. I've saved the files and refreshed the browser (and even restarted the server), but all the views still have Seat id seq.
What am I missing? I've checked the errata but nothing relevant there.
Edit #7: Please note that it was due to an incompatibility between Rails 2.3.2 and the use of Vim patchmode and/or backup files, so none of the upvoted answers is correct. I'm putting this here so you can find the correct resolution without having to slog through all the posts.
Edit #1: Contents of routes.rb
ActionController::Routing::Routes.draw do |map|
map.resources :tickets
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
Edit #2: I'm using gvim to edit, on Vista (no choice about that).
Edit #3: Does not appear to be starting in development mode. But shouldn't restarting the server get around that?
Edit #4: Mongrel output:
C:\Users\kathyj\Desktop\tickets>ruby script/server -e development
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Edit #5: Restarting the browser did not help.
Edit #6 @Sarah Mei:
<h1>New ticket</h1>
<% form_for(@ticket) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :seat_id_seq, "Seat #" %><br />
<%= f.text_field :seat_id_seq %>
</p>
<p>
<%= f.label :address %><br />
<%= f.text_area :address %>
</p>
<p>
<%= f.label :price_paid %><br />
<%= f.text_field :price_paid %>
</p>
<p>
<%= f.label :phone %><br />
<%= f.text_field :phone %>
</p>
<p>
<%= f.label :email_address %><br />
<%= f.text_field :email_address %>
</p>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', tickets_path %>
That field still says Seat id seq.
@ Mark Robinson: changing the New Ticket header was not picked up on browser refresh. Also I don't get all the Mongrel output you do, and I note I'm using a newer version of Rails.
N.b. My Rails experience should be measured in hours, not days.
@Ghoti: (1) Ctrl-F5 made no difference. I've also turned off cacheing, as vrish88 suggested. (2) I shoved your <%= nil.fail %> into app\views\tickets\new.html.erb right above the f.label for the name field, but it displayed the same as ever. I even tried using IE; everything works but none of the changes I've made shows up. (3) I found log\development.log, but I don't know what you're looking for. It's got a lot of Processing and Rendering lines, and shows some migrations. The migrations that added a column do not show up in the view. The migration that created another table, I can see its page.