I am trying to populate some fields in a new form before I display it.
I know that if I do this: @mapper = Mapper.new(:consultant_id => 'Fred')
It works and Fred is displayed in the form but in this case
consultant_id is stored as a variable in sessions as it is assigned
when the consultant logs in.
So what I want to do is substitute "Fred" with my session variable:
If I do this: @mapper = Mapper.new(:consultant_id =>
The code appears in the form not the name. I have tried a number of
other ways but they all caused the app to bomb.
Can someone please show me the correct way to do this.