Bob,

Use the standard Ruby initialize method, something like:
        
        def initialize *args
                super *args
                self.project ||= owner.default_project
        end

Cheers,
Henry



On September 29, 2011 03:13:36 PM Bob Sleys wrote:
> I have stored in the session the value I'd like to use as the default for a
> <select-one> tag but I don't see any documentation on how to do this.  I
> checked the hobo manual and it doesn't show a param to set for this.
>  Basically the problem is when a user interacts with my app thy are working
> on a particular project, ie recording all the work associated with a
> project.  I want to allow them to choose a default project and then use
> that default anyplace they are adding new data that requires a project so
> they don't have to select it over and over again.  I've already got the
> code to select the project they are working on and keep it stored in their
> session now I just need to default the <select-one> tag for the project
> field to that project.  Any hints would be appreciated.
> 
> Thanks
> Bob

-- 
Henry Baragar
Instantiated Software
416-907-8454 x42

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to