ramaze

How to install and run Ramazes Rapaste easiest?

I'm pretty familiar with Ruby and Ramaze, but I wanted to provide my Admins with an install howto, since they're more familiar with Tomcat and standard Apache installations. I tried it locally first and it got pretty long: sudo aptitude install ruby1.8 ruby1.8-dev rubygems1.8 sqlite3 wget http://www.geocities.jp/kosako3/oniguruma/arch...

What "Pastie" alternatives are there? (installable)

I want to install a "pastie" in our local intranet. What are the alternatives to RaPaste and pastie.org? (the latter can't even be installed locally b/c it doesn't seem to be open source?) Edit: Doesn't have to be Ruby btw. Edit: What I mean with pastie is an app where you can share source code pastes instead of pasting it in an irc ch...

What code highlighting libs are there for Ruby?

What'd also interest me is which have more or less dependencies. ...

Complex or Deep Object Storage in Ramaze Session is Broken?

(this is regarding the Ramaze.net framework) I ran into some really strange problems while storing custom Objects in session. I noticed that only the attributes on the objects immediately stored in session were being updated. However, if those objects contained references to other objects, those referenced objects were not updated if th...

ActionMailer and Ramaze

Is it possible to use ActionMailer in a web framework like Ramaze, or do I need to use Rails? ...

Why does Ruby's Win32Console not work for me with Ramaze?

I have installed Ramaze (on Windows XP) and it suggested I also install win32console to get coloured log output when it is running. However, after doing so I get escape codes rather than colours as shown below: W [2009-04-29 09:02:55 $5064] WARN | : ←[33mNo explicit root folder found, assuming it is C:/Projects/Ruby/Ramaze/Conferences...

What are the main differences between Sinatra and Ramaze?

I'm looking for a lightweight Ruby web framework and have come across Sinatra and Ramaze. Both seem extemely light, concise and simple. But I don't know enough about either to say what the main distinctions are. Perhaps someone with experience with one or both of these could comment? ...

Are there any potential disadvantages in using a Ruby framework other than Rails?

I would like to use a lighter framework than Rails (Sinatra/Ramaze/Camping) but am concerned that by doing so I will not be able to use a lot of shared libraries that have been tailored to Rails in the form of plugins. Is this a major concern or are most of these plugins usable across different Ruby frameworks? Are there any other poten...

Links in Ramaze with a/r helpers

In ramaze (2009.06.04) the link helper has changed and I have some problems to use it. I want to create a link to the MainController -> test action #{a('Testlink', r(:test))} This works if the URL is not in a specific controller. If the user is in a other controller like http://site/othercontroller/testtwo, the Testlink are linked to ...

Ramaze with Sequel Migrations?

I'm trying to get migrations set up in Ramaze. I'm coming from doing mostly Rails stuff, but I wanted to give something else a shot. Anyway, I've got a directory in my project called "migrations" with a start.rb file and then my migrations. Here's start.rb: require File.expand_path('../app.rb', File.dirname(__FILE__)) require 'sequel/ex...

How do I get access to PUT data with the ramaze framework?

I'm attempting to use Ramaze, the ruby framework, to implement a RESTful controller. I can't seem to gain access to the data in the request when I send a PUT, however. Sample code: require 'ramaze' class PutController < Ramaze::Controller map '/' def index "Argument of "+request[:id] end end Ramaze.start And my interactin...

Thin Crashes Hard with Ramaze

So, I'm just trying out Ramaze for a new project, and I'm wondering why it won't work with Thin, but will with ramaze start (which is webrick I guess). Here's what it gives me: /opt/local/lib/ruby1.9/gems/1.9.1/gems/thin-1.2.2/lib/thin/request.rb:50: [BUG] unknown type 0x22 (0xc given) This is the line it's talking about: @parser = ...

Getting "invalid byte sequence in US-ASCII" when I try to upload a file in Ramaze and Ruby 1.9

I guess the default encodings have changed with 1.9, but I thought Ramaze was supposed to be fully 1.9 compatible? I'm really not sure what going on here. Thanks for any help! ...

text search to distinguish rails projects from other types of ruby web applications - merb/sinatra/ramaze

If I want to perform a search on a directory that contains thousands of different ruby web applications and I want to find only those directories that contain rails projects, what text would I need to look for within each directory to uniquely distinguish the rails projects from the other project types? At the moment, I have decided to ...

Ramaze Routing Broken Behind a Proxy

I need to test my application with outside services, so (like I usually do in this situation) I've set up an Apache proxy to forward requests on a custom domain to my laptop inside the network (laptop.mydomain.com:80 => 192.168.1.3:3000). This always worked fine with Rails, but it seems to break Ramaze for some reason. Any request coming...

Ramaze's Haml engine returns same template every time

I've run into a problem with my very simple Ramaze project. My project is identical to the prototype project that is generated from 'ramaze create mywebsite', except that I'm using Haml templates (I set 'engine :Haml' in controller/init.rb). Here are the steps to reproduce the problem: Start the development server. I'm using Thin. V...

Can't find out where my Ruby 1.9 string encoding is getting messed up.

Somewhere along the line from the DB to the application, this: sauté is getting turned into this: sauté I'm using Ramaze + Rack + MySQL. I've got a force_encoding plugin set up, so the encoding on the string is UTF-8. If I view the record in the database shell, it's looks fine. The default charset on the table is utf8, and the fie...

How to quickly learn Python and Ruby frameworks coming from a PHP background.

I've been using CakaPHP and Kohanaphp but now I want to try out other frameworks from a more sophisticated OOP language for my next projects. How can I learn the following frameworks quickly so I can immediately pick what to use: Pylons Sinatra Ramaze Tutorials and examples from online resources would really be great. For php deve...

Anyone knows a good tutorial for using Mongodb or MongoMapper with Ramaze?

Anyone knows a good tutorial for using Mongodb or MongoMapper with Ramaze? Thanks ...

Ruby 1.9 Ramaze App Failing with "Illegal instruction"

I've got an app that I'm trying to get working again after wiping my system and installing Snow Leopard. I installed Ruby 1.9 from Macports (now a later version) and the dev server starts up just fine, but then dies on the first request, only telling me "Illegal instruction". I have no idea what's causing this or even how to go about deb...