GithubLink is a Neovim plugin that generates Github links for the current line or selection in yo...
mine configurations
Go/gRPC service designed to enable generic rate limit scenarios from different types of applicati...
convert xlsv to csv
a powerful mysql toolset with Go
#4 楼 @WilliamZhu 嗯,谢谢你的建议。你看这段代码可以怎样改进呢?
#1 楼 @shawnyu 搞定啦,万分感谢。现在 view! 方法是这样的
def view! if self.viewed_count.nil? self.viewed_count = 1 self.save else self.viewed_count += 1 self.save end end
#1 楼 @shawnyu 在 model 里面吗?之前却是没有调用, = =,我刚试了一下,会产生这样的错误
undefined method `save' for 1:Fixnum
我想应该是 viewed_count 的值为 1 了,没有 save 的方法~
Learn Web Development with the Ruby on Rails Tutorial,这本书不错哦
已经报名~,^ ^