Category Archives: Set-Up

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

Also posted in Advanced, Basics, Medium | 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 [...]

Also posted in Basics, Sample Code | 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” [...]

Also posted in Basics | Tagged , | Comments closed

Several Command-Line Options

Image Source: www.anylinuxwork.com Here are some few command line options in which can guide you in programming your Ruby on Rails: -0[octal} The number “0” flag specifies the record separator character (\0, if no digit follows). -00 indicates paragraph mode: records are separated by two successive default record separator characters. -0777 reads the entire file [...]

Also posted in Advanced, Basics, Information, Medium, Programming, Sample Code | Comments closed

Before You Start

Assuming you have even just a little background in programming with any language there are four basic programs and extensions that you need but are provided by the quick installers you’ve just downloaded to your hard drive. You have The Ruby programming language program files, the Rails part of the programming extension/platform, MySql or your [...]

Also posted in Advanced, Basics, Medium | 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. [...]

Also posted in Basics | Tagged , | Comments closed