search for: customerview

Displaying 1 result from an estimated 1 matches for "customerview".

2006 Apr 29
3
Noob question... confused
...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 = Listing.find(params[:id]) render :action => ''edit'' end def view @listing = Listing.find(params[:id]) render :action => ''edit'' end def edit @listing = Listing.find(params[:id]) render :action =&g...