Here I am starting out with a view template, new.html.erb. This is ‘Rails format’ code - a mixture of HTML and embedded Ruby...
I click a button at the bottom of the Visual Rails Workbench to switch to the page designer. Notice that the view template (the Post entry form) for this specific web page has automatically been combined with the associated layout template (containing the logo and the blog name) which defines a consistent look for all the pages on the web site...
Now I just click and drag the controls on the page in order to move or resize them. I can also edit the text ‘in place’ and make adjustments to colours and other properties...
I notice that I have forgotten to add a DateTimePicker. No problem, the Visual Rails Workbench has a number of ready-to-use components in the Toolbox. I select the DateTimePicker....
...and drop it onto the form. This automatically adds a set of combo boxes populated with values to allow the user to select years, months, days and times.
I can verify that the HTML contains all the data I expect for the DateTimePicker by switching to ‘split’ editing mode so that I can view the visual design and the HTML code simultaneously.
Although all this has been done in the HTML designer, I can instantly switch back to the ERb (‘Rails format’) editor and here I can see that the DateTimePicker has been translated into embedded Ruby.
When I want to continue with the visual design I can switch right back to the HTML designer and carry on. My changes will be automatically translated back into Rails (ERb) format later on...
This has been a very simple demo of some of the capabilities of the Visual Rails Workbench. The Workbench will also give you the ability to export your page designs (in HTML) format to other applications such as Dreamweaver and subsequently import them and translate them back to ERb (see: Visual Rails Workbench - The Import/Export Business. The Visual Rails Workbench will form a part of the next version (1.2) of Ruby In Steel Developer - a free upgrade to registered users.