# Cant able to edit and new post

**URL:** <https://www.ruby-forum.com/t/cant-able-to-edit-and-new-post/166402>\
**Category:** Rails\
**Created:** [April 24, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/cant-able-to-edit-and-new-post/166402 "2009-04-24T20:30:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![haneef5k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/df788c/32.png) [@haneef5k](https://www.ruby-forum.com/u/haneef5k)\
**Post date:** [April 24, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/cant-able-to-edit-and-new-post/166402/1 "2009-04-24T20:30:24Z")

</div>

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
