Ruby ERB not reflecting changes
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.
Insta开发者_C百科lled 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
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.
I had a similar problem and service httpd restart
did the trick for me.
Make sure the file is named file.html.erb
Also, upgrade to Rails 2.3.x it's much faster!
Good luck,
Kent
精彩评论