In_place_edit_for, multiple attributes?


#1

I am using some in place editors on a page that views and updates
records. I have it working but want to know if there is a more efficient
way of declaring them in the controller.

Currently, I have the following:

class ChurchesController < ApplicationController
in_place_edit_for :church, :name
in_place_edit_for :church, :address

etc, etc…

Is there a way to do this all on one line, like:

in_place_edit_for :church, { :name, :address }

Tried that to no avail. Thoughts?