Is your website which was working without a flaw suddenly shows a 404 File not found for all the pages. If this is the case then double check your error logs in your server. If you
Read tutorial ↗This ?: construct is called either the question mark operator or, more question mark operator often, the ternary operator. ("Ternary" because it uses three expres- ternary operator
Read tutorial ↗The word "unless" is in the English language for a reason. Contrast "unless the judge is unfair, you'll win" with "if the judge is not unfair, you'll win." Negations - especially n
Read tutorial ↗Here is Ruby's if statement in all its glory, wrapped in a method:
Read tutorial ↗Ruby methods let you create new verbs (messages) in the Ruby lan- methods guage. It's a bit confusing that two closely related ideas—messages and methods—have such similar name
Read tutorial ↗Command-line arguments are available as strings in the array named ARGV. For example, consider this command line:
Read tutorial ↗A Ruby name may contain letters, numbers, and the underscore character (not a hyphen). Names can't begin with a number, nor may they include spaces. Case matters: my_ship is not th
Read tutorial ↗There are two kinds of prompts command-line prompts and irb prompts. If you type a command meant for the command-line interpreter to irb (or vice versa), you'll get confusing resul
Read tutorial ↗There is a one-click Ruby installer. You can find it here: http://www.ruby-lang.org/en/downloads/. After you download it, double-click it in Windows Explorer to run it, and then fo
Read tutorial ↗This is an excellent question. Let's step back a second and think about a typical mid to large size application. If we start from the back end and work toward the view we have:
Read tutorial ↗Chaining actions can be done by simply using the proper mapping in your forward entries in the struts-config.xml file. Assume you had the following two classes:
Read tutorial ↗First off, there's an even newer Validator rule called validwhen, which is almost certainly what you want to use, since it is much easier and more powerful. It will be available in
Read tutorial ↗