Shoes 'method_missing' error

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 : shoooes.net - This website is for sale! - shoooes Resources and Information. and
shoooes.net - This website is for sale! - shoooes Resources and Information.

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 +</> 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 !

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… :wink:

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 : shoooes.net 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

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 :slight_smile:

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