messaliberty

about hulor and us

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

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 {} \;
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • Reddit
  • StumbleUpon
  • Technorati
  • MySpace
  • Tumblr
  • Yahoo! Buzz
  • Twitter

Related posts:

  1. [Ruby on Rails] uninitialized constant ActiveSupport::~::ForRspec Today I got an error below with rake. What happened?...
  2. [JRuby on Rails on GAE/J] how-to put rubygems into a jar file to get around file limitations GAE (Google App Engine) has a limit number to the...
  3. [Rails] use DataTime class with ActiveRecord column ActiveRecord’s :datetime corresponds to ruby Time class. But Time class...
  4. Lucky Star on Rails A few months ago, suddenly I got a message with...
  5. How to create a single wp-config file for local and remote WordPress development If you are developing WordPress sites, themes or plugins, you...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes