Author Archives: Ernest

Using thw [] for conditional processing

The process shown below is and example of using the [] to have the program execute a condition that searches the contents of an array till a match is found. It goes from the top to the bottom to check each and every member of the array to look for a match doing the requested [...]

Posted in Basics, Sample Code | Tagged , | Comments closed

Getting Started and how to open Programs : Part 2

Save the text file with the following filename “first1.rb” and we now go into the syntax checking function and the facility provided to show the syntax check verbosely. The following code shows how code is checked for syntax correctness and returns the result of the said checking by typing the following code : $ ruby [...]

Posted in Basics, Sample Code | Tagged , , | Comments closed

Getting Started and how to open Programs : Part 1

RubyonRails is similar to most programming languages where in one can use the command line in windows or a terminal in Unix based systems. All programs should be written and saves in plain text format for the compiler and interpreter to process it easily. The first program would give you a feel for the overall [...]

Posted in Basics, Sample Code | Tagged , , | Comments closed

Database manipulation

The database has been initialized, so now we get down to business of defining the fields in that database and include a field that we would call a foreign key which allows the establishment of the one to many relationship between the tables. This part of the process requires quite a bit of background of [...]

Posted in Advanced, Basics, Medium, Set-Up | Tagged , | Comments closed

Next step : Creating the database for the filename application

The next phase or step would be to create a database for the application to use. Make sure the MySql engine is running and in the command window type “mysql -u root -p” and press enter and another enter for the password when prompted for there has not been any defined password yet. You are [...]

Posted in Basics, Sample Code, Set-Up | Tagged , , , | Comments closed

RoR Application Directories in-depth

There are quite a number of directories locate in the apps folder we have just created so to de-mystify them here are some explanations which hopefully would help you out. The directory “app/controllers” is where Rails searches for the controller classes which controls the web request from the user. The next one is the, “app/views” [...]

Posted in Basics, Set-Up | Tagged , | Comments closed

Ruby On Rails Flexibility

As far as programming is concerned, compatibility and ease of use of the logic is what any programmer would certainly dream off. With the fast paced technology we live on today, more programming languages have made interface for people to understand how to get new means of programming logic to go by. Rails works with [...]

Posted in Basics, Programming | Comments closed

Ruby Shortcuts Program Scripts Logically

As far as scripting is concerned, it would be less of a headache if programming scripts were used in the lesser means of coding. Too much scripts and line breaks in the usual scripting techniques of programming today makes it more complicated and harder to trace the root of the actual problem at hand. What [...]

Posted in Basics, Programming | Comments closed

Using the IF Statement

If you are a programmer then most probably you know that when the IF statement is used, it stands for options as far as the program flow is concerned. It is not different in Ruby on Rails and other programming languages since normally, the need to provide users of the program with the variable options [...]

Posted in Programming, Sample Code | Comments closed

Benefits of Using Ruby On Rails

For most business owners, it has been advised the Ruby on Rails is the best way to go especially if you don’t want too much technical terminology with reference to the programming included in the whole package. Known to be an extension of the Ruby programming language, it is a very powerful and enriching programming [...]

Posted in Basics, Programming | Comments closed