ruby on rails

Rails 2.3 : Nested model forms and nil.new_record?

Update : Apparently this problem is specific to has_one relationships. If you’re updating a nested model through a has_many relationship then you may not have this problem.

I’ve just solved a little gotcha with the new nested models feature which shipped with rails 2.3. If you’ve been having the following error when you try to render your model/new forms then read on…

Rails Vs. Merb

Rails and Merb are MVC web application frameworks written in and for Ruby.
Both the framework is similar in terms of their directory structures and concepts.

Now, We have to compare Rails and Merb. and findout which one is best?

  1. Rails is not Modular based. As Merb is Modular.

  2. Rails is focused on rapid development for the web programmer.
    Merb is focused on speed and extensibility.

Rails Vs. Merb

Rails and Merb are MVC web application frameworks written in and for Ruby.
Both the framework is similar in terms of their directory structures and concepts.

Now, We have to compare Rails and Merb. and findout which one is best?

  1. Rails is not Modular based. As Merb is Modular.

  2. Rails is focused on rapid development for the web programmer.
    Merb is focused on speed and extensibility.

iPhone on Rails

Introduction to ObjectiveResource, the open source framework that connects the iPhone to the Ruby on Rails application

Introduction to ObjectiveResource, the open source framework that connects the iPhone to the Ruby on Rails application

API directly.

Integrate Mephisto with Rails

Mephisto is a blogging system available in ruby on rails. it’s provides easy way to integrate with your rails application.

To implement mephisto you have two different ways to download Mephisto: one is download the latest release as a tar.gz file, and other is to get code from Subversion repository.

For Quick Installation, You must follow some of the steps:

1. Mephisto is not much compartable with Ruby 1.8.7. So it’s benefitial to use Ruby 1.8.6.

Integrate Mephisto with Rails

Mephisto is a blogging system available in ruby on rails. it’s provides easy way to integrate with your rails application.

To implement mephisto you have two different ways to download Mephisto: one is download the latest release as a tar.gz file, and other is to get code from Subversion repository.

For Quick Installation, You must follow some of the steps:

1. Mephisto is not much compartable with Ruby 1.8.7. So it’s benefitial to use Ruby 1.8.6.

.htaccess protection with nginx

Hey just recently had a requirement where in I had to set password for my website. It was a ruby on rails website and I had to set .htaccess for it. I knew how to setup .htaccess for apache but with nginx (that our site was using as webserver) I didnt knew what to do.

Then I figured out the solution

Open nginx.conf file. Search for the location word you might see multiple location configuration. But put the code below in the root location

Some Software Was Harmed in the Making of This Site

As noted on the about page, I decided to write my own software to run this site.

The following technologies were harmed in the making of this site:

Blog focus

I'm going to change the focus of this blog. Not that it ever really had much focus before, but it was called 'Rails Tales' and my plan was to talk about developing applications with Ruby on Rails. But lately, at Entertonement (where I'm a web developer), I've been more interested on understanding our users and decreasing bounce rate. This has revealed some interesting things that I want to

Outsourcing vs. Offshoring

My experience is that most people think of “outsourcing” and “offshoring” as synonyms. We talk about the general category of outsourcing with slight repugnance, acknowledging that it is occasionally useful for more mundane and unskilled tasks, but it simply won’t work for the more creative tasks that require an American to do it well. (Maybe nobody blatantly says it requires an American, but we know what you’re implying.)

Syndicate content
Snow Leopard | Rails Fire

Snow Leopard

Visually Inspect Ruby Object Models with DrX

When you want to inspect your objects in Ruby, Object#inspect, p, or awesome_print are all valuable. You're stuck with plain-text, though, and primarily designed to look at object data rather than object models.

Fixing the Xcode Project Templates

I recently upgraded my copy of Xcode and installed the iPhone SDK. A short while later, while following an example in the Pragmatic Programmer’s Cocoa Programming book, I found that my copy of Xcode wasn’t creating some key files.

Snow Leopard Developer Upgrade Notes

Apple’s latest release of OS X is version 10.6, or “Snow Leopard”. For most users, upgrading isn’t a worry: you upgrade, and everything just works. Developers, however, will find that upgrading is more haphazard, as the environment has switched from 32-bit to 64-bit. Plus, you have to find enough downtime in which to upgrade & deal with any issues that arise. For me, that downtime finally occurred over the Christmas/New Year’s holiday period.

Retrospectiva: Open Source Project Management Rails App

retrospectiva.pngRetrospectiva is a new open-source project management tool built as a Rails application. It's interesting from two angles: first, as a project management tool, as it was designed; but secondly as a large, well built Rails 2.3 app to learn from.

Double Shot #572

There is no apparent end of code that needs to be written.

The Brightbox Toolkit

It’s been quite interesting to read the recent “Tools of the Trade” meme where people are blogging what they use to do their job. I found it so interesting in fact, that I decided to find out what tools we all use at Brightbox. Here’s our list.

Caius

Hardware

Double Shot #565

I’m rather enjoying doing more PM lately. Probably a sign of creeping megalomania.

Fixing MacPorts on Snow Leopard

I’ve been toying around with the idea for a small website lately, but never actually got around to do it. In an attempt to clear out my personal to do list I finally motivated myself to start yesterday, and I have to say the following combination of tools is not only insanely efficient, but also really fun to work with:

My Tools of the Trade – 2009

I originally posted this list in mid-2008, and it seems about time for an update. So, here are the tools I tap most often these days in building web sites and doing my other work:

Hardware

For the most part, I haven’t upgraded hardware in the past year. The desktop box is starting to feel its age, and I’d like to treat myself to an upgrade, but I can’t quite justify the cost yet.

Rails Envy Podcast – Episode #095: 10/08/2009

Episode #095. Dan Benjamin (Playgrounder, Hivelogic) is back this week and we keep it quick while still packing in the news.

Syndicate content