This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= link_to "Get involved", involves_path, class: "#{cp(involves_path,new_volunteer_path)} link" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ApplicationHelper | |
| def cp(*path) | |
| "current" if current_page?(path) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <li> <%= link_to "Get involved", involves_path, class: "#{cp(involves_path, new_volunteer_path)} link" %></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <li> <%= link_to "Get involved", involves_path, class: "#{cp(involves_path, new_volunteer_path)} link" %></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArgumentError | |
| missing :controller | |
| Rails.root: /Users/Mike/rails_projects/digsite | |
| Application Trace | Framework Trace | Full Trace | |
| config/routes.rb:6:in `block in <top (required)>' | |
| config/routes.rb:1:in `<top (required)>' | |
| This error occurred while loading the following files: | |
| /Users/Mike/rails_projects/digsite/config/routes.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Digsite::Application.routes.draw do | |
| resources :line_items | |
| resources :carts | |
| POST "donate/index" | |
| get "about/index" | |
| get "home/index" | |
| resources :teams | |
| resources :volunteers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NoMethodError | |
| undefined method `POST' for #<ActionDispatch::Routing::Mapper:0x00000102b73ec0> | |
| Rails.root: /Users/Mike/rails_projects/digsite | |
| Application Trace | Framework Trace | Full Trace | |
| config/routes.rb:6:in `block in <top (required)>' | |
| config/routes.rb:1:in `<top (required)>' | |
| This error occurred while loading the following files: | |
| /Users/Mike/rails_projects/digsite/config/routes.rb |
NewerOlder