users_controller.rb does include Viewable, but lacks this method:
def update_views
@user= User.find(params[:id])
updated = update_view_count(@user)
render :text => updated ? 'updated' : 'duplicate'
end
..and the corresponding call needs to be added to
/vendor/plugins/community_engine/app/views/users/show.html.haml:
%script{:type=>"text/javascript", :charset=>"utf-8"}
= remote_function :url => {:controller => 'users', :action =>
'update_views', :id => @user}, :method => :put
I'd like to write some tests, and check these in. How do I go about
submitting changes? Is there a branch I commit to for Bruno's review?
thx!
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---