Comments (5)
Hi @rajkumar18, thanks for the detailed report and the code to reproduce the problem!
So the root cause of your application failing is in the index
method. The para
and first link
line in that method both need a ,
at the end of them--the whole thing is one call to para
, with the links as parameter.
So index should look like this:
def index
para "Books I've read: ",
link("by Mark Twain", :click =>"/twain"),
link("by Kurt Vonnegut", :click => "/kv")
end
(I also noticed in testing that the line with url 'kv'...
should be url '/kv'...
or the link to work properly (note the slash inside the string).
The error message you got was not very helpful. I totally didn't understand why it was failing until I debugged for several minutes! I'll see if I can make that error message clearer for the future, but in the meantime adding those commas and fixing that forward slash should get your app running.
from shoes4.
@rajkumar18 Ah, that's a great question. That was actually a bug in Shoes itself that you tripped across. It was supposed to just log a warning, but a bug at that point threw an exception which fouled up the main UI loop.
Anyone making a similar syntax mistake from here forward should get a message instead of what you saw after #1570 gets released (hopefully soon!)
from shoes4.
Thank you for your reply. I will make changes asap. Also is the following code was taken from the book available on the official site. So is there any other resource I can follow?
from shoes4.
Is the link you followed from the official site (http://shoesrb.com) pointed to http://evc-cit.info/cit020/nks.pdf? Looking at page 31 in that doc I see this, which includes the commas as needed:
The official site is the best answer I have for resources, but I'm looking to give it a refresh soon and will see if there are other things out there that could be linked to.
from shoes4.
Thank you. I realize it was a syntax mistake.
One question is, why did shoes didn't warned or terminated the program while executing?
Instead it completely messed up the GUI.
from shoes4.
Related Issues (20)
- Included files aren't found by the app HOT 2
- Poignant Guide / Nobody Knows Shoes link problem HOT 3
- bootup time of a simple app HOT 1
- No gems found matching '' HOT 2
- Try out Travis Windows build environment?
- mac install error HOT 1
- package problem with music
- Need an Invite HOT 1
- Shoes overwrites the Windows environment variable HOT 3
- HiDPI Displays
- Image Clearing HOT 2
- nokogiri gem is unstable HOT 1
- Not able to drag windows? HOT 7
- No route to host on installing gem HOT 4
- Is this project dead? HOT 2
- Cannot install Ruby Shoes 4 HOT 14
- Comodos
- Roll Call - users / developers / "Is this thing on?" HOT 5
- Shoes joining forces with Glimmer? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shoes4.