search for: e9778fe6

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

Did you mean: 9774fe6
2006 Mar 11
2
ActiveRecord increment confusion
Part of my application counts the number of times a link was clicked. The Link.click function should increment the @link.clicks attribute. I assumed def click @link = Link.find(params[:id]) if @link.increment(''clicks'') redirect_to @link.url else flash[:error] = ''Could not update clicks'' redirect_to :action =>