How to use Rails Migrations - Part II

April 26th, 2007 by Yavor Ivanov

 

Migrations
This article is part two of the series about Rails Migrations and it will explain on a deeper level how to use the Ruby on Rails migrations.

 
 

After we spoke about Migrations in our previous article found here we understood the basics needed to use Migrations in Ruby on Rails.

Now to begin with the code and something we did not mention earlier.

You see indexes are something that a good database design MUST contain!
This example shows how to add and remove an indexed field.

 

And now let’s take a look at some examples which might or might not be so obvious to make.

Read the rest of this entry »




You like it? Digg it!

Tags: , , ,


Ruby on Rails Blog Carnival - April

April 23rd, 2007 by Stanislav Bozhkov

Rails Here it is - this month’s Blog Carnival. After lots of reading and searching the network I’ve collected a new dozen of valuable posts. As everybody knows not every single blog post on the globe deserves a read up. That’s why I’m trying to weed out those that are not so useful. So, as a result I’ve compiled this Blog Carnival. I believe that most of these posts deserve a browse. Have a nice reading!

 

 

 

Rails Performance

  • Twitter starting to get de-Railed - Twitter starting to get de-Railed - On this post is questioned the scalability of Rails applications. This question has also been asked to David Heinemeier Hansson. Moreover there’s a small discussion on the problem of scaling Twitter. It’s worth to give this post a read.
  • A “facility in Rails to talk to more than one database at a time” - Dr.Nic has writen a great plugin to enable our Rails applications to talk to more than one database. Moreover he has written a nice tutor how things work. Good work!

 

Read the rest of this entry »




You like it? Digg it!

Tags: , ,


Developing a News site in Rails [Project 1] [Part 1]

April 22nd, 2007 by Yavor Ivanov

Development CycleRecently I was asked the following question:

How hard is it to build this project in Rails

You can substitute this with anything. After a short period of time I realized that such a question can’t be really answered to a point where a programmer would agree completely if he/she didn’t even touched Ruby on Rails. In order to change that fact a person should see the whole process of developing and deploying a Rails application so he/she can realize the power and potential of a Rails application.

 

With all this in mind I hereby announce the Project type articles of RubyCorner.net. Those articles will represent an overview of the development process of a real working Rails web application. This article is the first of the series Project and it will begin not so briefly and give a more detailed overview of the things we will do. The next articles in the series will focus on more complex things and will skip those explained before assuming the knowledge was already obtained.

 

Let’s begin with our first web application project:

 

Project 1 – Developing a News site in Rails
parts count: 3 (this is a three day project)

Rails version used: 1.2.3 (used both on Windows and Linux platform)
Ruby version used: 1.8.5 (used both on Windows and Linux platform)
Knowledge of HTML and CSS: assumed
Knowledge of a Web Programming Language and Database: Basic-Advanced assumed

Read the rest of this entry »




You like it? Digg it!

Tags: , , , ,


Create An eBay Clone With Ruby on Rails?

April 13th, 2007 by Stanislav Bozhkov

ebayI found an interesting topic recently in a forum discussion. It was about whether or not an eBay clone could be build on the top of Ruby on Rails. A few interesting questions are: “Is RoR the best toolkit for doing that?”, “Whether the
same eBay functionality could be accomplished?” or “Could it scale enough?”
Read the rest of this entry »




You like it? Digg it!

Tags: , , , ,


The Key For Ruby And Telnet Communication With Cisco

April 4th, 2007 by Stanislav Bozhkov

cisco switch 2950
Have you ever had the need to programatically obtain information from a network device. In general when we deal with manageable network devices the smartest way is to use SNMP. However in some cases your head can get fired from problems concerning SNMP. Sometimes you would want just to obtain the output of a common terminal command. Well it could be a bit tricky when communicating with Cisco switches. I will share my experience now - problems and resolutions about this issue.

 

In my case I’m developing a webconsole application. It should have the feature to search for a mac address in the ARP tables of a couple of switches. Of course what I did first was to try doing it with SNMP. Read the rest of this entry »




You like it? Digg it!

Tags: , , ,