Hello Robby,
If 'status' is not an association field, try params[:record][:status].
I hope it helps you.
See you,
Rodrigo

On Tue, Feb 3, 2009 at 12:23 PM, robby_rails <[email protected]> wrote:
>
> Hi Guys
>
> I cant believe that i cant get this right. I am trying to get the
> value 'status' from a form but I dont get anything .. nil
> What am I doing wrong. I know this works in RoR with scaffold but I
> cant get it to work in AS
>
> This is the code in my controller.
>
> def before_update_save(record)
>  logger.info  (params[:status])
>  if (params[:status]) == false
>     record.closedby = session[:username]
>  else
>     record.closedby = "--"
>  end
> end
>
> Thanks fin advance and I am sorry if this is a basic question but I
> have googled myself into a spin
>
>
>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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