| Issue 335: | Index and search should use render formats using common code | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
The EventsController#index and EventsController#search actions make a series of very similar calls and render the same template. Unfortunately, the #respond_to calls in each are unique, which means that while #index responds to .json, the #search does not. While it'd be easy enough to just add .json format support to #search, the correct solution to make both use the same #respond_to block. Ben Hengst and I prepared something and I'll finish it shortly. |
||||||||||||
,
Dec 21, 2008
Fixed in r1359: Reworked EventsController#index and #search so that they use a common render_events wrapper that provides generation of common formats, e.g., HTML, JSON, ATOM, etc. Wrote spec examples for #index and #search. Please review. The #index and #search specs repeat code, so it may make sense to refactor the specs to eliminate the duplication.
Status: Fixed
Cc: ben.hengst jdcohenesq |
|||||||||||||
|
|
|||||||||||||