Displaying 2 results from an estimated 2 matches for "render_controls".
2006 Jul 04
0
Help with first AJAX action
...render :template => "storefront/edited_color"
end
Here is the RJS:
page.insert_html :bottom, "colors", :partial => "list_color", :locals
=> {:color => @color}
page.visual_effect :highlight, "colors"
page.replace_html "controls", render_controls
When the user clicks on "Add color" in the controls div, which
initially displays "Add color" and "Log out," these links are
replaced by the edit_color form. When the user successfully adds the
new color, the RJS template should insert the list_color partial int...
2006 Jan 19
1
Rationale behind render opposed to render_action
Guys,
What was the rationale behind moving to the swiss army-ish method of
render(:X), as opposed to the various render_X methods that existed
before?
I find it easier to keep the render_X style in my brain, rather than
trying to remember what the valid parameters to render() are. It''s also
more code completion friendly.
Just curious.
Thanks,
John
--
Posted via