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
0
votes
1 answer

Sequel join: ".id" is returning the id of the the other table

I have a Ruby app which uses Ramaze and Sequel. I have the classes Tag and Tagging which have this relationship: class Tag < Sequel::Model one_to_many :taggings, :class => 'Thoth::Tagging' class Tagging < Sequel::Model(:taggings) many_to_one…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
0
votes
1 answer

disable an image based on what page are you on

I have a strange issue which I would like to implement. I've been thinking for some time but I cannot come up with a solution. So lets say i visited www.rene.com/promotions/hitman .On the RHS of this page I have a side bad showing other promotion…
Rene Zammit
  • 1,121
  • 5
  • 19
  • 42
0
votes
1 answer

How can I display a BLOB stored image using Ruby and Sequel

I am not using Rails, so the send_data function will not work, unfortunately. image = User.select("image, image_mime").where("username = '#{params[:name]}'").first send_data( image.image, :type => image.image_mime, …
desbest
  • 4,746
  • 11
  • 51
  • 84
0
votes
1 answer

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…
0
votes
1 answer

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!
Phil Kulak
  • 6,960
  • 8
  • 45
  • 50
0
votes
1 answer

ramaze locks uploaded files?

Has anyone else encountered a file locking issue with Ramaze on Windows? All my uploaded files are being locked (I'm using the upload helper btw). I'm using - Ruby 1.93 - Ramaze-2012.04.14 - Rack-1.4.1 Thanks!
Sunder
  • 1,445
  • 2
  • 12
  • 22
0
votes
1 answer

does a sequel models generator exists?

I'm looking for a ruby class that could generate the sequel model file for Ramaze after reading the definition of the table in a mySQL database. For example, I would like to type : ruby mySuperGenerator.rb "mytable" And the result shold be the…
Pierre-Gilles Levallois
  • 4,161
  • 4
  • 28
  • 37
1 2 3
4