daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Mar 15th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <% @students.each do |student| %>
  2. .
  3. .
  4.     <td><%= link_to 'Show', student %></td>
  5.     <td><%= link_to 'Edit', edit_student_path(student) %></td>
  6.     <td><%= link_to 'Select Subjects', select_path(student) %></td>  # error occurs here
  7.    
  8. def select
  9.   .
  10.   .
  11. end
  12.    
  13. resources :notes
  14.  
  15.   resources :assignments
  16.  
  17.   resources :subjects do
  18.     resources :assignments, :only => [:create, :index, :new]
  19.   end
  20.  
  21.   resources :students
  22.  
  23.   resources :resources
  24.  
  25.   match "students/:id/select" => "students#select", :as => :select
  26.  
  27.   root :to => 'students#index'
  28.  
  29. end
  30.    
  31. GET    /students/:id/select(.:format)                  students/:id#select
  32.                  notes GET    /notes(.:format)                                notes#index
  33.                        POST   /notes(.:format)                                notes#create
  34.               new_note GET    /notes/new(.:format)                            notes#new
  35.              edit_note GET    /notes/:id/edit(.:format)                       notes#edit
  36.                   note GET    /notes/:id(.:format)                            notes#show
  37.                        PUT    /notes/:id(.:format)                            notes#update
  38.                        DELETE /notes/:id(.:format)                            notes#destroy
  39.            assignments GET    /assignments(.:format)                          assignments#index
  40.                        POST   /assignments(.:format)                          assignments#create
  41.         new_assignment GET    /assignments/new(.:format)                      assignments#new
  42.        edit_assignment GET    /assignments/:id/edit(.:format)                 assignments#edit
  43.             assignment GET    /assignments/:id(.:format)                      assignments#show
  44.                        PUT    /assignments/:id(.:format)                      assignments#update
  45.                        DELETE /assignments/:id(.:format)                      assignments#destroy
  46.    subject_assignments GET    /subjects/:subject_id/assignments(.:format)     assignments#index
  47.                        POST   /subjects/:subject_id/assignments(.:format)     assignments#create
  48. new_subject_assignment GET    /subjects/:subject_id/assignments/new(.:format) assignments#new
  49.               subjects GET    /subjects(.:format)                             subjects#index
  50.                        POST   /subjects(.:format)                             subjects#create
  51.            new_subject GET    /subjects/new(.:format)                         subjects#new
  52.           edit_subject GET    /subjects/:id/edit(.:format)                    subjects#edit
  53.                subject GET    /subjects/:id(.:format)                         subjects#show
  54.                        PUT    /subjects/:id(.:format)                         subjects#update
  55.                        DELETE /subjects/:id(.:format)                         subjects#destroy
  56.               students GET    /students(.:format)                             students#index
  57.                        POST   /students(.:format)                             students#create
  58.            new_student GET    /students/new(.:format)                         students#new
  59.           edit_student GET    /students/:id/edit(.:format)                    students#edit
  60.                student GET    /students/:id(.:format)                         students#show
  61.                        PUT    /students/:id(.:format)                         students#update
  62.                        DELETE /students/:id(.:format)                         students#destroy
  63.              resources GET    /resources(.:format)                            resources#index
  64.                        POST   /resources(.:format)                            resources#create
  65.           new_resource GET    /resources/new(.:format)                        resources#new
  66.          edit_resource GET    /resources/:id/edit(.:format)                   resources#edit
  67.               resource GET    /resources/:id(.:format)                        resources#show
  68.                        PUT    /resources/:id(.:format)                        resources#update
  69.                        DELETE /resources/:id(.:format)                        resources#destroy
  70.                 select        /students/:id/select(.:format)                  students#select
  71.                   root        /                                               students#index
  72.    
  73. resources :students do
  74.   member do
  75.     get 'select'
  76.   end
  77. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top