Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a plugin/gem in rails [closed]

Whats the best guide to start working like creating a plugin/gem. I got this tutorial from railscast but this is very basic.I got some other tutorials but all of them are too basic. Any other tutorial, you can suggest.

and what the things we should kept in mind while creating a gem or plugin?

like image 901
Mohit Jain Avatar asked Aug 16 '10 17:08

Mohit Jain


People also ask

What is the difference between GEM and plugin?

The basic difference is a gem is something that needs to be installed on the system running your Rails application, whereas a plugin is deployed along with your application. More specifically, plugins live in vendor/plugins whereas gems need to be install using rake gem install gem_name.

How do I use Rails plugins?

You can navigate to the directory that contains the plugin, run the bundle install command and run the one generated test using the bin/test command. This will tell you that everything got generated properly, and you are ready to start adding functionality.

What is a plugin in Ruby on Rails?

A Rails plugin is either an extension or a modification of the core framework. Plugins provide: a way for developers to share bleeding-edge ideas without hurting the stable code base. a segmented architecture so that units of code can be fixed or updated on their own release schedule.


1 Answers

I might be late to comment here. I found very useful tutorial here. SO. just want to share it with u.

http://guides.rubygems.org/make-your-own-gem/

like image 178
Ketan Ghumatkar Avatar answered Sep 20 '22 13:09

Ketan Ghumatkar