I’ve been following the exercises in the Ruby-on-Rails tutorial by M. Hartl. I have completed all the exercises in chapter 4 but am stuck on this one:
Create three hashes called
person1,person2, andperson3, with first and last names under the keys:firstand:last. Then create aparamshash so thatparams[:father]isperson1,params[:mother]isperson2, andparams[:child]isperson3. Verify that, for example,params[:father][:first]has the right value.
Can anyone suggest how to approach this problem? I don’t want to proceed to next chapter until I have solved this.
1 Answer