Hello everyone,

I'd like to implement a blog on my site.
I can do this easily enough using the built in scaffolding, and then
amend it accordingly.

However, I'd quite like users to be able to comment on blogs, and to
allow for user's to be stored in the database. In my head I have a
blogs table with the following columns
id
title
body
user_id
created_at
updated_at

>From here, each time i create a blog, the user_id from the session is
placed in the table.

All good,

I would quite like the ability for users to then comment on a post
once logged in.

Has anyone done this. or know of a good tutorial that covers this?

On a side note:
At present the user_id is not being set in the blog table. Any reason
for this???

Many Thanks

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to