Hi all,
I'm doing some work on an extension, and I'm run into an issue. I'd
like to pass validation errors on a form back to the tag that draws the
form. ala:
module FormTags
include Radiant::Taggable
desc %{
Displays the form
}
tag "form" do |tag|
form = '<form name="form" action="/forms/create">'
if flash[:error]
form << '<span class="error">'+flash[:error]+'</span>'
end
...
end
end
So, how do I access that? controller.flash doesn't work, and nor does
flash (or passing a variable through the class scope).
Thanks for any ideas-
--
Matthew Beale :: 607 227 0871
Resume & Portfolio @ http://madhatted.com
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant