Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个社交网络应用程序,用户有时可以喜欢另一个用户写下的评论。现在我有一个图像视图,其中包含一个代表用户写的东西的图像,我希望能够在该图像的右上角显示一个小数字,其中包含他获得了多少个赞,我该怎么做?
为什么不简单地把UILabel喜欢的数量放在上面UIImageView呢?
UILabel
UIImageView
我在 railscasts.com 上观看了关于 Kaminari 的一集,并尝试将这个系统添加到我的博客中。但是这个错误一次又一次地出现,我不明白为什么。
来自帖子控制器的索引操作:
def index @posts = Post.order("title").page(params[:page])