Rails:我最喜欢的Rails插件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Rails:我最喜欢的Rails插件相关的知识,希望对你有一定的参考价值。
Here are a few examples of how to install my favorite rails plug-ins from GIT. The alternative solution is to simply use gem --and have the plugin available throughout all of my rails applications-- but I prefer to have my applications living as self-contained units.
############################### #Step 1 ############################### #Change directory (cd) into rails_app/vendor/plugins/ bash$ cd rails_app/vendor/plugins ############################### #Step 2: Install plugins from GIT ############################### ################## #Facebooker ################## #Install Facebooker (http://madebymany.co.uk/tutorial-for-restful_authentication-on-rails-with-facebook-connect-in-15-minutes-00523) git clone git://github.com/mmangino/facebooker.git facebooker ################## #authentication_plugin ################## #Handy for creating user log-ins (http://railscasts.com/episodes/67-restful-authentication) git clone git://github.com/technoweenie/restful-authentication.git restful_authentication ################## #will_paginate ################## #Instrumental for paginating search results (http://railscasts.com/episodes/51-will-paginate) git clone git://github.com/mislav/will_paginate.git ################## #RSpec-Rails ################## #A life saver when it comes to testing (http://railscasts.com/episodes/157-rspec-matchers-macros) git clone git://github.com/dchelimsky/rspec-rails.git ################## #Acts as Ferret ################## #acts_as_ferret makes it simple to implement full text search for Rails and is modeled after Lucene #Step 2 git clone git://github.com/jkraemer/acts_as_ferret.git #Step 3 Include "require 'acts_as_ferret'" in /rails_app/config/environment.rb
以上是关于Rails:我最喜欢的Rails插件的主要内容,如果未能解决你的问题,请参考以下文章
在 Rails 3 中,我使用的是 jQuery Tokenize 插件,但表单提交的是值,而不是 id