Displaying 2 results from an estimated 2 matches for "channel_titl".
Did you mean:
channel_title
2006 Mar 31
6
how to access a hash within a hash in ruby?
Simple question:
I know how to access a data field in a hash by doing
hash_name[datafield_name].
But what if the datafield itself is a hash? I tried a couple of
variations but nothing seems to be working and tutorials do not go into
such details.
Is there a simple way or should I create separate instances?
-Chris
--
Posted via http://www.ruby-forum.com/.
2005 Nov 04
0
Threads and Active Reccord
...# if the feed appears
to have been updated
feed.signature = item[:title] # then save the new signature
feed.save
feed.accounts.each do |account| #### THE ERROR IS PRODUCED HERE
tell = Tell.new
tell.message = "[#{item[:channel_title]} ( #{item[:link]} ):
#{item[:title]} ] \n #{item[:description]} \n" +
"--
http://localhost:3000/accounts/#{account.id}"
account.tells << tell
end
end # if feed.sig
end # loop do
end # Thread.new...