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> > Extracted source (around line #7): > > 4: > 5: xml.channel do > 6: xml.title(@city.name + '' RailsPubNite Events'') > 7: xml.tag!(''link'', ''test doodad?'') > 8: end > 9: end > > RAILS_ROOT: script/../config/.. > > /usr/lib/ruby/1.8/fileutils.rb:1390:in `directory?'' > /usr/lib/ruby/1.8/fileutils.rb:1390:in `fu_each_src_dest0'' > /usr/lib/ruby/1.8/fileutils.rb:297:in `link'' > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `link'' > ./script/../config/../vendor/rails/activesupport/lib/active_support/vendor/builder/xmlbase.rb:32:in > `tag!'' > #{RAILS_ROOT}/app/views/events/rss.rxml:7:in `_run_rxml_events_rss'' > #{RAILS_ROOT}/app/views/events/rss.rxml:5:in `_run_rxml_events_rss'' > #{RAILS_ROOT}/app/views/events/rss.rxml:2:in `_run_rxml_events_rss'' >Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060508/da392291/attachment.html
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 On 5/8/06, Josh on Rails <rails@thewehners.net> wrote:> > 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 > > > > Extracted source (around line #7): > > > > 4: > > 5: xml.channel do > > 6: xml.title(@city.name + '' RailsPubNite Events'') > > 7: xml.tag!(''link'', ''test doodad?'') > > 8: end > > 9: end > > > > RAILS_ROOT: script/../config/.. > > > > /usr/lib/ruby/1.8/fileutils.rb:1390:in `directory?'' > > /usr/lib/ruby/1.8/fileutils.rb:1390:in `fu_each_src_dest0'' > > /usr/lib/ruby/1.8/fileutils.rb:297:in `link'' > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `link'' > > ./script/../config/../vendor/rails/activesupport/lib/active_support/vendor/builder/xmlbase.rb:32:in > > `tag!'' > > #{RAILS_ROOT}/app/views/events/rss.rxml:7:in `_run_rxml_events_rss'' > > #{RAILS_ROOT}/app/views/events/rss.rxml:5:in `_run_rxml_events_rss'' > > #{RAILS_ROOT}/app/views/events/rss.rxml:2:in `_run_rxml_events_rss'' > > > > > Thanks! >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060508/e39c79a6/attachment.html
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. On 5/8/06, Josh on Rails <rails@thewehners.net> wrote:> > 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 > > > On 5/8/06, Josh on Rails <rails@thewehners.net> wrote: > > > > 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 > > > > > > Extracted source (around line #7): > > > > > > 4: > > > 5: xml.channel do > > > 6: xml.title(@ city.name + '' RailsPubNite Events'') > > > 7: xml.tag!(''link'', ''test doodad?'') > > > 8: end > > > 9: end > > > > > > RAILS_ROOT: script/../config/.. > > > > > > /usr/lib/ruby/1.8/fileutils.rb:1390:in `directory?'' > > > /usr/lib/ruby/1.8/fileutils.rb:1390:in `fu_each_src_dest0'' > > > /usr/lib/ruby/1.8/fileutils.rb:297:in `link'' > > > /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `link'' > > > ./script/../config/../vendor/rails/activesupport/lib/active_support/vendor/builder/xmlbase.rb:32:in > > > `tag!'' > > > #{RAILS_ROOT}/app/views/events/rss.rxml:7:in `_run_rxml_events_rss'' > > > #{RAILS_ROOT}/app/views/events/rss.rxml:5:in `_run_rxml_events_rss'' > > > #{RAILS_ROOT}/app/views/events/rss.rxml:2:in `_run_rxml_events_rss'' > > > > > > > > > Thanks! > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060508/f9d3db47/attachment.html
> 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 Aman -- AIM: sporkmonger Jabber: sporkmonger@jabber.org
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 Development 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060509/f3d1fd08/attachment.html
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 Lynch <lynchnco@patmedia.net> wrote:> > > > 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 Development 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 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Ben Reubenstein 303-947-0446 http://www.benr75.com
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 -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Ben Reubenstein Sent: Monday, May 08, 2006 9:01 PM To: rails@lists.rubyonrails.org Subject: Re: [Rails] Agile Web Development with Rails 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 Lynch <lynchnco@patmedia.net> wrote:> > > > 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 noreal> answer. > > > > On page 57 in the book "Agile Web Development 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 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Ben Reubenstein 303-947-0446 http://www.benr75.com _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
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 On 5/8/06, Pat Lynch <lynchnco@patmedia.net> wrote:> > 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 > > -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Ben > Reubenstein > Sent: Monday, May 08, 2006 9:01 PM > To: rails@lists.rubyonrails.org > Subject: Re: [Rails] Agile Web Development with Rails > > 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 Lynch <lynchnco@patmedia.net> wrote: > > > > > > > > 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 Development 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 > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > -- > Ben Reubenstein > 303-947-0446 > http://www.benr75.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060509/44ee6c9d/attachment.html
Hi, I''m using the book "Agile Web Development 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 -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Conrad Taylor Sent: Monday, May 08, 2006 9:35 PM To: rails@lists.rubyonrails.org Subject: Re: [Rails] Agile Web Development with Rails 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 On 5/8/06, Pat Lynch <lynchnco@patmedia.net> wrote: 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 -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto: rails-bounces@lists.rubyonrails.org] On Behalf Of Ben Reubenstein Sent: Monday, May 08, 2006 9:01 PM To: rails@lists.rubyonrails.org <mailto:rails@lists.rubyonrails.org> Subject: Re: [Rails] Agile Web Development with Rails 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 Lynch < lynchnco@patmedia.net> wrote:> > > > 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 noreal> answer. > > > > On page 57 in the book "Agile Web Development 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 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org <mailto:Rails@lists.rubyonrails.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Ben Reubenstein 303-947-0446 http://www.benr75.com _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060509/abe7a72f/attachment.html