search for: postread

Displaying 1 result from an estimated 1 matches for "postread".

Did you mean: post_read
2006 Jul 04
8
writing to many_to_many table
...;'User_Post'' belongs_to :post belongs_to :user In post/view/show: <%= link_to "Mark As Read", :controller => ''post'', :action => ''post_read'', :user => @user.id :post => @post.id %> In post_controller: def post_read @postread = UserPost.new(params[:user :post]) if @postread.save flash[:notice] = "Read" end -- Posted via http://www.ruby-forum.com/.