The Basics of Creating Rails Plugins

45 views
Skip to first unread message

Bharat Manghnani

unread,
Oct 19, 2015, 10:27:52 AM10/19/15
to Ruby on Rails: Talk
Ruby on Rails is really powerful but eventually you may find Ruby lacking a particular functionality or wishing for a particular feature in course of your work. After all, no programming language is perfect and Ruby core team cannot add whatever everyone wishes for. This is where plugins come into play. Rails 1.0 introduced a plugin system to make Rails a really flexible extension system letting programmers develop plugins which could be used to extend or override parts of Rails framework and share these features and modifications with other programmers in a reusable format.

To read full article visit, RailsCarma Blog

Frederick Cheung

unread,
Oct 19, 2015, 11:04:30 AM10/19/15
to Ruby on Rails: Talk


On Monday, October 19, 2015 at 3:27:52 PM UTC+1, Bharat Manghnani wrote:
Ruby on Rails is really powerful but eventually you may find Ruby lacking a particular functionality or wishing for a particular feature in course of your work. After all, no programming language is perfect and Ruby core team cannot add whatever everyone wishes for. This is where plugins come into play. Rails 1.0 introduced a plugin system to make Rails a really flexible extension system letting programmers develop plugins which could be used to extend or override parts of Rails framework and share these features and modifications with other programmers in a reusable format.


FYI, plugins were removed in rails 4.0 

Fred

Colin Law

unread,
Oct 19, 2015, 11:15:38 AM10/19/15
to Ruby on Rails: Talk
On 19 October 2015 at 16:04, Frederick Cheung
There seems to be a conflict between that statement and
http://guides.rubyonrails.org/plugins.html

Colin

botp

unread,
Oct 19, 2015, 1:02:52 PM10/19/15
to rubyonra...@googlegroups.com
On Mon, Oct 19, 2015 at 11:04 PM, Frederick Cheung
> FYI, plugins were removed in rails 4.0

just to be clear. only the vendor/plugins directory was remove.
rails 4+ now recommends the gemified plugin

kind regards
--botp

Frederick Cheung

unread,
Oct 21, 2015, 2:01:04 AM10/21/15
to Ruby on Rails: Talk
Whoops - I guess I stopped thinking of them as plugins once they became gems in their own right. The plugins in the early days were really pretty different to the post 3.0 ones - there didn't used to be actual apis for extending rails - you were either just adding code that stood on its own or monkey patching.

Fred 
Reply all
Reply to author
Forward
0 new messages