Category: ruby

Running a Rails 3 Application in a Sub-URI Enviroment

Sometimes you need to run your Rails (3) Application on a Sub-URI (e.g. examle.com/prod, example.com/dev). In my current Project there was a Problem with that Configuration and the Rails url-helpers (link_for, url_for, usw.) becourse the app wasn’t aware of the necessary prefix (in our example “/dev”, “/prod”). There is always the possibility to set the

for all mac ruby devloper outs…

for all mac ruby devloper outside: http://www.macruby.org any opinions about it so far?

instant jruby & derby environment für eine RoR Anwendung

Als angestammter Java-Entwickler geht es mir oftmals schwer von der Hand, einer Ruby on Rails (RoR) Anwendung mit relativ wenig Aufwand eine brauchbare Laufzeitumgebung zu bieten. Normalerweise sollte das OS (MacOS 10.5.6) alles Brauchbare bieten. So ist oftmals eine Rails-Version installiert und auch das (standardmäßig genutzte) SQlite 3 ist vorhanden. Dennoch sind es oftmals Plugins

my very first (ehm… useful ?!?!) ruby script.

So concerning my first try of a web based zfs managment interface i will restart the project with some new conditions: 1. i will switch from the former language PHP to the – like everywhere told – dev-friendly language ruby. 2. i will first concentrate on just the basic functions. 3. i have to use

very first test with ruby camping :-)

I tried The Camping Short, Short Example for the ruby camping framework. #!ruby #!/usr/local/bin/ruby -rubygems require ‘camping’ Camping.goes :HomePage module HomePage::Controllers # The root slash shows the `index’ view. class Index < R ‘/’ def get render :index end end # Any other page name gets sent to the view # of the same name.

Installing ruby camping

Just a short one: After succeeding in installing ruby gems, i finally was able to install the ruby micro-framework camping. So ruby should just be used as a small administration web interface. In my eyes a rails aproach seems to be like breaking a fly on the wheel. Just easy as this:   root@sunny:~# gem

Install Gems (Ruby with zlib) on Nexenta (GnuSolaris) 1.01

Next in the row is the installation of the ruby gems package. So it should be easy… just following the instructions. So….. root@sunny:~# wget http://rubyforge.org/frs/download.php/38647/rubygems-1.2.0.zip root@sunny:~# unzip rubygems-1.2.0.zip root@sunny:~# cd rubygems-1.2.0 root@sunny:~# ruby setup.rb config ./lib/rubygems/spec_fetcher.rb:1:in `require’: no such file to load — zlib (LoadError) from ./lib/rubygems/spec_fetcher.rb:1 from ./lib/rubygems/source_index.rb:10:in `require’ from ./lib/rubygems/source_index.rb:10 from ./lib/rubygems.rb:767:in `require’

Install Ruby on Nexenta (GnuSolaris) 1.01

If you want to build your own small ruby script for administrating you Nexenta-Box, you normally just have to do a: root@sunny:~# apt-get install ruby Unfortunetally this Package seems to be broken: root@sunny:~# ruby -v ld.so.1: ruby1.8: fatal: libruby1.8.so.1: open failed: No such file or directory The needed lib libruby1.8.so.1 is not on its desired