Displaying 1 result from an estimated 1 matches for "userviewcontroller".
Did you mean:
userview_controller
2006 Feb 22
0
model''s custom attributes not loaded if file is not in app/models/ folder, HELP!!
...module Profile
class Poweruser < ActiveRecord::Base
set_table_name "users"
def fullname
">>> power user: " + self.first + " " + self.last
end
end
end
--------------------- /app/controllers/userview_controller.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
de...