You cannot post messages because only members can post, and you are not currently a member.
|
Sinatrarb connection failed when running from Android emulator
|
| |
I am trying to point to: *h**ttp://localhost:4567 *but receive error message: AsyncTask #2 Service client error with message I/O error: Connection to [link] refused; nested exception is org.apache.http.conn.HttpHostC onnectException: Connection to [link] refused Not sure why. It works when connecting from xcode. All I had to do was... more »
|
|
Where to put configuration
|
| |
I'm putting together a little MVC framework with Sinatra and am puzzling over where to put the database configuration for the models. At the moment I have this line in config.ru SomeController.configure :development do DataMapper.setup(:default, "sqlite3://#{Dir.pwd}/developm ent.db") end SomeController.configure :production do... more »
|
|
sintatra 1.4.x and fishwife problem
|
| |
I have a simple bit of code that serves up index.html in our application. require 'sinatra' class StaticContentController < Sinatra::Base get '/' do send_file '/Users/jilles/git/localstream /www/localstream-web/foo.html' end end This worked fine up to 1.3.6. After upgrading to 1.4.2, it mangles the... more »
|
|
Module application server with Sinatra
|
| |
Hi ML readers, I would like to build a very simple application server using Sinatra. To do so, the idea is to use the Rack config file to "register" applications. Example: use MyApp1 use MyApp2 ... run Middleware However I am facing a weird problem: how can I retrieve the list of application from the top-level middleware (i.e. Middleware class/instance).... more »
|
|
Multilingual website in Sinatra - Setting default language
|
| |
I wonder how I can make a multilingual website with Sinatra + Sinatra-r18n that has the following features. 1. Default language other than English. -- (For some reason I failed to do this with any of the following options R18n :: I18n.default = 'es'; R18n.set ('es',' ./i18n / '), or R18n.default_places ='. / i18n / '.some examples that I found on the web.... more »
|
|
Storing and deleting temporary uploads
|
| |
Hello list,
let's say I'm building a service where a user uploads some files to a server. The server processes the files and presents the results in the view. So the app doesn't persist the uploaded files between users or sessions, it just crunches them.
So, the questions:
1) How do I keep file uploads separate so that if two users upload at the... more »
|
|
thin without multithreading?
|
| |
How do I start thin without multithreading?
Currently I use the "ruby my_sinatra.rb -p 4571" perhaps with some nohup
around it.
BTW, Thin was awesome because it was built on EventMachine, which is an
alternative to threading. Why was threading added into thin? Seems
anathema.
m
|
|
|