Displaying 1 result from an estimated 1 matches for "new_company".
Did you mean:
get_company
2006 Jan 02
2
Dynamic form tags
...ages/HowToReuseEditViewsForNewViews
There''s this comment there saying you only need the tag "<%= auto_form %>"
when using the code below. Can somebody tell me if that will work when
extending it with model_name (some how)?
I have several new_* methods (e.g. new_contact, new_company, new_project,
etc), and I''m not going to bother with this challenge when you big guys out
there tell me it''s a no go to develop this.
def auto_form
action = case controller.action_name
when "new" then "create"
when "edit" then "upda...