「Ruby on Rails 5 アプリケーションプログラミング」という本を勉強しているのですが、4章を実装している最中でエラーが出てしまいました。よろしければ力を貸したいただきたいです。
app/views/view/group_select.html.erb <%= form_for(@review) do |f| %> レビュー対象書籍: <%= f.grouped_collection_select :book_id, @authors, :books, :name, :id, :title %> <% end %>
config/routes.rb Rails.application.routes.draw do resources :fan_comments resources :reviews resources :authors resources :users resources :books # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html get 'hello/index', to: 'hello#index' get 'hello/view' get 'hello/list ' get 'view/keyword' post 'keyword/search' get 'view/group_select' get 'view/form_tag' post 'view/create' get 'view/form_for' get 'view/field' get 'view/html5' get 'view/select' get 'view/col_select' 省略
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/04 06:40