Hi, I'm trying to make a rails app and although I understand the logic
of what I'm trying to do, the syntax used in ruby really confuses me as
it seems to do a lot of the work automatically.
I have 3 tables, user, forum and post. They are related as follows:
When a user registers or logs in, the user is stored in a session. The
user can then add a post to a form by using the default form generated
by the scaffold. However, atm, the user can type in any user ID into
the form. I would like to delete this part of the form and use the
current [:user][:user_id] in it's place but I don't know how to combine
this with the already existing params in the controller.
Any advice would be appreciated, thanks in advance.