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?
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.
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With