Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1025325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:54:41+00:00 2026-05-16T11:54:41+00:00

questions ——— id topic_id created_by created_at question_text closed_by closed_at response_text It appears in a

  • 0
questions
---------
id
topic_id
created_by
created_at
question_text
closed_by
closed_at
response_text

It appears in a nested table under the topics table.

I can easily create a question, I just have to exclude :created_by, created_at, closed_by, closed_at, response_text from config.create.columns. (created_at and created_by is filled with before_create_save(). So the only field the user actually fills is question_text.

The next step would be to create a “Respond” action (instead of “Edit”) which would be very similar to an :update with a few differences. The form of this action would exclude all fields, except response_text. The before_respond_save() would do the filling of closed_by and closed_at.

Is there any way of doing this without creating custom views (.erb, .rhtml) with hand?

(In short: Is there any way to escape from “CRUD” a little-bit, but not doing everything by hand?)

EDIT: Example for exclude

active_scaffold do |config|
  # ...
  config.create.columns.exclude [:created_by, :created_at, :closed_by, :closed_at, :response_text]
  # ...
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:54:41+00:00Added an answer on May 16, 2026 at 11:54 am

    I gave up on solving the problem this way. As I believe the current environment does not support my approach. Instead, I went on with writing forms. See RoR: How to handle custom nested form's submit

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two questions: Can someone point me to unbiased data that compares .NET performance to
Questions: how can I use img tag in facelet java ? I've tried using
another questions... How can i make this textfield?? With on the left a FIXED
Two questions here really; why is this happening? And what can be done about
Questions Where is the method for my object stored ? and can I see
Questions about threads are in no shortage, I know, but I can't seem to
My questions is about redirection from PHP . I know that we can redirect
Similar questions already asked, but please can anyone explain to me why this code...
Questions / Issues If someone can recommend me a good free hosting site I
Questions #1 through #4 on the Joel Test in my opinion are all about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.