concept additional state in category rails

appears as: dditional states
Rails 4 in Action: Revised Edition of Rails 3 in Action

This is an excerpt from Manning's book Rails 4 in Action: Revised Edition of Rails 3 in Action.

It would be great if you could add more states to the application without having to add them to the state list in db/seeds.rb, wouldn’t it? Well, that’s easy enough. You can create an interface for the admin users of your application to allow them to add additional states.

10.4.1. Adding additional states

You currently have the four default states that come from the db/seeds.rb file in your application. If the admin users of your application wish to add more, they can’t—not until you’ve created the Admin::StatesController controller and the new and create actions inside it. These will allow admin users to create additional states, which then can be assigned to a ticket.

Rails 3 in Action

This is an excerpt from Manning's book Rails 3 in Action.

If you want to add more states than these three default states, you can’t at the moment. Tickets can have two different types of Closed: one could be “Yes, this is now fixed” and another could be “No, I don’t believe this is a problem.” A third type could be “I couldn’t reproduce.” It would be great if you could add more states to the application without having to add them to the state list in db/seeds.rb, wouldn’t it? Well, that’s easy enough. You can create an interface for the admin users of your application to allow them to add additional states.

10.4.1. Adding additional states

You have three default states from the db/seeds.rb file currently: New, Open, and Closed. If the admin users of your application wish to add more, they can’t—not until you’ve created the Admin::StatesController and the new and create actions inside it. This will allow those users to create additional states which then can be assigned to a ticket.