Displaying 1 result from an estimated 1 matches for "get_current_item".
2007 Sep 08
2
"Common action" for a controller
Sorry if this has been asked before; it seems like a simple problem.
I have a controller called ItemController which displays information
about specific items to a user on various pages. The routing looks like
"items/:item/:action". Is there any way to automatically look up the
:item in the items table (it''s just an ID).
I tried:
before_filter { @current_item =