I have this listed in the Toto Issues list on Git and know that it is affecting one other person and so far no ideas... just want to throw it out here if anyone else has had the issue or better yet has a fix: I have a pretty stock instance of Toto. Locally I run it on thin and everything works. When I push it to heroku, the index loads but on every article, instead of showing the date in the article file, it shows today''s date. This wrong date shows visually on the page and also in the links. So the links are all wrong and end in 404 errors. If I modify the link to the correct date of the article (in the article file), the article loads. My blog: http://blog.structuralartistry.com/ <http://blog.structuralartistry.com/%20%20> This is the link that is on the first article. Follow it and you will have a 404: http://blog.structuralartistry.com/2010/11/09/using-wkhtmltopdf-with-ruby-and-rails/ This is the header of the article file for this article: title: Using wkhtmltopdf with Ruby and Rails date: 2010-09-20 description: Pdf generation with wkhtmltopdf on Rails If you fix the link to the right date you will get the article: http://blog.structuralartistry.com/2010/09/20/using-wkhtmltopdf-with-ruby-and-rails/ -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Dec-13 15:26 UTC
Re: Toto blog date issue - production only, localhost fine
David Kahn wrote in post #967963:> I have this listed in the Toto Issues list on Git and know that it is > affecting one other person and so far no ideas... just want to throw it > out > here if anyone else has had the issue or better yet has a fix: > > I have a pretty stock instance of Toto. Locally I run it on thin and > everything works. When I push it to heroku, the index loads but on every > article, instead of showing the date in the article file, it shows > today''s > date.[...] I know nothing about Toto, but here''s a wild guess. Are you using something other than PostgreSQL for your development database? If so, perhaps there''s a SQL syntax issue in Toto... Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn
2010-Dec-13 15:47 UTC
Re: Re: Toto blog date issue - production only, localhost fine
On Mon, Dec 13, 2010 at 9:26 AM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> David Kahn wrote in post #967963: > > I have this listed in the Toto Issues list on Git and know that it is > > affecting one other person and so far no ideas... just want to throw it > > out > > here if anyone else has had the issue or better yet has a fix: > > > > I have a pretty stock instance of Toto. Locally I run it on thin and > > everything works. When I push it to heroku, the index loads but on every > > article, instead of showing the date in the article file, it shows > > today''s > > date. > [...] > > I know nothing about Toto, but here''s a wild guess. Are you using > something other than PostgreSQL for your development database? If so, > perhaps there''s a SQL syntax issue in Toto... > >Thanks, actually Toto is database-less, just a rack app. It uses git as its datasource for blog posts which is pretty cool. Just that since starting to use this I spend more time figuring out what I have done wrong in Toto than writing anything to post ;)> Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ben Lavender
2011-Jan-11 21:14 UTC
Re: Toto blog date issue - production only, localhost fine
A month later, I just fought this same issue, so here is the solution for the foggy sands of time and Google. It''s based on Heroku''s version of 1.8.7 being at a patchlevel in which the YAML parser parses strings that look like dates into dates; toto wants strings. heroku stack:migrate bamboo-mri-1.9.1 and away you go. Ben On Dec 13 2010, 9:47 am, David Kahn <d...-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote:> On Mon, Dec 13, 2010 at 9:26 AM, Marnen Laibow-Koser > <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > > > > > > > > > > > David Kahn wrote in post #967963: > > > I have this listed in the Toto Issues list on Git and know that it is > > > affecting one other person and so far no ideas... just want to throw it > > > out > > > here if anyone else has had the issue or better yet has a fix: > > > > I have a pretty stock instance of Toto. Locally I run it on thin and > > > everything works. When I push it to heroku, the index loads but on every > > > article, instead of showing the date in the article file, it shows > > > today''s > > > date. > > [...] > > > I know nothing about Toto, but here''s a wild guess. Are you using > > something other than PostgreSQL for your development database? If so, > > perhaps there''s a SQL syntax issue in Toto... > > Thanks, actually Toto is database-less, just a rack app. It uses git as its > datasource for blog posts which is pretty cool. Just that since starting to > use this I spend more time figuring out what I have done wrong in Toto than > writing anything to post ;) > > > > > > > > > Best, > > -- > > Marnen Laibow-Koser > >http://www.marnen.org > > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > > -- > > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.