Rubyももクロの人気上昇ぶりをグラフで可視化する - すぎゃーんメモという記事で作ったアプリをちょっと作り直した。Sinatra + pg + HamlというかんじでシンプルなSinatraアプリでpgから直接SQLを叩いて云々してhamlでレンダリング、というかたちだったものを、... 続きを読む
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Beginner’s Si... 続きを読む
Webサイト、Webサービス、WebアプリケーションをRubyで作成するためのDSL、それがSinatraです。本書は、基本的なRubyのプログラミングを理解したプログラマが、Sinatraを使い始めるために必要な知識をコンパクトにまとめた書籍です。ルーティング、ビュー、キャ... 続きを読む
Rails 4でSinatra::Streaming相当のストリーミング機構が入るとのことですが、そもそもRackやEventMachineに寄り添ったストリーミングは筋悪というか強引すぎると考えていて(Phusionの人の懸念に近い)、それなら最初から向いてるテクノロジーを使ったほうがいい... 続きを読む
WebSockets are a hot topic now a days with the HTML5 push, even though they are not officially part of HTML5 spec. If WebSockets are new to you, they are a way of being able to keep a connection open from the client’s browser to the server. ... 続きを読む
主にプランナー向けとして、プランナーがプログラム出来るようになると嬉しいよね、といった趣旨で勉強会をしました。 p4dにインスパイアされて、planer向けだし、p4pと名付けてみました。(すみません) その時の資料は以下 P4p20120408 View more presentations... 続きを読む
Building Backbone.js Apps With Ruby, Sinatra, MongoDB and Haml Introduction In this chapter we're going to explore writing Backbone.js applications with a Ruby back-end. To assist with this, we're going to use Sinatra - a DSL (domain specific... 続きを読む
06/06/2011 開発 JavaScript Tweet もう一つYokohama.rb 第9回でやっていたことをシェアします。 Backbone.jsの勉強をするため、Sinatra + Backbone.jsで簡単なサンプルを作っていました。 ・・・しかもCoffeeScriptで。 Backbone.jsとは? ここを読んでいる方... 続きを読む
Getting Started with iOS Development using Sinatra on Heroku / Cedar Last Updated: 08 February 2012 Table of Contents Prerequisites Local Workstation Setup Write Your Web API App Declare Gem Dependencies With Bundler Declare Process Types Wit... 続きを読む
We are pleased to announce the release of Scalatra 1.2.1. This maintenance release adds support for Scala 2.8.0 (final) and Maven deployments. There are no functional changes in this release. Downloads for Scala 2.8.0 (recommended) for Scala ... 続きを読む
Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files. 続きを読む
The Ruby world has been blessed with more than its fair share of frameworks for developing web applications over the years. Recently, though, two of them have emerged as the clear leaders in the field. Most readers of this site will have hear... 続きを読む
Fast, highly concurrent web applications with no callbacks! Sinatra::Synchrony is a small extension for Sinatra that dramatically improves the concurrency of your web application. Powered by EventMachine and EM-Synchrony, it increases the num... 続きを読む
先日公開された るびまの Sinatra/Padrino/Rack の記事 ですが、ぼくの想像以上の反響と好意的な評価をいただいているようで、大変うれしく思います。 “Rails Hub情報局” にも取り上げていただきました。 Railsはフルコース、Sinatraはお皿、Padrinoはビュッ... 続きを読む
この記事では、軽量ウェブアプリケーション DSL である Sinatra、Sinatra を拡張したフルスタックウェブ開発スイートである Padrino、そして Rails 登場以降の Ruby でのウェブ開発についての著者の持論、などを語って行きます。チュートリアル的な内容は今回は... 続きを読む
Sinatraはとてもシンプルなフレームワークです. 例えばHello Worldならば次のコードだけでできあがりです. require 'sinatra' get '/' do "Hello, world!" end 魔法のようにかんたんですね! しかし「どうしてこれで動くのか」を知っている人は比較的少ないの... 続きを読む
rubyどうも気持ち悪いのでメモ。sinatraをrails相当に高機能化するpadrinoというものがあります。運用実績とか考えるとおんなじ機能だといまはまだrailsで行くべきと思いました。サンプルソース見る限りrinariがある分railsかなと。ただしsinatraなのでrailsに... 続きを読む
スィナトゥラとパデュリ~ノの最新バージョンがめでたく リリースされました。 1.3.0 は大変難産だったようなので、おめでとうございます。 ブログ、CHANGELOG等を見て、まずはざっくり Sinatra 1.3.0 を紹介させていただきます。で、こっそりとリリースされ続... 続きを読む
Welcome to Track 2 of Singing with Sinatra. In part one, we reviewed Routes, how to work with URI parameters, working with forms, and how Sinatra differentiates routes by the HTTP method they were requested by. Today, we’re going to extend o... 続きを読む