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
0
votes
2 answers

Website in ruby using Sinatra/Padrino

i'm in engineering school and i'm very new in website development (not in my only did C language and algorithm) and i'd like to make one beautiful. By searching, i read that using Padrino/Sinatra could be nice. I installed it, but i didn't find a…
David Bensoussan
  • 2,887
  • 2
  • 38
  • 55
0
votes
1 answer

Error creating Admin application in Padrino

I have Padrino project witch using Erb as templating engine and Mongoid as Object-Document-Mapper. I'm trying to create Admin application for my Padrino project by following command padrino g admin -e erb but i receive an…
Beer Brother
  • 514
  • 2
  • 6
  • 15
0
votes
1 answer

How does Padrino map :index to '/'?

I'm curious how Padrino accomplishes mapping: get :index do to: get '/' do I'm having trouble finding it in the source.
Jesse Earle
  • 1,622
  • 1
  • 11
  • 13
0
votes
1 answer

How to create a relative path to video in Middleman / Padrino?

I am using set :relative_links, true for my Middleman project. This works for image_tag and link_to, but how can I create a relative link to a static asset like a video in a /videos directory? Thanks!
Matt Fordham
  • 3,147
  • 10
  • 34
  • 51
0
votes
3 answers

Global before filter in padrino - how is it done?

The padrino docs let you know how to do a before filter in the context of a controller, but I'm trying to do a global filter. The problem I'm trying to solve is that my domain name should be forwarded to the www. version, but godaddy isn't doing it…
Louis Sayers
  • 2,162
  • 3
  • 30
  • 53
0
votes
2 answers

Padrino - changing heroku's RACK_ENV to staging crashes app

I've got a staging app on heroku. The app works if I leave the RACK_ENV set as production, but if I set it to staging the app crashes (Error H10 (App crashed)) - that's all the info I get... My app is a Padrino app, and I'm using RACK_ENV to set…
Louis Sayers
  • 2,162
  • 3
  • 30
  • 53
0
votes
3 answers

iPhone prompt to update

I am currently working on an API for an iPhone app, which is for the version 2 of the app. (APIs were developed in Padrino) So I still have the old API for version 1 iPhone app. What I wanted to do is to prompt the iPhone app user (if possible) to…
RodM
  • 426
  • 1
  • 5
  • 19
0
votes
1 answer

MongoMapper, Padrino and Passenger - Connection Failure?

I'm currently working on a Padrino project which has been working absolutely fine in developement, but after pushing it to my live environment, I'm experiencing problems. Checked the logs and the error I'm getting is: [31m ERROR[0m -[33m24/Jul/2012…
Pezholio
  • 2,439
  • 5
  • 27
  • 41
0
votes
1 answer

Padrino app with ActiveRecord+MySQL running out of memory running on nginx and passenger

Killing and restarting nginx solved the problem. My question is, where do I start looking? What could be common causes of such a stack running out of memory?
aaandre
  • 2,502
  • 5
  • 33
  • 46
0
votes
1 answer

Sinatra Padrino simple App does not run

I have written a few plain Sinatra apps using data mapper. I wanted to try Padrino. Went to padrinorb.com On the front page there is gem install padrino padrino g project myapp -d datamapper -b cd myapp padrino g admin padrino rake dm:migrate…
Tom Andersen
  • 7,132
  • 3
  • 38
  • 55
0
votes
1 answer

Sum of points of stories in PivotalTracker gem

I have started using the PivotalTracker gem in my Ruby on Sinatra-Padrino. It provides really good API(s), but I am stuck in a requirement. I want the sum of the points/estimates of all the stories which are features. What I tried (project is an…
Sandip Agarwal
  • 1,890
  • 5
  • 28
  • 42
0
votes
1 answer

How do you get Amazon SES to send upon submission of form in Padrino

Following the instructions here: http://www.padrinorb.com/guides/padrino-mailer I have the delivery method added on the app.rb file: class OscarAffiliate < Padrino::Application register Padrino::Rendering register Padrino::Mailer register…
0
votes
2 answers

padrino - adding html options to submit button on button_to

button_to 'Submit',url(:account, :login) generates form like this:
but I want to generate something like this:
killebytes
  • 940
  • 1
  • 10
  • 24
0
votes
2 answers

How do I automatically generate static HTML from HAML with Sinatra or Padrino?

I want to serve static HTML pages using nginx. Then, I will use jQuery to update DIVs, SPANs, etc via AJAX calls from a Padrino server. I like creating my web pages in HAML because it's easier but in production, I don't want to serve HAML…
cbmeeks
  • 11,248
  • 22
  • 85
  • 136
0
votes
1 answer

How can I clean up this Padrino AJAX call?

I'm writing an app that will be mostly UI calling a backend server via AJAX. Very little page loads. So for example, when I create a trip, my JS simply sends a JSON object to Padrino (via a POST) and Padrino saves the trip object (via ActiveRecord)…
cbmeeks
  • 11,248
  • 22
  • 85
  • 136
1 2 3
25
26