search for: find_listing

Displaying 2 results from an estimated 2 matches for "find_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 =
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web Development with Rails. In interation E1 NoMethodError in Admin#checkout Showing app/views/admin/checkout.rhtml where line #12 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? Extracted source (around line #12):