Forum: Ruby on Rails in_place_edit_for, multiple attributes?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Brad D. (Guest)
on 2005-11-17 00:43
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?
This topic is locked and can not be replied to.