# RSS Feed / xml.link problem?

**URL:** <https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916>\
**Category:** Rails\
**Created:** [May 8, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916 "2006-05-08T16:44:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 8, 2006, 4:44pm UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/1 "2006-05-08T16:44:31Z")

</div>

I’m having an odd problem. I’m trying to create an RSS feed (working off  
the  
Recipe), but “xml.link” generates error about “Can’t convert Hash to  
String”. From the error trace, it _looks_ like it’s calling the a  
fileutil  
‘link’ method (as in, filesystem symbolic link) - even xml.tag!  
generates  
this error.

Er, how do I make it stop?

Here’s the full error:

can’t convert Hash into String

> RAILS\_ROOT: script/…/config/…

Thanks!

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 8, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/2 "2006-05-08T17:28:50Z")

</div>

So, I thought I’d out-smart this problem: I grabbed FeedTools. But I’m  
still  
getting this error there (though, only at the point where I build the  
xml -  
so, the link goes into the feed object alright, but gets odd somewhere  
during the build?)

– Joshua

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 8, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/3 "2006-05-08T18:33:03Z")

</div>

Just updating myself… In case other people have this problem, I  
suppose…  
This problem does not appear on my debian box, but does appear on my  
Windows  
machine.

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 8, 2006, 7:22pm UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/4 "2006-05-08T19:22:21Z")

</div>

> So, I thought I’d out-smart this problem: I grabbed FeedTools. But I’m still  
> getting this error there (though, only at the point where I build the xml -  
> so, the link goes into the feed object alright, but gets odd somewhere  
> during the build?)

Is this what you tried?

require ‘rubygems’  
require ‘feed\_tools’

feed = FeedTools::Feed.new  
feed.title = @city.name + ’ RailsPubNite Events’  
feed.link = “test doodad?”  
feed.build\_xml(‘rss’, 2.0)

Because that worked just fine for me.

## Cheers, Bob A.

AIM: sporkmonger  
Jabber: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 9, 2006, 3:01am UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/5 "2006-05-09T03:01:28Z")

</div>

Your database is not configured properly. Rails cannot access it.  
Check your database.yml file and database user/pass settings.

~Ben

On 5/8/06, Pat L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Ben R.  
303-947-0446  
[http://www.benr75.com](http://www.benr75.com)

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 9, 2006, 3:35am UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/6 "2006-05-09T03:35:48Z")

</div>

Hey Pat, when you see this type of error message, it means that you  
need to add a password for you database. Thus, you’ll enter the  
password  
for root and you should be good to go.

Peace,

-Conrad

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 9, 2006, 3:10am UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/7 "2006-05-09T03:10:53Z")

</div>

Hi,

Thanks for responding…

I set the Database.yml file to those given by the author on page 56 in  
Figure 6.1.

I couldn’t grant permissions using the procedures shown by the author on  
pg 54.

I’ll delete the database and try again…

Wish me luck,  
Pat

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 9, 2006, 3:01am UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/8 "2006-05-09T03:01:21Z")

</div>

Hi,  
I put this on the forum.but perhaps one of you can help me solve this  
problem.but the problem has been on it for about 5 months and still no  
real answer.

On page 57 in the book “Agile Web D. with Rails” there is the  
following command:  
“ruby script/generate scaffold Product Admin”  
When I invoke it, I get the following error message:  
“#28000 access denied for user ‘root’@‘localhost’ using password [NO]”

I’d appreciate any help.

Thanks,  
Pat

---

<div class="post-metadata">

**Author:** ![Josh\_on\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@Josh\_on\_Rails](https://www.ruby-forum.com/u/Josh_on_Rails)\
**Post date:** [May 9, 2006, 3:57am UTC](https://www.ruby-forum.com/t/rss-feed-xml-link-problem/59916/9 "2006-05-09T03:57:21Z")

</div>

Hi,  
I’m using the book “Agile Web D. with Rails”.  
The author had me change database.yml, on page 56 [fig 6.1].

I tried going back to the original yml file and added a password for  
root.but I still get the same error.

On page 54, when I tried the following command:  
Grant all on depot\_development.\* to ‘dave’@‘localhost’;  
I get the following error:  
Error 1133(42000): Can’t find any matching row in the user table.

I’m stumped.it just can’t possibly be this difficult.

Help,  
Pat
