Frequency
July 2nd, 2005, 02:03 AM
I'm trying to create a blog on my site and I've set up the database with tables for entries and comments. I'm very new to Rails (this is my first Rails app) and I've no idea how to get the information from the tables into the application.
I've set up a controller for the blog. When I go to /blog on my site, I want it to show the most recent X entries (probably 10), and I want to be able to view specific entries by going to /blog/entryid or /blog/entry/entryid or whatever. Maybe comments at /blog/comment/add. Maybe the way the Rails framework works just hasn't fully sunk in yet, but all tutorials I've found are way too simple and I can't seem to figure out how to adapt the information in them to what I need.
If anybody could help, I'd appreciate it greatly. Thank you so much.
Jamie..
I've set up a controller for the blog. When I go to /blog on my site, I want it to show the most recent X entries (probably 10), and I want to be able to view specific entries by going to /blog/entryid or /blog/entry/entryid or whatever. Maybe comments at /blog/comment/add. Maybe the way the Rails framework works just hasn't fully sunk in yet, but all tutorials I've found are way too simple and I can't seem to figure out how to adapt the information in them to what I need.
If anybody could help, I'd appreciate it greatly. Thank you so much.
Jamie..