This is "show" action in my "category controller".
#---- Show ---
"show" action - restrict manual url change from user to view the
inactive records. "
Active/inactive are set via status column in category table.
since the url shows up in the url bar, the user can simply type in a
different category_id and view the record, even if status = 'I'
but, i don't want the user to modify the url and view the category where
status <> 'A'
In short, the users get to view only status='A'
How do i do this for show action? (since this accepts a param)
I made the change for list action and list is working fine and shows
only where status='A'. List doesn't accept any params such as
"category_id" so it was ok.
but this show accepts a param which is category_id.
let me know how i could get the result of showing only actives and none
other statuses, directly from the url or via show action.
(i have tried by best to communicate.. but let me know if any is not
clear. i will re-iterate)