'get_user_list' function not working

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs