Ruby on rails can be downloaded from many sources over the internet like from http://api.rubyonrails.org/ where there are also instructions on how to quickly install and start programming. The first lessons would be the forever basic “Hello World” program which is very easy if you get set-up right. For a more automated installation you could [...]
Once you have successfully installed and tried that the install was a success through the Hello World program. You now begin building projects with the following syntax : “rails ProjectName”. You then start the WeBrick webserver with “cd ProjectName enter ./script/server”. The above procedures invoke the interpreter which may be required on some platforms as [...]
Before we jump into the programming itself, let us learn some of the so-called weak points that you might be able to consider and improve on ( or even share) with others out there to make the platform a better one.
First is speed, the information that I might have come upon may be a bit [...]
The sample code above shows the number of techniques that can be used to maximize the use of blocks for transactional control where the takeAndDosomething method is considered a class method and that it can be called independent or without influence of any single File Object. We used it to function in the same manner [...]
Older versions of Ruby and Ruby on rails have been wondering what would happen to them as newer and improved versions and flavors of the much loved yet less used open-source platform, and they got an answer form Engine Yard who has announced it will be taking over the responsibilities of maintaining the older release [...]
Old news as it may be, the already powerful language that is Ruby on Rails is set to get a very much needed boost with their partnership with Merb. Why all the interest in so a discreet language? Well Twitter is one example which is based on RoR and as we can see, has swept [...]
Also posted in General Info |
By Bart | August 18, 2008
Image source:www.flickr.com
Following the simple Rails programming gathering does more than just eradicate the need for configuration files. It also means that Rails can routinely handle myriad lower-level details without you having to tell it to do so. This means that you write fewer lines of code to implement your application. Keeping your code small means [...]
Blocks or chunks of code that can be used for transactional control which in our example would have it open a file, process it then make sure that same file is closed after processing before exiting the code. There is an automatic function that ensures this and we will discuss it further in the following [...]
Anytime the “yield” statement is called upon it calls on the chunk of code within the block executing it returning control to where the yield statement was called continuing on its way till the process is finished. That’s where the magic of Ruby is, that a block can be made to function like a method [...]
The rails part is the framework/platform where Ruby, the base programming language was standardized on in hopes of making it more standardized. Ruby has the following features and additions which makes it a favorable development tool to add to already existing applications. First, it uses familiar syntax so you do not get too confused, next [...]