messaliberty

about hulor and us

Posts Tagged ‘troubleshooting’

[Ruby on Rails] Didn't apply edited view file

May 18th, 2009 post by ice

With Ruby on Rails 2.3.2

Sometimes, edit rails view file like app/view/users/edit.html.erb, but didn’t apply it.
Draws page with old (before edit) view.

Reason

In app/view/* directory, like app/view/users,
there might be files like edit.html.erb.~BASE~ ends with “.html.erb.*”.
Then rails draw pages with view file that ends with “.*”.

svn (subversion) makes .~BASE~ files when compare working file with old revision file.

How to resolve

remove .*~BASE~ files like this:

 % cd project_dir
 % find . -name "*html.*"
 ./app/views/userss/edit.html.erb.~BASE~
 ./app/views/userss/show.html.erb.~BASE~
 % find . -name "*.~BASE~" -exec rm {} \;