Forum: Ruby Shoes 'method_missing' error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3a827082ca19c8840a7766f00ffa0731?d=identicon&s=25 Vince Vince (onanga)
on 2009-04-01 11:18
Hello all !

I'm new to the ruby community and therefore to Shoes (which is really
nice easy to use).

I tried out a little making a form, and everything went nicely for
edit_line, list_box, edit_box, button, but I met trouble when trying to
build a radio button or a checkbox ...

Here's the sample code I used : http://help.shoooes.net/Check.html and
http://help.shoooes.net/Radio.html

This is my code :

 Shoes.app do
   radio; para "This is a radio button"
 end


And this triggers this error :

Undefined method 'radio' for (App)
* (eval):2 in 'method missing'
* (eval):2
* (eval):0:in 'instance_eval'
* (eval):0


I got the same error trying to use debug(), info(), error(),... (warn()
seems to work).
And pressing <alt>+</> doesn't open any debug window.

I tried googling for these troubleshoot, but couldn't find any response.
I start believing that the API is outdated.

Any one has any clue? Others met these troubles ?

Thanks in advance !
3a827082ca19c8840a7766f00ffa0731?d=identicon&s=25 Vince Vince (onanga)
on 2009-04-01 16:04
Me again !

I come to solve for whoever meet the same troubles...

I'm actually on linux Ubuntu and installed Shoes from the repository.
And you actually should NOT do it that way (version too old ?).

The way that worked for me was following that wiki :
http://wiki.github.com/why/shoes/buildingshoes (check bottom "Building
on Ubuntu").
I installed my git in /usr/local/src/shoes (mention it if you know a
better place)

Then just do

cd /usr/local/bin
ln -s /usr/local/src/dist/shoes shoes


And it now runs as expected !

Hope this will help... ;)
54404bcac0f45bf1c8e8b827cd9bb709?d=identicon&s=25 7stud -- (7stud)
on 2009-04-01 16:04
Vince Vince wrote:
> Hello all !
>
> I'm new to the ruby community and therefore to Shoes (which is really
> nice easy to use).
>
> I tried out a little making a form, and everything went nicely for
> edit_line, list_box, edit_box, button, but I met trouble when trying to
> build a radio button or a checkbox ...
>
> Here's the sample code I used : http://help.shoooes.net/Check.html and
> http://help.shoooes.net/Radio.html
>
> This is my code :
>
>  Shoes.app do
>    radio; para "This is a radio button"
>  end
>

And what happens when you use this code:

Shoes.app do
   para "Among these films, which do you prefer?\n"
   radio; para strong("The Taste of Tea"), " by Katsuhito Ishii\n"
   radio; para strong("Kin-Dza-Dza"), " by Georgi Danelia\n"
   radio; para strong("Children of Heaven"), " by Majid Majidi\n"
 end


And this code:

Shoes.app do
   para "Among these films, which do you prefer?\n"
   radio; para strong("The Taste of Tea"), " by Katsuhito Ishii\n"
   radio; para strong("Kin-Dza-Dza"), " by Georgi Danelia\n"
end


And this code:

Shoes.app do
   para "Among these films, which do you prefer?\n"
   radio; para strong("The Taste of Tea"), " by Katsuhito Ishii\n"
end
3a827082ca19c8840a7766f00ffa0731?d=identicon&s=25 Vince Vince (onanga)
on 2009-04-01 17:00
Hi 7stud !

Thanks for giving a hand.

Actually, any of this triggers the same 'method_missing' error.

That was actually SOLVED by downloading Shoes using git and installing
with rake.

Thanks a lot though :)
19fdf8bd123216b5056fb856cf1a5771?d=identicon&s=25 _why (Guest)
on 2009-04-01 17:58
(Received via mailing list)
On Wed, Apr 01, 2009 at 11:59:52PM +0900, Vince Vince wrote:
> That was actually SOLVED by downloading Shoes using git and installing
> with rake.

Say, how did you install Shoes originally? There is a Debian package
out there, but I believe it is incredibly ancient (like a year old.)
Back then there were no radio/check buttons, so that might explain
it.

I will get this worked out, but yeah, in the meantime you'll want to
compile from the source code. My profuse apologies!

_why
This topic is locked and can not be replied to.