Hi,
http://www.kuwata-lab.com/tenjin/rbtenjin-users-guide.html#intro
looks nice. Does someone know how to set it up with Apache?
(Both are already installed and work on my linux box here)
Hi,
http://www.kuwata-lab.com/tenjin/rbtenjin-users-guide.html#intro
looks nice. Does someone know how to set it up with Apache?
(Both are already installed and work on my linux box here)
Quoth Marc H.:
Hi,
http://www.kuwata-lab.com/tenjin/rbtenjin-users-guide.html#intro
looks nice. Does someone know how to set it up with Apache?
(Both are already installed and work on my linux box here)
Looks like a cross between erb (google it) and PHP (ugh). Have you seen
Markaby / RedCloth etc? There are many nicer and more ruby-esque tools
out
there.
This is how I did it, I am not an Apache guru so please correct me
anybody if this is a bad way to do it:
For Ubuntu 7.10 and assuming you already have mod_ruby and ruby gems
installed:
gem install tenjin
AddType text/html .rbx
RubyRequire apache/ruby-run
<Files *.rbx>
Options ExecCGI
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
engine = Tenjin::Engine.new()
Goto your browser and type in: YOURDOMAIN/main.rbx
Your browser should then display “Hello World”.
Marc H. wrote:
Hi,
http://www.kuwata-lab.com/tenjin/rbtenjin-users-guide.html#intro
looks nice. Does someone know how to set it up with Apache?
(Both are already installed and work on my linux box here)
Hi there,
Thanks for the help!
Marc H. wrote:
Hi there,
Thanks for the help!
I forgot to mention, you will need to have write permissions on the
directory where your template (e.g. file.rbhtml) is placed in. This is
because tenjin creates a .cache version of your .rbhtml in the same
directory, thus if you do not have write permissions, it will not work.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs