Forum: Ruby on Rails How to automatically Create a new page each day?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ccf5b6d5edb6c6af6881cdb6bc60aaee?d=identicon&s=25 sayeo87 (Guest)
on 2009-05-19 09:18
(Received via mailing list)
Hi,

I'm completely new to Ruby and RoR and yet I have an assignment due in
less
than a week =( One part of the assignment states that my RoR app will
have
to create a new page each day. I'm wondering what is the best way to get
this done? Should there be a continuous process running on the server to
detect the start of a new day to create a page for that day or should it
be
more request-driven? Any help is much appreciated. Thanks!

--
View this message in context:
http://www.nabble.com/How-to-automatically-Create-...
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-05-19 09:25
(Received via mailing list)
On May 19, 4:54 am, sayeo87 <yeosuan...@gmail.com> wrote:
> Hi,
>
> I'm completely new to Ruby and RoR and yet I have an assignment due in less
> than a week =( One part of the assignment states that my RoR app will have
> to create a new page each day. I'm wondering what is the best way to get
> this done? Should there be a continuous process running on the server to
> detect the start of a new day to create a page for that day or should it be
> more request-driven? Any help is much appreciated. Thanks!
>
I'd probably just have a cronjob that ran once a day.

Fred
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2009-05-19 09:29
(Received via mailing list)
What do you mean by 'create a new page for each day'?
Colin

2009/5/19 Frederick Cheung <frederick.cheung@gmail.com>
Cf8247d5b53af1d46f6f92b37764dade?d=identicon&s=25 sanjib dhar (Guest)
on 2009-05-19 17:50
(Received via mailing list)
My idea is

   1. put one shell script file to create the page which will run every
day
   at 12:01 am.
   2. name the file as today's date.
   3. display the file named as todays date.

Simple!!!!!
Dd2d775dea75b381edb1bbf0600a0907?d=identicon&s=25 Marnen Laibow-Koser (marnen)
on 2009-05-19 17:53
Colin Law wrote:
> What do you mean by 'create a new page for each day'?
> Colin

This is the $64,000 question.  If "create a new page each day" just
means "respond to URLs with a date in them" or "display today's
content", then there is no need for a cron job and the date can just be
processed like any other parameter.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
Fac81a9d95c81d817a2debb6f717f3ac?d=identicon&s=25 Sazima (Guest)
on 2009-05-20 17:33
(Received via mailing list)
Beware of bad SEO practices...

Cheers, Sazima

On May 19, 12:53 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
This topic is locked and can not be replied to.