hariis / afford

Can I Afford It?
http://caniafforditnow.com
2 stars 0 forks source link

Regenerating expert reason should be possible #12

Open hariis opened 13 years ago

hariis commented 13 years ago

Something to think about: It is highly likely that we may add rules and / or change existing rules. If that happens, we may have to rerun them on the existing questions and update them.

So we have to think if the current structure allows it

hariis commented 13 years ago

The least and easiest to do is create an action from some controller that only admin has access to (in this case, username == 'hari' or 'satish') and that action loads the question and financial objects, reruns the rules checker and updates the question.expert_reason field.

hariis commented 13 years ago

Dropping out of v1 due to Satish's recommendation

satishs commented 13 years ago

Actually you can regenerate expert reason by navigating to the following URL http://localhost:3000/questions/get_expert_verdict/question_id#payment_mode eg: http://localhost:3000/questions/get_expert_verdict/42#payment_mode