Hey,

I made my authentication system using Authlogic, and I have a
current_user helper

Now, I also made a scaffold called posts, and everytime a user creates
a post using that scaffold, i want it to be assigned to that
particular user.

So i can render out the posts that ONLY that user made.

Now, the question is what to do in the forms, and what to do in the
posts controller.

Right now, I already have a has_many belongs_to relationship between
the too, but i dont know where to go next. What do i have to chnage in
the posts controller? What is my post form supposed to look like in
order for it to be associated with the current_user?


AWww ive been trying to get my mind around this, but i can't. i need
help. really bad.

Someone please help. please!!

-- 
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