I have three tables. users, posts, users_posts. This last one is to
mark a post as read.
How do I write to the users_post table?
Here’s what I have:
In model ‘User_Post’
<%= link_to “Mark As Read”, :controller => ‘post’, :action =>
:user => @user.id :post => @post.id %>
@postread = UserPost.new(params[:user :post])
flash[:notice] = “Read”