1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Design Requirements

Last updated at Posted at 2017-12-24
■ プロジェクトの作成
cd /var/opt/data
rails new DesignRequirements -d mysql


■ RGDsモデルの作成
rails g model RequirementTicket title:string requester:string reqGroup:string SID:string appteam:string
rails db:migrate
config/routes.rb
Rails.application.routes.draw do
  resources :requirement_tickets do
    collection do
      get 'search'
    end
  end

  get 'requirement_tickets/new', to: 'requirement_tickets#new'

  resources :requirements do
    #get 'search', :on => :collection
    collection do
      get 'search'
    end
  end

  post "requirements/new" => "requirements#create"

end
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?