This file contains 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 |
This file contains 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 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 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 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 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 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 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 "About Us", about_path, class: "#{cp(about_path)} link" %></li> |
This file contains 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
<% @blogs.each do |blog| %> | |
<div class="index_image"> | |
<%= link_to image_tag("blog.image.thumb.to_s"), blog %> | |
</div> | |
<%end%> |
This file contains 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
text = "bIg mouse" | |
redacted = "big" | |
words = text.split(" ") | |
words.each do |word| | |
if word != redacted | |
print word + " " |
OlderNewer