Ruby on Rails, Quick Tutorial


I have been hard at work finishing my degree at DePaul University. My stress is up, but so are my programming skills.  This semester I am taking many capstone classes, or classes that you take to “cap” your experience at college.  Besides these, I am taking IT 231, a web development course that introduces an emerging and new web language: Ruby on Rails.

First, put yourself in my shoes.  Knowing valid HTML, css, php, and javascript, why do I need to learn another new web language?  Is it to confuse us?  No way, it’s to make stuff easier.

Ruby on Rails is a high recommended web language to learn.  Like PHP, Ruby on Rails is a Server-Side scripting language. The reasons for learning RoR can be very technical – without going too much into it, Ruby on Rails can be seen as a “trust me” language.  There is a new sense of transparency between you and how Ruby on Rails interprets your code.  In short, Ruby on Rails relies on many assumptions based on heuristics, or “rules of thumb”, used by web developers today.  The language rarely gives you or your visitor(s) any error messages.  Instead, the language heals itself by ignoring faulty code.   You can contrast this with PHP, which gives you (and the visitors) error messages like it’s candy on Halloween.

There is no better way to learn about Ruby on Rails than to try a simple program execution.  I recommend you try the following Ruby on Rails tutorial:

  1. First, install Ruby:
  2. Download, extract, then run: ruby setup.rb
  3. After RubyGem is loaded, install Rails with: gem install rails
  4. In the command line enter: rails new hello
  5. Then change to the new directory using: cd hello
  6. Generate your controller (read up about this more by yourself), by entering:  rails generate controller hello
  7. Navigate to your /hello folder and open routes.rb in your /hello/config folder.  Remove the # symbol before the following code:
    # match ':controller(/:action(/:id(.:format)))'
    Click save.
  8. Lastly, run the command: rails server and navigate to http://localhost:3000 in your browser!

Increase Your AdMob Revenue Rate: It’s About eCPM Rate

Admob Revenue

Admob is still a relatively new advertising network. That didn’t keep Google from purchasing them in 2009. Admob is completely taken care of financially, which means everybody wins at the end of the day. Focusing on mobile traffic primarily, Admob is continually providing publishers like you and I with tools to increase our AdMob revenue. The most important metric you should pay attention to is your eCPM (i.e, the amount you earn per 1,000 impressions).

One of the best ways to manipulate and hopefully increase your admob revenue is through the use of AdMobs ad filters. Once you have an accepted mobile website in the Admob publisher program, you will see Reports, Setup, and Tools links on your Admob dashboard homepage. Click ‘Tools‘. On this page you will be able to manipulate a series of filters that ultimately determine which advertisements are displayed on your mobile website. Many people disagree with “Age-Orientated Ads”, which is why it is turned off by default. But that didn’t keep them from having the Gambling or their own Affiliate Ads from showing up by default. Personally, I like to remove any categories that would not seem relevant to my website to any degree. I recommend that everybody turns image ads on.

Be careful not to go crazy filtering your Admob ads, however. Though it might makes sense to remove categories that have nothing to do with your website, you would be surprised the kind of products there are in the free market that might interest one of your visitors.

At the end of the day, the advertisers through Admob determine the value of your mobile traffic. By filtering categories, you are telling certain advertisers that you don’t want anything to do with them. Your ultimate goal is to deliver the most relevant advertisements to your mobile visitors and increase clicks and your revenue. And since you own the website, you typically know what your visitors want.

Need help or have experience increasing your AdMob revenue?

Do you have any Admob tips or tricks on how to increase revenue?  Feel free to comment.  I may start a list if I get some quality contributions.  I’m not trying to promote Admob; just dish out ideas on how to make more money :P