Why do you need it in the view? You shoule be able to do it in a helper.

There are explainations on the wiki for overriding field values in your helper 
and you can specify different methods for create or update
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Richard Zheng <[email protected]>
Date: Fri, 11 Jun 2010 17:29:27 
To: <[email protected]>
Subject: Re: create or update?

I need it in the view. Is that possible?


On Fri, Jun 11, 2010 at 2:54 PM, Andrey Voronkov <[email protected]>wrote:

> From here:
> http://stackoverflow.com/questions/1244921/rails-controller-action-name-to-string
>
>
> <http://stackoverflow.com/questions/1244921/rails-controller-action-name-to-string>Use
> the params[:action]
>
> 2010/6/12 Richard Zheng <[email protected]>
>
>> Hi,
>>
>> How can I find out in a view if it is called by create of update?
>>
>> I have a field override in the view. It should show different content when
>> called by create and update.
>>
>> Thanks,
>>
>>  --
>> 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]<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.


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