title: RoR: Custom update for record
body: <pre><code>questions
  ---------
  id
  topic_id
  created_by
  created_at
  question_text
  closed_by
  closed_at
  response_text
  </code></pre>
  
  <p>It appears in a nested table under the <code>topics</code> table.</p>
  
  <p>I can easily create a <code>question</code>, I just have to exclude <code>:created_by, created_at, closed_by, closed_at, response_text</code> from <code>config.create.columns</code>. (<code>created_at</code> and <code>created_by</code> is filled with <code>before_create_save()</code>. So the only field the user actually fills is <code>question_text</code>.</p>
  
  <p>The next step would be to create a "Respond" action (instead of "Edit") which would be very similar to an <code>:update</code> with a few differences. The form of this action would exclude all fields, except <code>response_text</code>. The <code>before_respond_save()</code> would do the filling of <code>closed_by</code> and <code>closed_at</code>.</p>
  
  <p>Is there any way of doing this without creating custom views (<code>.erb</code>, <code>.rhtml</code>) with hand?</p>
  
  <p>(In short: Is there any way to escape from "CRUD" a little-bit, but not doing everything by hand?)</p>
  
  <p>EDIT: Example for exclude</p>
  
  <pre><code>active_scaffold do |config|
    # ...
    config.create.columns.exclude [:created_by, :created_at, :closed_by, :closed_at, :response_text]
    # ...
  end
  </code></pre>