In fact, params[:action] is accessible in the view. I am using partial override because it is a very complicated form field and the helper is not enough.
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.
