I have the following HTML and .erb code:
<button type="button" class="btn btn-default btn-lg"><%= link_to "Customer Information", customer_information_path %></button>
The link renders fine, but does nothing when clicked.
Here is my routes file:
devise_scope :user do
root :to => "devise/sessions#new"
end
get "hub" => "pages#hub"
get "customer_information" => "pages#customer_information"
And here is my pages controller:
class PagesController < ApplicationController
def hub
end
def customer_information
end
end
The code does not throw any error.
Thoughts?
app/views/pages/customer_information.html.erb?anchor tag