# 2nd Release of Visual Ruby

**URL:** <https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474>\
**Category:** Ruby-Gnome 2\
**Created:** [April 2, 2012, 4:32am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474 "2012-04-02T04:32:08Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [October 26, 2012, 9:00pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/21 "2012-10-26T21:00:44Z")

</div>

I’m trying to install vr on Ubuntu 11.04, and after running: {{ sudo gem  
install visualruby }} I get the following error:

ERROR: While executing gem … (Errno::ENOENT)  
No such file or directory -  
/var/lib/gems/1.9.1/gems/visualruby-0.1.0/[“.”]/vr

thanks  
[http://www.packersmoversdirectory.net/](http://www.packersmoversdirectory.net/)

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [November 11, 2012, 7:29am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/22 "2012-11-11T07:29:25Z")

</div>

Thank you!! I worked very hard on this project, and I’m really happy  
that you are using it. Let me know if you need help or features.

I’ve been really busy, so I can only do tiny fixes right now, but I’m  
planning to fix the main problem with the program:

I know that when the program starts, it must scan the entire “home”  
directory looking for visualruby projects. This can be slow especially  
on windows machines. I will need to add something to focus the search  
into a smaller area.

I will post any updates here.

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [November 22, 2012, 11:36pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/23 "2012-11-22T23:36:23Z")

</div>

Eric C. wrote in post #1054542:

> Hi y’all:
> 
> I’ve just added support for active\_record to visualruby, so you can add  
> active\_record objects to listviews and treeviews. I’ve also updated the  
> documentation today.
> 
> So, its time for the second release!
> 
> go to:
> 
> [http://visualruby.net](http://visualruby.net) (click on download)
> 
> If any of you have time, please try to install it, and let me know how  
> it goes. I’m getting a fair number of downloads, but I suspect that  
> people are encountering install issues. I’d really like to know what’s  
> going on.
> 
> Thanks for all of your great work.
> 
> Yours,  
> Eric

Hi Eric,

I have found the website [visualruby.net](http://visualruby.net) yesterday and installed it  
immediatly on an Ubuntu 12.10 system. I am new to GTK / Linux GUI  
development ( coming from Windows ) and my first impression is: AWSOME  
!!

I will start to try rebuilding parts of my app in visualruby and come  
back to you and the forum as soon as I hit some problems 😉

Best regards

Klaus

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [December 18, 2012, 9:37pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/24 "2012-12-18T21:37:06Z")

</div>

Just installed VR on a fresh Ubuntu 12.04.1 VM

If I type “vr” at the command line, from any directory, I am given a  
list of example projects in a window. I can select and open any. So  
far so good. And it looks great 🙂 , a great tool to use – and then I  
get stuck ☹

On that window, unless an example is eelected, the “Open” button has no  
effect.

Trying to invoke "vr " does no good. If is that of a directory that exists, I get the same result as with  
no parameter. If the name given doesn’t match a directory, I get a No  
such file or directory message (traceback: open / entries / initialize /  
new “\<top (required)\>” / load / main /eval / main).

If I open one of the examples:

- Pressing “Open Project” results in the same “Select Visual Ruby  
Project Root” window opening;
- The File menu shows “New skeliton Window script”, “New skeliton Child  
Window script”, “New Blank Document”, “Save All”, “Save As…” and  
“Close All” (and Quit). The Tools menu speaks about creating a Gemspec  
file, an account, a launcher … But nowhere is there an indication of  
how to create just a project.

I know I am missing sumpthin’ but what, exactly ?

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [December 24, 2012, 7:18am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/25 "2012-12-24T07:18:03Z")

</div>

Hi:

I know that this isn’t obvious, but the way to create a project is to  
click “Open Project” then “Select Folder.” Really a project is just a  
root folder. If you want a new, blank project, select “Create Folder”  
and just create a new folder.

This is shown in the videos on the website:

> **[hi合乐888在线登录 - hi合乐手机网页版](http://www.visualruby.net/)**
>
> ♠欢迎点击hi合乐888在线登录,hi合乐手机网页版早就成为了世界性的强大娱乐平台,hi合乐888在线登录提供最新、最好玩、最全的单机游戏中文版下载、资讯、攻略、补丁,致力成为行业风向标。

I think its in the “Quick Start” tutorial.

Let me know how it goes,  
Eric C

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [November 23, 2012, 8:31am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/26 "2012-11-23T08:31:02Z")

</div>

Hi Klaus:

Thanks for your kind words. If you have any problems, or questions, let  
me know. I’ll try my best to contribute to your project.

What is your app? Is it programmed in Ruby now? What are your goals?

I started in windows too. Visual Ruby is very similar to Visual Basic.

Best wishes,  
Eric C

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [December 24, 2012, 11:13am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/27 "2012-12-24T11:13:22Z")

</div>

Eric - any news yet on how you plan to license this? I asked a while  
back but you hadn’t decided.

Thanks,

Kevin

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [December 26, 2012, 7:50am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/28 "2012-12-26T07:50:04Z")

</div>

I’d like to figure-out a way to make money from my work, but its looking  
difficult. Right now I’m reserving the right to charge, but don’t worry  
about using it for any free/personal stuff. If you want to use it for  
commercial purposes, I’m asking for very little money to use it. Either  
way, there’s nothing stopping anyone from using it.

As it changes into a community project, it may become totally free.  
Honestly, I don’t know what to do about this issue now.

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [January 9, 2013, 8:29pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/29 "2013-01-09T20:29:19Z")

</div>

Hi, first of all, thank you for having made this project, it seems  
promising =)

I would like to get some info, as I’m not very experienced with gui  
programming. I first learned how to use Shoes, and even experienced  
seeing limitations (lack of making table, menus, and quite ugly in  
appearance) out of it.

Some questions:

1. What relation got VisualRuby with Ruby-GNOME2? Can we use his  
libraries?
2. Does VisualRuby is compatible with the last stable version of Glade?  
Because it is said that Ruby isn’t supported here:  
[http://www.gtk.org/language-bindings.php](http://www.gtk.org/language-bindings.php)
3. Is there any VisualRuby good software in order to peek inside, to  
discover VisualRuby mechanisms?

Thanks you, depending on my second question’s answer, I may learn how to  
use it for my personnals projects =) !

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [January 10, 2013, 10:53am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/30 "2013-01-10T10:53:17Z")

</div>

Eric C. wrote in post #1090223:

> I’d like to figure-out a way to make money from my work, but its looking  
> difficult. Right now I’m reserving the right to charge, but don’t worry  
> about using it for any free/personal stuff. If you want to use it for  
> commercial purposes, I’m asking for very little money to use it. Either  
> way, there’s nothing stopping anyone from using it.
> 
> As it changes into a community project, it may become totally free.  
> Honestly, I don’t know what to do about this issue now.

Could I make a suggestion then please? Have a look at RubyMotion on  
mac/ios ([http://www.rubymotion.com/](http://www.rubymotion.com/)) as I think that is your closest  
business idea.

They do not have a system for lone developers or people just learning. I  
realise it’s iOS but if you look at it just as an app platform, that is  
the kind of thing that could make you money. Who knows, you might even  
get interested in doing the Android equivalent.

I would say price it as soon as it’s ready and have a go at selling it,  
but allow it to be free for Open Source projects. That way it stands a  
good chance of getting some traction (the kind of traction you need for  
adoption).

Somebody like me, who is an very, very (i.e. unemployed) poor developer  
can work on his project then pay for the license when he is ready to go  
pro himself. So you get lots of people who would not normally use it  
interested from day one. You get people in the community using it, and  
when it hits a critical point you could be onto a really good thing.

I think it definitely has potential to free a lot of Ruby programmers  
and I also think it could make you a bit of money - but getting it in  
use is your first hurdle. That’s why I say free for open source - that  
gets you your user/tester base.

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 3, 2013, 1:32pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/31 "2013-03-03T13:32:02Z")

</div>

Hi,

am using active record in visual ruby, When i edit a field in a table  
its getting edited but its not getting saved in my database. I want to  
edit the data in the row inplace and want to save it as i type. Which  
signal should i use to achieve it.

For example, in the activerecord1 example, In choose person when i click  
any field it is getting opened in a separate form, in that form i have  
included i have placed a save button and included the below code.

def button1\_clicked  
get\_glade\_all()  
save  
end

this is working fine and the edited data is getting saved in the  
database after clicking the button.

But i dont want this i want to save the data as i type directly in the  
field. so i tried as below…

class ChoosePerson \< VR::ListView

include GladeGUI

def initialize()  
super(:name =\> String, :phone =\> String) # Person class  
col\_editable(true)  
end

def show()  
load\_glade( **FILE** ) #loads file, glade/MyClass.glade into @builder  
@builder[“window1”].resize 450, 220  
@builder[“scrolledwindow1”].add(self)  
Person.all.each do |p|  
row = add\_row() #add\_row(:person =\> p)  
row.load\_object§

```
end
show_window()

```

end

def button1\_clicked  
row = vr\_row(selection.selected)  
row[:name].save  
end

end

but i dono how to save it while am typing in the field. Please help me  
out of this.

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 4, 2013, 4:01am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/32 "2013-03-04T04:01:35Z")

</div>

Hi:

Perhaps you should make a new topic for this question. This thread is  
getting long.

You can try the button\_press\_event and button\_release\_event in the  
Gtk::Widget class:

def self\_\_button\_press\_event(\*args)  
button1\_\_clicked  
end

This will fire every time a key is pressed. You may also be able to  
limit the number of saves by checking to see if a cell in a certain  
column is being edited, and only save if it is. You may also be able to  
just capture the keypress of a single column or cell.

Hope this helps,  
Eric C

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 5, 2013, 4:05am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/33 "2013-03-05T04:05:11Z")

</div>

Hi Mattias:

Thanks. vr simply runs glade on the command line, just as you do. So  
perhaps if you run vr as an administrator, it will run glade as  
adminstrator too? Everything I use just runs as a normal user. I don’t  
know why you’d want to set-up your computer to run as administrator.

E

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 5, 2013, 12:05am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/34 "2013-03-05T00:05:50Z")

</div>

Hi,  
Great work on Visual Ruby. I am very new to Ruby but I thought Visual  
Ruby would be a good place to start. I have installed it on Windows 7  
and it worked fine except that I get the same error as described by Jim  
Flanagan (2012-04-25), e.i. an error when I try to edit a glade file. I  
don’t know if this was resolved but I found that I could run glade-3 as  
an Administrator from the command line but not as a normal user. I don’t  
think this was mentioned by Jim F. Is there a simple solution to this?  
Or is it possible that I have done something wrong during the  
installation that causes this effect?  
Best Regards,  
Mattias

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 5, 2013, 3:31pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/35 "2013-03-05T15:31:31Z")

</div>

Thank you for your response, Eric.  
This is the weirdest thing. VR does not even run when I try to run it as  
Administrator. When I installed Glade it did ask for administrator  
privileges. I assume this is why I don’t get access to Glade as a normal  
user. I think I will try to reinstall everything as Administrator and  
see what happens.  
Cheers,  
Mattias

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [May 17, 2013, 3:53pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/36 "2013-05-17T15:53:39Z")

</div>

Hi Eric,

first of all: thank you very much for “Visual Ruby”, great work!

As an absolute Ruby-beginner I’m very interested in learning how to  
create gui with Visual Ruby, but I cannot find enough examples to get  
behind the logic of it all.  
I tried to find out, how to write a simple key-press thing, but since I  
couln’t find any examples, I failed …  
Where can I find more examples, easy examples?

Greetings  
Thomas

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [March 5, 2013, 9:46pm UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/37 "2013-03-05T21:46:18Z")

</div>

It actually works now, when starting the program using Start Command  
Prompt with Ruby as Administrator. I just can’t figure out why I can’t  
run it as a normal user.

Eric: on your last comment, I have not set up my computer to run as  
administrator. I only found that I could start Glade as administrator  
but I do want to run the program as a normal user.

// Mattias

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [May 18, 2013, 9:05am UTC](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474/38 "2013-05-18T09:05:29Z")

</div>

Hello Thomas,

Visual Ruby has a small subset of extended custom controls, that aren’t  
part of the normal Gtk2/Ruby-Gnome2 Toolkit. But, since Visual Ruby  
builds  
on Gtk2/Ruby-Gnome2, you can look at the examples for Gtk2/Ruby-Gnome2,  
and  
they will work with Visual Ruby as well. There are more things being  
added  
to the Visual Ruby core, as well as a new version of the Visual Ruby IDE  
being developed by me right now, that you can check out at  
[http://bitbucket.org/visualruby/ide](http://bitbucket.org/visualruby/ide) and  
[http://bitbucket.org/visualruby/corelib](http://bitbucket.org/visualruby/corelib) these will eventually be  
released  
as gems, as I get closer to getting things stable.

Currently, I’m working on some issues with Threading on Windows, that  
prove  
to work in test cases that I run of them, but fails to work in the IDE  
itself when I run the same code. But I suggest checking out the code,  
as  
I’m always working on improving it.

hth,

Mario

On Fri, May 17, 2013 at 9:53 AM, Thomas Riefle \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> efficiently configure, manage, and operate all of your security controls  
> from a single console and one unified framework. Download a free trial.  
> [http://p.sf.net/sfu/alienvault\_d2d](http://p.sf.net/sfu/alienvault_d2d)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Mario S.  
Fleet Captain  
CO - Geo 99  
CO - USS T’hy’la  
XO - Diplomatic Corps - Second Life  
[http://www.iftcommand.com/chapters/thyla/](http://www.iftcommand.com/chapters/thyla/)

> **[HOME | The Federation](https://www.trekfederation.com)**

[Previous page](https://www.ruby-forum.com/t/2nd-release-of-visual-ruby/218474.md?page=1)
