Hi John,
John Indra wrote:
> How do I know the name of the action currently invoked inside RHTML
> template? I need to make a text_field readonly when the action is
''edit''
> and readwrite when the action is ''new''.
I may be completely misunderstanding your question, but...
In Rails, you will have a seperate view (RHTML template) for each controller
action. So you''ll have a ''new.rhtml'' and an
''edit.rhtml'' and you''ll just
include a contentEditable=false attribute on the field in your
''edit.rhtml''.
hth,
Bill