일부 값을 데이터베이스에 저장 한 후 으로 인쇄하기가 어렵습니다. 내가 에 데이터베이스에서 데이터를 수 가져왔다 있지만, 출력은 다음과 같다 :HASH를 ARRAY로 변환하십시오.
@vars={:object=>"46789620999001", :source_id=>1, :comment=>"["This is
my first commenttoday and tommorrow", "This is my first commenttoday
and tommorrow", "This is my first commenttoday and tommorrow", "This
is my first commenttoday and tommorrow", "This is my first comment",
"This is my first comment", "its nice!!!", "Many people do not take
this serious. In this life we have a big role to play in making
ourselves what we would be. It is only God that can help us to live
that life which we have planned, so we can only pray to Him who is the
all and all in our life to help
us."]", :title=>"", :content=>"<div>Life is beautiful. In this life,
whatever you see is what you will use to make out your way. People
around you can help you in many things and ways but can never live
your life for you. It is left for you to live your life, make and take
decisions that you think will help you in living out your dream life.
I believe everybody has a dream life he would like to live. Whatever
decisions one take today will go a long way in determining the kind of
life the one will live in future.<br />Take this as an advise.Bye </
div><div class="blogger-post-footer"><img width='1' height='1'
src='https://blogger.googleusercontent.com/tracker/
6876835757625487750-2447909010390406819?l=godwinagada.blogspot.com'
alt='' /></div>", :author=>"["Godwin",
"ken"]", :category=>"Reality", :post_id=>"", :date=>"2010-06-04", :FileName=>"first"}
>]
사람이 출력 등의 데이터의 각 참조에서 도움이 될 수 있습니다하시기 바랍니다.
@output.each { |g|
puts g.FileName
puts g.post_id
}
등
배열의 색인 및 값은 무엇입니까? 여기에 어떤 배열도 실제로 보이지 않습니다. –