public String LinkToNew(ActiveRecordModel model, bool useModelName, String text, IDictionary attributes)
{
if (useModelName)
{
return String.Format("<a href=\"new{0}.{1}\" {3}>{2}</a>", model.Type.Name,
Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes));
}
else
{
return String.Format("<a href=\"new.{0}\" {2}>{1}</a>",
Controller.Context.UrlInfo.Extension, text, GetAttributes(attributes));
}
}