webuilder rhtml not previewing

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
cybervigilante
Posts: 1
Joined: Sun Sep 15, 2013 12:55 am

webuilder rhtml not previewing

Post by cybervigilante »

Trying weBuilder 2014 v 12

I'm trying the New From Template ruby rhtml file. I have the Ruby interpreter path set up in weBuilder and only just started with Ruby. I noticed weBuilder had a setting for it so I'm trying that since I want to learn Ruby. A normal ruby program works, but rhtml doesn't when I try to use New From Template > Ruby > "Hello World". I run that and see a blank web page with a blank source.

I'm running Ruby 2 on win 7, and supposedly erb, which interprets the <% stuff below, is already installed. I even tried require "erb" below the doctype, but all I get is a blank page when I use Tools > Preview. (My php wampserver is also set up and running a WAMP stack, but I'm not sure how weBuilder uses the port setting.)

What am I missing here? I'd like to get this going since my main interest in weBuilder was that it looked like it could do Ruby. I'm a rubynewbie with about zero knowledge, so I'm probably missing something obvious. Not to mention some parts of Ruby seem Windows unfriendly. Getting Rails installed right was a bear. Stuff just wasn't there that was supposed to be and I had to hunt it up.

Failed program below. As I said I also tried require "erb" although I'm barely sure what I'm doing since I just started in on Ruby ;')

<!DOCTYPE HTML>
<html>
<head>
<title>Hello!</title>
</head>
<body>
<% print "Hello World!" %>
</body>
</html>

Result: totally blank page, including blank source view.

Jim
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: webuilder rhtml not previewing

Post by Aivars »

You need to use eruby instead of erb to preview the files in WeBuilder.
Blumentals Software Programmer
Post Reply