Ruby on Rails Programming Tips

Debugging Rails


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

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“#{} Destroyed Weblog ID ##{}!”)

On the High Rails with Ruby

Ruby on Rails (ROR) is the recent addition to the Internets DIY (Do it Yourself) Magic Kit. It is an open source web application development framework based on the Ruby Programming Language. Like its parent, it is highly user friendly, much simpler to learn & apply & has time proven outputs to justify its unearthed position in the market. If you have dreamt of putting up your website online with all that interactive thingies, now is the chance.

Buy your own domain & your web space. You can find a lot of cheap web hosting services online, after a small research of course. Find out the services they offer you, the bandwidth, the email accounts, the security features & so on. With a good & cheap web hosting services and Ruby on Rails to assist you, you can set up a cyber wonder in no time.

Though Ruby on Rails embodies a lot of libraries (like Prototype and others) developed in Javascript for Ajax, it is much simpler than Java itself. If you assume learning all the tricks & codes of core Java in a period of two months, Ruby on Rails will give you the same power in a couple of weeks, thanks to its easy to use “snippets”. Plus, the output can be derived in the globally acclaimed HTML & XML formats. The latest release (3.0.7) carries forward the “Convention over Configuration (CoC)” Legacy of the Rails Core Team. Thanks to the third party developers, many plug-ins have been devised for various platforms.

Maintenance is Important

Computers are essential today. If you work, in a company or on your own, even if you do not and just want to stay connected to family and friends, you need a computer. This is necessary because a lot of communication is not conducted online. That said, making sure your computer is taken care of should be on your list of regular things to do.

cleaning computers

Care for the computer is not only about firewalls and anti-virus software. It is also about the maintenance of hardware. So here are some quick basics. Make sure your computer area is always clean. Do not eat, drink, or smoke around the computer as this increases dirt and risk of damage. Make sure you clean inside your computer by moving and dusting regularly. You need to be unplugged form the power source, unscrew the case, and use an air device of some sort for dusting. Finally, make sure the case itself is wiped with a clean, soft, and dry cloth regularly.

These simple steps will lengthen the life of your hardware.

Checking for Dependencies

There should be a constant check done to ensure all patches and updates issued are configured and integrated properly to prevent issues. Passwords should never be stored as plain text in databases, so include some form of encryption whenever possible. Parameters and other settings that can be saved onto logfiles (for obvious activity auditing) should be screened for any that can give unwelcome access to the app.
Do check for code injections that is a common occurrence in today’s dangerous internet environment.
These and a couple more security checks should be included in your security audit to ensure you have a reasonably secure application that will surely make itself apparent should you need to look for issues in the near future.

List of Rails Web Hosts


Here is a list of web hosting services which support Ruby on Rails in case you might be looking for one for your website:


• A2 Hosting
• BILES ONLINE Ruby on Rails Hosting
• BlueHost
• Crucial Paradigm
• Dedicated Hosting
• Domain Gurus
• Hosting Rails
• JaguarPc
• SpeedyRails
• Zowes Web Hosting


• Exaltinfo
• RailsFactory
• Web Development India
• Web Hosting Delhi


• Anchor Systems
• Avial Web Design and Hosting
• Crucial Australia
• Hostcentral


• Blacknight Solutions
• Brightbox
• GPcom Media
• Media72 Hosting

For the complete list of Rails web hosts, visit:

Learn Your Hashtags Manner

Hashtags popularity is definitely taking over the internet world and has become an integral part of the whole social media experience. Since twitter introduced it back in the 2008, the former ‘pound sign’ was never the same again. Now people hashtag as many as they can in any gadgets they have. Facebook also has already jumped in the bandwagon and supports hashtags. And even on other social networking sites that doesn’t support hashtags, people are still using it too. However, no matter how great we want our hashtags experience would be, some hastags are misused and can be so annoying for your friends, fans and followers. Most people who are guilty of breaking the hashtags etiquette are marketers but sometimes, even ordinary people do break the rules. Mind your manners! Here are some hastags etiquette you should bear in mind.

You can put multiple words together but don’t put too much (it’s just not an unpleasant sight) and be sure to omit spaces if you do and capitalize the first letter of each new word to make it easier on the eyes.

#do #not #tag #every #word #you #think #of
I know some pictures and statuses are hard to describe in one hashtag so sometimes you have plenty of them. But please not too many hashtags in one post please. This is common in facebook where there is no character limit.

dont jump on a trend without actually relating your post to the topic
Marketers are the ones guilty of this. Just because you want to spread your brand awareness doesn’t mean you should include a tag surrounding the latest celebrity gossip.

Avoid overusing descriptive synonym tags at the end of a post
#my2cents #idea #thought are the same in meaning. So you dont need to add all of those hashtags. It seems messy and unnecessary.

Should we get the Windows Tablet?

There are so many gadgets in the market today it is head-spinning trying to figure out the best one to get, the best in terms of value for money. There are smart phones, tablets, laptops, desktops, you name it and there is probably a gadget in the market for it. Since this is the case, the question then is what gadget to spend hard earned money on?


Consider that the rate of obsolescence is quite fast, you should get something that will serve your objectives in getting a gadget to begin with and one that can be upgraded as much as possible. Take a look at the Windows 8 tablet. This was released last year so enough time has passed for users to give some good feedback as to whether this is a reasonable and good gadget. Promising the features of a tablet with the ease and use of a laptop, this detachable tablet and keyboard appears to be a popular choice. It is versatile, up-to-date, and uses an OS that is compatible with most offices still today and easily updatable.

Reasons to own a Smart Phone

When we think about the things we need in life today, gadgets are probably the last on the list, if they even make the list at all. A lot of folks would think that this is just a desire, a frivolity that really can be done without. What most do not realize is how the world is wired today. Here are some reasons why a gadget- most probably a smart phone- has become a necessity.

1. Most offices now have processes that are linked to online connectivity, storage online, payment methods online. If you are working, you will need a smart phone to at least be able to access work-related documents or to do work processes,
2. Payment methods are now faster and a lot cater more to online transactions. Especially in a world ruled by credit, being able to buy and pay online has become essential to daily activity.
3. Being in contact or contactable is absolutely important whether this be by family, or work, or for freelance projects.

So when making your list of ‘must have’s', stop and think hard if a mobile phone really isn’t one of them

The Gadget Question

There can be no denying that gadgets today can do so much for a person. Truth be told, a person can do almost anything on the gadgets these days. It has been said that a person can read, go on all kids of social media, do groceries, shop, conduct bank transactions, and basically operate the lighting in the house from a gadget. So one important question is, does a person need one of each kind of gadget, or is one enough?


The answer is simpler that it looks. It really depends on use. If you are the kind of person who does all of the above plus more on your gadget, then perhaps a tablet is the best choice for you. It can be your ebook reader, your music player, your social media hub, your business center, and your banking support all in one. But, if you are a simpler person who uses his or her gadget just for reading, music, calls, and the occasional surfing, a smart phone might be a more afforable choice.

What is a Firewall?

Unless you have been hiding under a rock for a long time, you will have had some exposure to the Internet and the wonderful world of computers in some way. The world has become increasingly more technological and more connected in its advancement.

There are lots of ways to ensure you and your toys are protected ranging from the extremely simple to the hard core complex solutions. If you aren’t one to spend a lot of time and money on complex security systems and if you don’t really need these as well based on your activities, then all you need are the basics. Make sure you get the firewalls set up in your gadget. A firewall is like a tech wall that filters data coming in and going out of your gadget so that you are protected from viruses of hackers that want to access your data. If you aren’t sure how to fix this, get someone to help you out. Don’t skip it as this is a basic requirement for internet security.