Questions tagged [padrino]

Padrino is a ruby framework built upon the excellent Sinatra Microframework. Sinatra is a DSL for quickly creating simple web applications in Ruby. Padrino was created to make it fun and easy to code more advanced web applications while still adhering to the spirit that makes Sinatra great!

Overview

Padrino is a Ruby framework built upon the excellent Sinatra microframework. This framework makes it as fun and easy as possible to code increasingly advanced web applications by expanding upon Sinatra while maintaining the spirit that made it great.

For more overview, please see the Wikipedia article.

Features

Here is a list of major functionality Padrino provides on top of Sinatra:

  • Agnostic: Full support for many popular testing, templating, mocking, and database libraries.
  • Generators: Create Padrino applications, models, controllers i.e: padrino g project.
  • Mountable: Unlike other ruby frameworks, principally designed for mounting multiple apps.
  • Routing: Full url named routes, named params, respond_to support, before/after filter support.
  • Tag Helpers: View helpers such as: tag, content_tag, input_tag.
  • Asset Helpers: View helpers such as: link_to, image_tag, javascript_include_tag.
  • Form Helpers: Builder support such as: form_tag, form_for, field_set_tag, text_field.
  • Text Helpers: Useful formatting like: relative_time_ago, js_escape_html, sanitize_html.
  • Mailer: Fast and simple delivery support for sending emails (akin to ActionMailer).
  • Admin: Builtin Admin interface (like Django).
  • Logging: Provide a unified logger that can interact with your ORM or any library.
  • Reloading: Automatically reloads server code during development.
  • Localization: Full support of I18n.

Note that as a user of Padrino, each of the major components can be pulled in separately to an existing Sinatra application or they can be used altogether for a comprehensive upgrade to Sinatra (a full-stack Padrino application).

To read more about registering certain Padrino functionality into your Sinatra application, check out the Standalone Usage in Sinatra guide.

378 questions
-1
votes
1 answer

ruby, sinatra, padrino,slim

I need to develop a simple File Upload I'm using padrino and slim-templates. Also generated my views using the padrino command generator such as padrino g admin_pages modelName. Now I want to add a fileUpload field to the generated code... I'm…
lyons
  • 89
  • 10
-2
votes
4 answers

HAML runs inline Ruby, but does not render anything

-#encoding: utf-8 :css .hidden{display:none;} %script{:src=>"/javascripts/jquery.js"} %form{:action=>"https://get724.ccvb.com.tr/Get724/get724uye.aspx",:method=>"post"} %input.hidden{:type=>"text",:name=>"uyeno",:value=>""} …
gkaykck
  • 2,347
  • 10
  • 35
  • 52
-6
votes
1 answer

Please help me access nested array

I have an array that is called from an API. The data returned is like so (tidied up for display purposes). [ { "MessageThreadID": 30044, "CustomerID": 433, "MessageType": 1, "Subject": "What is my account…
user3385136
  • 513
  • 1
  • 7
  • 20
1 2 3
25
26