2011 has been good so far, but it just got better. I started a web design and development company with 2 partners named Bold Array. We create cutting-edge applications utilizing the latest web standards and technologies. Check out our site HERE.
Rails 3: Nested form with has_one model
The other day I drew a blank on why I could not get my nested form to work with a model that had a has_one relationship. After a few posts mentioning to build the sub model, I gave it a try.
Model:
class Person
has_one :address
end
Controller:
def new
@person = Person.new
@person.build_address
end
First look at ruby version manager
Rails 3 is just around the corner. With a few rails 2.3 projects under my belt, I wanted to see what rails 3 is all about. Before I could start playing with rails 3 I would have to upgrade to the lastest version (1.9.2 when I started) of ruby.
How can I manager both versions of ruby on my system easily?
After a little bit of searching, I found Ruby version manager (RVM). After the initial setup, things look real good. I am even able to have different sets of gems for each version of ruby. This tool could be just the ticket. I will keep you posted.
The Start of a New Era
My first blog. Thank you, thank you. The fun will start soon.