i’m trying to get the results from find(). The code of the find is:
@user = User.find(:all, :conditions => [ “user_id = ?”, val ])
i’ve checked it with the function @user.size and it returns me one
The problem is that inside @user i see only the character “#” and when i
try to print some value of the record rails for example @user.nome,
rails return me that error:
undefined method `nome’ for #Array:0xb68ba5e0
but nome is one column of the table!!!
Can somebody help me???