I am building a small website. I want to have a scrolling window of news headlines, where you click on the headline and a page with a copy of the press release get s displayed. I don't want to run a db, so is there anyway to predefine the relationships between headline and the text file? Thanks, P
on 2013-02-16 03:15
on 2013-02-16 06:40
On Fri, Feb 15, 2013 at 8:13 PM, xscribe@gmail.com <xscribe@gmail.com> wrote: > I am building a small website. I want to have a scrolling window of news > headlines, where you click on the headline and a page with a copy of the > press release get s displayed. > > I don't want to run a db, so is there anyway to predefine the relationships > between headline and the text file? Assuming you mean you want a file based data store, yes, quite possible. You can store the text files in a directory, and when your application runs, it can scan the files and build a link in your web page that will cause your web application to then display the appropriate file, while still keeping the look and feel of your site. I'd personally not do the whole Rails thing for something like this; you might look at Sintra or Merb instead.
on 2013-02-16 17:40
On Fri, Feb 15, 2013 at 6:13 PM, xscribe@gmail.com <xscribe@gmail.com> wrote: > I am building a small website. I want to have a scrolling window of news > headlines, where you click on the headline and a page with a copy of the > press release get s displayed. > > I don't want to run a db, so is there anyway to predefine the relationships > between headline and the text file? Where does the headline come from? Where does the text file come from? How is the relationship determined to start with? And whatever your reasons for not wanting to "run a db", this sounds like an excellent case for using a document-oriented store e.g. Redis, MongoDB, etc. Alternatively, just serve the whole content and use JS/CSS to toggle display of the text part. HTH, -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.