Displaying 1 result from an estimated 1 matches for "powerviewcontrol".
2006 Feb 22
0
model''s custom attributes not loaded if file is not in app/models/ folder, HELP!!
...roller.rb, works
---------
class UserviewController < ApplicationController
def index
@user = User.find(1)
logger.debug @user.fullname
end
end
----------------- /app/controllers/powerview_controller.rb, 1st time works,
not after ---
require ''profile/poweruser''
class PowerviewController < ApplicationController
def index
@poweruser = Profile::Poweruser.find(1)
logger.debug @poweruser.fullname # 1st time works, not after
end
end
test steps:
* create the model, controller, and rhtml pages.
* view the webpage, http://localhost:3000/userview, it always works.
* view...