Monthly Archives: January 2008

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 :cw [...]

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

Ruby on Rails: Basic

by: Djai Tanji
Ruby on Rails (Rails or RoR) is written in the Ruby programming language which is a dynamic, reflective, general purpose object-oriented programming language that merge syntax influenced by Perl with features like Smalltalk. It is designed to make web development faster, simpler and more efficient. It supports multiple programming paradigms like object oriented, [...]

Posted in Information | 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

Next Step � Creating Empty Applications

Now that all has been set-up and is working, you should be able to create empty apps which is merely defining the application using rails which automatically creates all the necessary directories that are needed. Open a command prompt window and go to the directory where it was installed and proceed into the rails_apps directory. [...]

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

Bad Behavior has blocked 34 access attempts in the last 7 days.