if this "user agent" is a web client or browser, you might override the
form_column

If this is not, just any other data, and "default" applies to everyone, you
could just set that default in database, since in AS forms, it uses a
model.new, and ActiveRecord retrieves defaults from database.



On Thu, Jul 29, 2010 at 6:40 AM, Balaji <[email protected]> wrote:

> Hi
>
> I have the following scenario
>
> Order belongs to agents
>
> When user logs in as agent and creates an order, the i need to show
> the current user's agent information on top right corner and save it
> when the order gets created
> When user logs is as admin, he should be able to see who created the
> order at the same location
>
> I have set config.columns[:agent]=:select in the order controller. It
> shows as dropdown and i need to set the current user agent information
> as selected when he opens the order screen.
>
> Please suggest a solution or approach for this
>
> Thanks
> Balaji
>
> --
> You received this message because you are subscribed to the Google Groups
> "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<activescaffold%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to