I created the following route:
map.todo "todo/today",
:controller => "todo",
:action => "show_date"
Initially, the show_date action and its associated view displayed all the activities associated with this day for all campaigns.
As a result, this database was very slow: it would create about 30 records, but it was still slow.
So, Iām thinking of creating a partial one, which will first list the campaigns separately.
If someone clicked on the link associated with campaign_id = 1, I want it to go to the following route:
todo/today/campaign/1
Then I would like to know how to find out that "1" is the campaign_id in the controller, and then just does its job.
, URL- , . , .
. , , , sqlite , , , , .