additional text - instructions

3 views
Skip to first unread message

Ivor Paul

unread,
Jan 30, 2008, 11:25:17 AM1/30/08
to actives...@googlegroups.com
Hi All

I have some instructions that apply to all the fields in my create form.
I dont want to add it to the label for each form field. I would like to just add some text to the right of the fields, or at the top of the page to instruct the user on what to do.

How would you go about that? I basically want stock standard admin view activescaffold, with some extra html (ERB) somewhere else on the page.

Regards
Ivor

MrBa...@googlemail.com

unread,
Jan 31, 2008, 4:25:43 AM1/31/08
to ActiveScaffold : Ruby on Rails plugin
I would vote for copying _create_form.rhtml to your controllers view
path and add whatever you need.

--
volker

sergio

unread,
Jan 31, 2008, 6:21:28 AM1/31/08
to actives...@googlegroups.com
On Thu, 31 Jan 2008 01:25:43 -0800 (PST), "MrBa...@googlemail.com"
<MrBa...@googlemail.com> wrote:
>
> I would vote for copying _create_form.rhtml to your controllers view
> path and add whatever you need.
>

You don't need copy it, you can create a new _create_form.rhtml for each
controller and use render :super.

[Pre content]
<%= render :super %>
[Post content]

Ivor Paul

unread,
Jan 31, 2008, 6:40:49 AM1/31/08
to actives...@googlegroups.com
Awesome! thanks guys :)

regards
Ivor

White Wizzard

unread,
Jan 31, 2008, 11:47:30 AM1/31/08
to ActiveScaffold : Ruby on Rails plugin
config.columns[:team_member].description = "Team Member that wrote
the ICC"

Currently used in created and edit, sounds like it would work for you
without overriding anything.

WW

Ivor Paul

unread,
Feb 1, 2008, 9:50:17 AM2/1/08
to actives...@googlegroups.com
Cool, ill try that aswell :)
Reply all
Reply to author
Forward
0 new messages