Smarty 2k wrote:
> hi,
>
> Please help me!!!!!
>
> am using ruby-1.8.6
> gem blackbook-1.0.4
>
> output is @contacts.inspect(collection of Emails and name)
>
> I got this error :
> undefined method `name' for {:email=>"[email protected]", :name=>"aaa"}:Hash
>
> please give me further solution..... please....
>
> Thankyou.
Hi smarty,
I got the same error, for this i changed my view like this,
<%= contact[:name] if !contact.blank? %>
I hope this can helps you.
Thank You.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---