Displaying 2 results from an estimated 2 matches for "article_bodi".
Did you mean:
article_body
2007 Mar 25
5
Insert text into text area field with RJS
Hi,
I''d like to insert/append some default text into a text area after
clicking on an image button ''test.png'' in edit.rhtml:
<%= link_to image_tag("test.png"), url => { :action => :new_text } %>
Action:
# article_body is the textarea''s id.
def new_text
render :update do |page|
page.insert_html :bottom, :article_body,
2006 Jun 30
5
If / Else Form layout question.
Hello all,
I''m using the following _form.rhtml layout for a number of pages,
including edit record and new record (which each has it''s own definition
in the controller).
I''d like to display a different author form field depending on which
page they are using. I''d rather keep using _form.rhtml as a layout
template, instead of customizing each separate page.