rails 3 how to automatically post user_id in column of comments
Posted
by
user568502
on Stack Overflow
See other posts from Stack Overflow
or by user568502
Published on 2011-01-09T02:36:20Z
Indexed on
2011/01/09
2:54 UTC
Read the original article
Hit count: 196
hi,
im totally new to rails. here my question:
i made an app with articles and comments and use devise for authentication
sadly im only able to post 1 hyperlink so this is the middle part of my post with the files at gist: https://gist.github.com/771366
the article_id is pre selected in the comments/_form - but the user_id isnt. i googled a lot, tried value => session[:user_id] and others, but nothing worked
would be great if someone could tell me how it works ^^
thx
© Stack Overflow or respective owner