Create show action for settings
vinistock opened this issue · 1 comments
vinistock commented
Sail needs to provide the ability of reading settings' values via javascript. Therefore, we need a show action in settings controller to return settings information as JSON.
Steps
- Add show to the settings resources in routes.rb
- Create show action in settings controller. It should use the name parameter to find the setting and return its value in a JSON like
{ "value": true }
. It should only accept JSON format as well. - Don't forget to write the specs in settings_controller_spec.rb
jm96441n commented
I could tackle this one if no one has picked it up yet?