你最喜欢的鲜为人知的Rails宝石/插件

时间:2023-02-02 00:18:31

What are your favorite lesser-known gems/plugins for Rails?

你最喜欢的Rails最不为人知的宝石/插件是什么?

This question about Rails plugins brought up only the usual suspects (Paperclip, RSpec, Shoulda, Restful Auth, etc). It'd be great to get a list going about the hidden, less popular ones that rock.

关于Rails插件的这个问题只提出了常见的嫌疑人(Paperclip,RSpec,Shoulda,Restful Auth等)。获得一份关于隐藏的,不太受欢迎的摇滚乐队的名单真是太棒了。

7 个解决方案

#1


4  

I just started using App_Version. It's nice to be able to put the version of the app that your running on the bottom of your page (Like the "svn revision" number on the bottom right-hand corner of this page).

我刚开始使用App_Version。很高兴能够将您运行的应用程序版本放在页面底部(如本页右下角的“svn revision”编号)。

#2


4  

I've been using cache_money a lot in projects recently. Its given us a huge performance increase

我最近在项目中一直使用cache_money。它给了我们巨大的性能提升

#3


4  

I'm really liking delayed_job for asynchronous tasks it's simple and effective. Been using it for async mail with great success.

我非常喜欢使用delayed_job进行异步任务,这很简单有效。一直在使用异步邮件取得巨大成功。

#4


2  

Another one i've found I'm using more and more is andand, this gives you guarded method invocation.

另一个我发现我正在使用越来越多的是和,这给你保护方法调用。

Instead of

entry.at('description') && entry.at('description').inner_text

you write

entry.at('description').andand.inner_text

It's been saving my fingers lots of typing in the last couple of projects.

在过去的几个项目中,它一直在保存我的手指。

#5


1  

Dr. Nic's Magic Models Not that i actually use this gem on any of my projects, I just thought it was cool when it was first released. Dr. Nic also did a hack so if you made typos in your code it would guess what you meant, so very very wrong.. but funny as hell.

Nic博士的魔术模型并不是说我在任何一个项目中实际使用这个宝石,我只是觉得它在首次发布时很酷。尼克博士也做了一个黑客,所以如果你在你的代码中输入拼写错误就会猜到你的意思,所以非常非常错误......但是很有趣。

#6


1  

responds_to _parent lets you do ajax-like things with file upload forms (which can't use real ajax.) But you can also use it anytime you want to send RJS to the parent window.

responds_to _parent允许你使用文件上传表单(不能使用真正的ajax)来执行类似ajax的事情。但是你也可以在任何想要将RJS发送到父窗口的时候使用它。

Also, a bit of self-promotion. I really like my plugin soundex_find, which allows you to handle misspellings and phonetic matches in auto-completers or searches.

还有一点自我推销。我真的很喜欢我的插件soundex_find,它允许你在自动完成或搜索中处理拼写错误和语音匹配。

#7


0  

I think Summarize (https://github.com/ssoper/summarize) and Geocoder (http://www.rubygeocoder.com/) are pretty cool.

我认为Summarize(https://github.com/ssoper/summarize)和Geocoder(http://www.rubygeocoder.com/)非常酷。

#1


4  

I just started using App_Version. It's nice to be able to put the version of the app that your running on the bottom of your page (Like the "svn revision" number on the bottom right-hand corner of this page).

我刚开始使用App_Version。很高兴能够将您运行的应用程序版本放在页面底部(如本页右下角的“svn revision”编号)。

#2


4  

I've been using cache_money a lot in projects recently. Its given us a huge performance increase

我最近在项目中一直使用cache_money。它给了我们巨大的性能提升

#3


4  

I'm really liking delayed_job for asynchronous tasks it's simple and effective. Been using it for async mail with great success.

我非常喜欢使用delayed_job进行异步任务,这很简单有效。一直在使用异步邮件取得巨大成功。

#4


2  

Another one i've found I'm using more and more is andand, this gives you guarded method invocation.

另一个我发现我正在使用越来越多的是和,这给你保护方法调用。

Instead of

entry.at('description') && entry.at('description').inner_text

you write

entry.at('description').andand.inner_text

It's been saving my fingers lots of typing in the last couple of projects.

在过去的几个项目中,它一直在保存我的手指。

#5


1  

Dr. Nic's Magic Models Not that i actually use this gem on any of my projects, I just thought it was cool when it was first released. Dr. Nic also did a hack so if you made typos in your code it would guess what you meant, so very very wrong.. but funny as hell.

Nic博士的魔术模型并不是说我在任何一个项目中实际使用这个宝石,我只是觉得它在首次发布时很酷。尼克博士也做了一个黑客,所以如果你在你的代码中输入拼写错误就会猜到你的意思,所以非常非常错误......但是很有趣。

#6


1  

responds_to _parent lets you do ajax-like things with file upload forms (which can't use real ajax.) But you can also use it anytime you want to send RJS to the parent window.

responds_to _parent允许你使用文件上传表单(不能使用真正的ajax)来执行类似ajax的事情。但是你也可以在任何想要将RJS发送到父窗口的时候使用它。

Also, a bit of self-promotion. I really like my plugin soundex_find, which allows you to handle misspellings and phonetic matches in auto-completers or searches.

还有一点自我推销。我真的很喜欢我的插件soundex_find,它允许你在自动完成或搜索中处理拼写错误和语音匹配。

#7


0  

I think Summarize (https://github.com/ssoper/summarize) and Geocoder (http://www.rubygeocoder.com/) are pretty cool.

我认为Summarize(https://github.com/ssoper/summarize)和Geocoder(http://www.rubygeocoder.com/)非常酷。