[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Shoes 'method_missing' error

Vince Vince

4/1/2009 9:18:00 AM

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/... and
http://help.shoooes.net/...

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 !
--
Posted via http://www.ruby-....

4 Answers

Vince Vince

4/1/2009 2:04:00 PM

0

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/bui... (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... ;)
--
Posted via http://www.ruby-....

7stud --

4/1/2009 2:04:00 PM

0

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/... and
> http://help.shoooes.net/...
>
> 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

--
Posted via http://www.ruby-....

Vince Vince

4/1/2009 3:00:00 PM

0

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 :)
--
Posted via http://www.ruby-....

_why

4/1/2009 3:57:00 PM

0

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