Creating Your First Rails Plug-in
If you already have Rails installed, youâre ready to craft your first plug-in. Letâs call this plug-in pdf_renderer:
â | $ ârails plugin new pdf_rendererâ |
When we run this command we see the following output:
â | create |
â | create README.rdoc |
â | create Rakefile |
â | create pdf_renderer.gemspec |
â | create MIT-LICENSE |
â | create .gitignore |
â | create Gemfile |
â | create lib/pdf_renderer.rb |
â | create lib/tasks/pdf_renderer_tasks.rake |
â | create lib/pdf_renderer/version.rb |
â | create test/test_helper.rb |
â | create test/pdf_renderer_test.rb |
â | append Rakefile |
â | vendor_app test/dummy |
â | run bundle install |
This command creates the basic plug-in structure, containing a pdf_renderer.gemspec ...
Get Crafting Rails 4 Applications, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.