search for: userpost

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

Did you mean: userhost
2006 Jul 04
8
writing to many_to_many table
...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/.