controller and views

Check out the complex forms railscast.
http://railscasts.com/episodes/73-complex-forms-part-1