Displaying 2 results from an estimated 2 matches for "edit_listing".
2006 Apr 29
3
Noob question... confused
If I have several controller actions which have this same line of code (or
more), how can I DRY up the line without running into complaints about
redirecting or rendering only once? If I put the line in another method in
my controller, won''t it think I''m redirecting?
I want to dry up lines like this: @listing = Listing.find(params[:id])
def customerview
@listing =
2006 Jun 16
1
sortable acts_as_tree with heirarchy
I''ve been stumbling on the tut at oriontransfer
(http://wiki.oriontransfer.co.nz/main/show/SortableTree)
I''ve got it working in a one dimensional list and I''ve got the drag and
drop working on children, but as can''t get it to save the tree.
Here''s my view:
<h2>Menu Prototype 2</h2>
<%= flash[:notice] %>
<ul