Forum: Ruby on Rails cant able to edit and new post

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
85dabd7adebc63dbdae73e5a6ce603db?d=identicon&s=25 haneef5k (Guest)
on 2009-04-24 20:30
(Received via mailing list)
i want to show fullname by using fuction call 'get_user_list'  , but
its not working..??

tis s user.rb

(
def full_name
    self.first_name + "  " + self.last_name
  end )


my post controller


( def get_user_list
   return User.find(:all, :order => 'last_name ASC').collect {|user|
[user.full_name, user.id]}

NameError in PostsController#edit
undefined local variable or method `get_user_list' for
#<PostsController:0x47c8360>
This topic is locked and can not be replied to.