Questions tagged [ramaze]

Ramaze is a simple, light and modular open-source web application framework written in Ruby.

Ramaze is a web application framework created by Michael Fellinger (also known as manveru) for Ruby. The philosophy of it could be expressed in a mix of KISS and POLS, trying to make simple things simple and complex things possible. This of course is nothing new to anyone who knows some Ruby, but is often forgotten in a chase for new functionality and features. Ramaze only tries to give you the ultimate tools, but you have to use them yourself to achieve perfect custom-tailored results.

Another one of the goals during development of Ramaze was to make every part as modular and therefore reusable as possible, not only to provide a basic understanding after the first glance, but also to make it as simple as possible to reuse parts of the code.

The original purpose of Ramaze was to act as a kind of framework to build web-frameworks, this was made obsolete by the introduction of rack, which provides this feature at a better level without trying to enforce any structural layout of the resulting framework.

Basic Example

require 'ramaze'

class MainController < Ramaze::Controller
  def index
    "Hello, Ramaze!"
  end
end

Ramaze.start

Installation

Installing Ramaze is super easy when using Rubygems:

$ gem install ramaze

Once the gem is installed you can create a new application using the "ramaze" binary:

$ ramaze create myapp

Links

52 questions
20
votes
3 answers

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…
Yen
  • 2,176
  • 3
  • 19
  • 27
7
votes
3 answers

I receive "incompatible character encodings: CP850 and UTF-8" when displaying the £ symbol on my ramaze app

I receive "incompatible character encodings: CP850 and UTF-8" when displaying the £ symbol on my ramaze app. How can I get rid of this error? I have the UTF-8 meta tag in my head tag. It happens when I type the £ symbol with the keyboard. Look. I…
desbest
  • 4,746
  • 11
  • 51
  • 84
6
votes
6 answers

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…
Yen
  • 2,176
  • 3
  • 19
  • 27
5
votes
1 answer

ActionMailer and Ramaze

Is it possible to use ActionMailer in a web framework like Ramaze, or do I need to use Rails?
Genericrich
  • 4,611
  • 5
  • 36
  • 55
5
votes
3 answers

What code highlighting libs are there for Ruby?

What'd also interest me is which have more or less dependencies.
Fabian Buch
  • 831
  • 2
  • 9
  • 18
4
votes
1 answer

How can I store an image in a database using Ruby and Sequel?

I am using Ruby, or more specifically the Ramaze framework with the Sequel ORM. So please don't tell me about the Paperclip gem, as it is only compatible with ActiveRecord. With that in mind, how can I store an image in a database using Ruby and…
desbest
  • 4,746
  • 11
  • 51
  • 84
4
votes
2 answers

Ramaze + CoffeeScript : Is it possible to generate Javascript automatically with Ramaze?

I am trying to find a way to generate Javascript automatically from a CoffeeScript file as you would easily do in Sinatra like this: require 'sinatra' require 'coffee-script' get '/*.js' do name = params[:splat][0] file_name =…
Andreas
  • 119
  • 1
  • 6
3
votes
6 answers

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 |…
Martin Smith
  • 213
  • 3
  • 10
3
votes
2 answers

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…
Phil Kulak
  • 6,960
  • 8
  • 45
  • 50
3
votes
3 answers

Rendering a partial in the parent directory in Ramaze

How do I render a partial that's in a different directory (in my case, the parent) than the current view? <%=render_partial :sidebar%> #looks in the current dir and works as expected <%=render_partial "/view/sidebar"%> #doesn't work! Thanks!
Sunder
  • 1,445
  • 2
  • 12
  • 22
2
votes
0 answers

puma server is not starting in SSL mode

I am starting puma server like below puma -b ssl://sstp.localhost.domain.com:7000?key=/private/etc/apache2/ssl/sstp.localhost.domain.com.key&cert=/private/etc/apache2/ssl/sstp.localhost.domain.com.crt but it is serving content only in http mode.…
rafsky
  • 41
  • 4
2
votes
1 answer

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…
Clint Pachl
  • 10,848
  • 6
  • 41
  • 42
2
votes
3 answers

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…
unpangloss
  • 409
  • 9
  • 18
2
votes
2 answers

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…
Fabian Buch
  • 831
  • 2
  • 9
  • 18
2
votes
4 answers

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…
alexebird
  • 63
  • 1
  • 4
1
2 3 4