iSnare.com - Free Content Articles Directory
Authors Contents [Advanced Search][Add OpenSearch][Job Search]
Distribute your articles to thousands of article sites for only $2 and below! Read more...

Index  Computers and Technology
 

Know the Basics in ROR

 
[ Contact the Author] [ Send to a Friend] [ Article Publisher] [Make PDF] [ Print] [ Bookmark & Share]
 
Read our Terms of Service before reprinting this article. The submitter specified above has claimed the rights to this article.
Jon Caldwell

Ruby on Rails has focused on creating templates and designs that tackle the unglamorous problems. It is not also to create a sophisticated development framework that the engineers at Google or Amazon will flock to; it is like making a database modification that the great majority of Web developers face every day.

True to the ideals of web development, the Rails community is composed of people wanting to reach out to help others. This thriving community builds its foundation on the virtue of sharing knowledge with one another in order to help create a better virtual world and one of the many ways through which Ruby on Rails carry out this mission is by having mailing lists for its users. These mailing lists include: a) A general list where Rail users can discuss information and projects; b) A core list for issues concerning patches; c) Prototype talk on Javascript and Ajax, and; d) A security announcement list for critical patches.

The key to a successful online web development community is accurate and accessible documentation for everyone. That is why the Rails community came up with its own Rails wiki so that users can contribute information and other helpful tips to fellow Rails users. The Rails wiki has everything from the how-to’s in getting started with Rails (installation guides, tutorials, books and FAQ, troubleshooting, tip sheet for beginners, etc.) to community announcements (trainings and job postings, development firms, etc.). One can also find in the Rails wiki the lists of online help groups for Rails users (forums, IRC, user groups, ProblemBase, etc.)

You can always debug your application and get it back on the rails if ever it something goes wrong. You have to check the application log files. See to it that “tail –f” commands are running on the server.log and development.log. Rails will then show debugging and runtime information to these files and debugging information will also be displayed in the browser on requests from 127.0.0.1.

Using the Ruby logger class from inside your controllers, you can also log your own messages directly into the log file from your code like:

class WeblogController < ActionController::Base
def destroy
@weblog = Weblog.find(params[:id])
@weblog.destroy
logger.info(”#{Time.now} Destroyed Weblog ID ##{@weblog.id}!”)
end
end

There are a lot of web servers that are compatible with Rails, but Apache and Lighttpd are said to be the most popular. Any web server that supports mod_ruby (Apache), CGI, or SCGI can be used for running Rails. You may also want to try tinkering with Lighttpd, which can rival Apache 2.0.54 in speed, by using MPM Worker on Debian 3.1 (claimed to be faster than Apache 1.x or2.x MPM Prefork). However, working with Lighttpd-1.4.10 can be very buggy so you might want to consider using Lighttpd-1.4.11 or a newer version instead. Zed Shaw’s Mongrel, a ruby based webserver that utilizes Cextensions to increase performance, is also another good option. You can run Mongrel on its own or in a cluster behind an Apache or a Lighttpd proxy.

Create a directory for all of the software you are going to download and installed. In this example, the created directory is “temp” at the root of the files system, but you can use any name and location you like.

cd /
mkdir temp
chmod 775 temp

Now, download, configure and install Ruby. Wget is used in this example:

cd temp
wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.2.tar.gz
tar -zxvf ruby-1.8.2.tar.gz cd ruby-1.8.2

Specify an install directory since there are times when you won’t have permissions to install things in normal directories. Here, we can see the “configure” script for Ruby, creating a directory inside “/usr/local” for installation:

./configure –prefix=/usr/local/ruby –exec-prefix=/usr/local/ruby

Now, you have a Makefile that you can compile:

make
make install

Your Ruby is now installed. You should try making a symbolic link to Ruby somewhere in your local path:

ln -s /usr/local/ruby/bin/ruby /usr/local/bin/ruby

Important NoticeDISCLAIMER: All information, content, and data in this article are sole opinions and/or findings of the individual user or organization that registered and submitted this article at Isnare.com without any fee. The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional. We at Isnare.com do not, in anyway, contribute or include our own findings, facts and opinions in any articles presented in this site. Publishing this article does not constitute Isnare.com's support or sponsorship for this article. Isnare.com is an article publishing service. Please read our Terms of Service for more information.

Jon Caldwell is a professional content manager. Much of his articles can be found at http://rubyonrailsprogrammingtips.com

Article Tags: community [See Dictionary], rails [See Dictionary], ruby [See Dictionary]
Got a question about this article? Ask the community!
Article published on July 01, 2008 at Isnare.com
 
Rate this article:

Find the Best Design Techniques Today
Submitted by: Jon Caldwell

Make it uncomplicated for your guests to discover content that they desire on your site If you have thousands of piece of writing on your webpage and your guest needs to become aware of one single editorial from that heap, then you have to present a possible means to allow your visitors to do that with no annoyance...

Make Good Use of Online Resources
Submitted by: Jon Caldwell

A globally recognized avatar or to put it short, a Gravatar, was conceptualized by Tom Werner It is simply an avatar image that appears beside your name everytime you comment on gravatar enabled sites...

How to Fully Utilize Web Innovations Today
Submitted by: Jon Caldwell

An external corporate blog is a publicly-viewable corporate blog where the company’s employees or spokespersons share their opinions...

Search and Put Web Innovations to Good Use
Submitted by: Jon Caldwell

There’s an alternative for advanced or revolutionary technology which might be risky Bleeding-edge technology requires systems that are presently in the early development stage and not even set or proven for reliable work...

Learning and Creating Great Pages on the Web
Submitted by: Jon Caldwell

Be specific with your topic when choosing your web headline because they will determine the interest of your audience...

Get the Most Out of Online Resources
Submitted by: Jon Caldwell

One thing you will certainly be impressed with is the types of interactive designs that most web programmers put into sites today...

Choose Internet Service Providers Analytically
Submitted by: Jon Caldwell

http://Comcastnet, owned by the Comcast Corporation which is the largest cable tv company and second largest internet service provider in the USA, was hacked for several hours last Wednesday, May 29...

Get Everything to Know About API
Submitted by: Jon Caldwell

Most individuals have a number of public profiles and blogs But it can be tedious to make all the connections with all your contacts from one site to another...

Upload Your Files the Right Way
Submitted by: Jon Caldwell

One of the methods to access an FTP site is to place a directory of files in one’s computer and allow his clients to access them by implementing the use of certain User IDs and passwords...

Firewalls For Better Security
Submitted by: Jon Caldwell

AVG has been a long-time user favorite due to its free available softwares (Virus Scanning, Spyware, and Rootkit protection), though, of course, paying users have the benefits of maximizing more options and features available to them...

Think Right With the Right Anti-Virus Software
Submitted by: Jon Caldwell

If you encounter a virus attack, do something at once to prevent the spread of the virus to your system...

Meet New People Online
Submitted by: Jon Caldwell

Was it ever possible to talk to your friend on the latest fashion trend in Yahoo Messenger, then your clients wanting inquire about a company product in MSN Messenger...

Downloading the Free Software Today
Submitted by: Jon Caldwell

Cache and Temporary Internet Files can be one of the main reasons why we experience slow computers Because according to a study “70% of website we visit, we do not return to...

Buy Your Laptops Wisely
Submitted by: Jon Caldwell

Toshiba has always been among the top choices when it comes to mobile computing choices It has been tested and is a known brand in the laptop industry and chances are this new model, the Toshiba Satellite A305 will not be far from being another hot commodity for techie freaks today...

Getting Jiggy With MP3 Players
Submitted by: Jon Caldwell

Different mobile phones support different type of ringing tones from simple polytones to upbeat polyphonic tones...

Design Your Dream Deck With A Computer
Submitted by: Jesse Akre

When going about adding a deck to your home, you want it to be perfect It must fit in with the scheme of your home, and you don’t want it to be too big or too small...

How Geocoding Software Works For Mapping
Submitted by: Adrianna Noton

Geocoding is a useful thing for you to do for finding and recording geographical data You can use geocoding software to help you with getting locations, found with ease...

Getting the Best Deal on Computer Printer Ink Cartridges
Submitted by: Jeffrey Richard

I don’t do a lot of printing, but every time I really need to print something, the computer printer ink cartridges seem to go bad...

Youtube Video: How to Convert Articles to Youtube Video?
Submitted by: Said Karimli

Youtube video marketing has become one of the most popular online promotion methods for both companies and individuals...

Using IP Cameras in Prisons and Correctional Facilities
Submitted by: Wesley Fernley

In prison and correctional facilities, it's critical to have a proper video surveillance system This is why more and more prisons are opting for the IP Camera which works like a normal surveillance camera but with the added benefit of internet access...

How Anti-Virus Softwares Detect Threats on Your Computer?
Submitted by: Seomul Evans

Antivirus software authors are constantly looking directions to better the functioning of their scanning engines...

How to Find Out if Your Computer is Infected With Spyware?
Submitted by: Seomul Evans

Spyware is computer software that is installed sneakily on a personal computer to stop or take unfair ascendance over the user's interaction with the computer, without the user's informed consent" The risks of a Spyware infected computer vary in nature and severity...

Finding the Best Computer Protection Against Viruses
Submitted by: Seomul Evans

Wherever do you search the finest computer virus security When you're a regular on the Internet, you need the security from nothing lower than the finest computer virus protection, as the truth is that, there are a lot of terrors out there, and you need protection to assure your online safe...

How to Remove Trojans From Your Computer
Submitted by: Seomul Evans

OK...

Desktop Sync For Complete Peace of Mind
Submitted by: Ryan Pauline

Desktop sync solutions are provided for a complete peace of mind You may be struggling with maintaining and handling of different email accounts...

Printing Your Own Photos at Home
Submitted by: John Dow

The holidays are once again upon us Which means that my wife is going to go crazy printing out photos she takes of all the events, parties, kids, and grandkids...

Hightech Cameras Making Sport Training Easier
Submitted by: Jesse Akre

Lately, the advances in commonly used everyday items has increased dramatically We have cell phones that can double as MP3 players, as well as having internet capabilities, video consultations on our computers, digital cameras that can download right to the computer and then be sent in for printing, and so on...

Choosing a Guillotine Style Paper Cutter
Submitted by: Jeff McRitchie

An important piece of equipment to have in your copy room or work area is a guillotine paper cutter Guillotine paper cutters can help you quickly trim large stacks of paper...

MBM Destroyit 3803 Shredder Review
Submitted by: Jeff McRitchie

The Destroyit 3808 is a heavy duty shredder that the manufacturer posits as a centralized, heavy-use office shredder...

MBM Destroyit 4005 Shredder Review
Submitted by: Jeff McRitchie

Strengths: 1 The MBM Destroyit 4005 offers a super-wide 16 inch feed opening...

Isnare.com Footer Divider

© 2004-2009. Isnare Free Articles - An Isnare Online Technologies Free Articles Project. All Rights Reserved.   Privacy Policy