Author: admin
-
What’s Cuba?
To begin, let’s take a moment to answer “what is Cuba?” .Cuba is a web application micro-framework written in Ruby byMichel Martens. It rides onRack so we have the benefits of middleware,Rack libraries, and a variety of web servers for free.Cuba is minimalist by design (203 lines of code) which makes itfaster compared to other web frameworks. Also,…
-
Welcome Aboard
This first chapter focuses on the bare minimum you need to know to work with Cuba. We’ll learn some of the core concepts walkingthrough the creation of a simple application. After reading this, you will know:How to install Cuba.Create a “Hello world!” application.The basic principles behind Cuba.The basics of Rack.
-
The Guide to Cuba
The Guide to Cuba Learn how to make Ruby web applications by following a minimalistic approach. This book will teach you the basics ofCuba, the Rubymicroframework, and a set of micro libraries.This book is a work in progress. The content may change at any time.All content is licensed under theCreative Commons Attribution Non Commercial Share…
-
Padrino Cache
This component enables caching of an application’s response contents on both page- and fragment-levels. Output cached in this manner is persisted, until it expires or is actively expired, in a configurable store of your choosing. Most popular key/value stores work out of the box. Take a look at the Moneta documentation for a list of all supported…
-
Padrino Admin
Padrino comes shipped with a slick and beautiful Admin Interface, with the following features: Feature Description Orm Agnostic Adapters for datamapper, sequel, activerecord, mongomapper, mongoid, couchrest Authentication User Authentication Support, User Authorization Management Template Agnostic Erb and Haml Rendering Support Scaffold You can create a new “admin interface” by providing a single Model MultiLanguage English,…
-
Padrino Mailer
This component creates an easy and intuitive interface for delivering email within a Sinatra application. The mail library is utilized to do the bulk of the work. There is full support for rendering email templates, using a html content type and for file attachments. The Padrino Mailer uses a familiar Sinatra syntax similar to that of defining…
-
Mounting Applications
Padrino applications are all automatically mountable into other Padrino projects. This means that a given Padrino project directory can easily mount multiple applications. This allows for better organization of complex applications, re-usable applications that can be applied (i.e admin, auth, blog) and even more flexibility. You can think of mountable applications as a “full-featured” Merb slice or…
-
Development Commands
Padrino also supports robust logging capabilities. By default, logging information will go to the STDOUT in development (for use in a console) and in an environment-specific log file log/development.log in test and production environments. You can modify the logging behavior or disable logging altogether (more docs here): To use the logger within a Padrino application, simply refer to the logger method accessible…
-
Installation
Ruby & RubyGems First, you need to have a ruby interpreter installed. You can verify if you have the interpreter installed by typing which ruby into the terminal and ensuring a result. If not, we recommend installing RVM on most platforms which manages your ruby interpreter installation and configuration. Once RVM is installed, be sure to install Ruby 2.3.0…
-
Why Learn Padrino?
This guide will give an overview of the various other guides, resources and steps towards becoming a Sinatra + Padrino aficionado. Advantages Let’s take a second to briefly enumerate three major advantages of learning Padrino: Easy to Learn The most interesting aspect of the Padrino stack (Rack, Sinatra, et. al.) in comparison to other web…