I didn't get this :-
*attr_accessible :address_attributes*
*
*
Why we need to define this in user.rb?
We already have has_one relation. Will it not be accessing those
attributes in address model automatically?
fields_for uses <association>_attributes as the name of the fields when you
are using
accepts_nested_attributes_for :association so you need to define this in
attr_accessible
What has that got to do with the subject line (Nested Attributes in
Rails 3) and why have you posted a large message with many irrelevant
quoted lines?
You say you want to learn to use Ruby, but this is a Ruby on Rails
list so I assume you want to learn Ruby on Rails.
The answer is to start by working through a good rails tutorial such
as railstutorial.org (which is free to use online). I assume you
already know the basics of html, if not then start there.
Also work on your google skills, I am sure that a search for learning
ruby rails would have given you many useful answers.
If you want to ask more then please start a new thread with an
appropriate subject line.