1
votes

I'm trying to change an ERB to remove the line

<div id="header"></div>

However, the resulting div tag still appears on the page, even 30 minutes after the fixed file was uploaded to the server. The server is running Ruby 1.8.6 and Rails 2.1.2, and the affected files (two_column.html.erb and three_column.html.erb) were downloaded from (and uploaded to) app/views/layouts/. There doesn't appear to be anyone else who has experienced this problem, and I'm at a loss as to the cause.

Installed Gems

actionmailer
actionpack
actionwebservice
activerecord
activeresource
activesupport
acts_as_ferret
ar-extensions
capistrano
cgi_multipart_eof_fix
daemons
dsl_accessor
fastercsv
fastthread
ferret
gem_plugin
god
highline
hoe
hpricot
mislav-will_paginate
mongrel
mongrel_cluster
mysql
needle
net-sftp
net-ssh
passenger
rails
railsmachine
rake
rmagick
rubyforge
rubygems-update
rubyist-aasm
sources
tzinfo
3
Have you rebooted your server? You might be seeing a cached verison of the page.Adam Crossland
Rails will cache whatever you tell it to cache, but I always assume that a server reboot is required whenever I make changes unless I am using WEBBrick.Adam Crossland
Will try that after backing up latest application release.ehdv

3 Answers

1
votes

I've seen browsers do some fairly weird caching in the past ... this probably seems obvious, but have you flushed your browser cache? As an alternative you could try just getting the page with cURL or Wget and see if it contains your changes.

1
votes

I had a similar problem and service httpd restart did the trick for me.

0
votes

Make sure the file is named file.html.erb

Also, upgrade to Rails 2.3.x it's much faster!

Good luck,

Kent