Ruby on Rails
Thursday, February 8, 2018
Hi, I'm starting my first ruby on rails app featuring blacklight with solr. I can install and loginto the solr blacklight server on port 8983, but I can't seem to access localhost:3000. It appears to be a routing issue. When I try to access localhost:3000 here is what I get..
Routing Error
No route matches [GET] "/catalog"
Rails.root: /home/*/railsfiles/search_appI've tried adding routes to no avail. Here is the contents of my routes.rb file as it came installed by default with your project setup plus my addition of the get: catalog route.
Can you help?
Rails.application.routes.draw do
mount Blacklight::Engine => '/'
root to: "catalog#index"
devise_for :users
concern :exportable, Blacklight::Routes::Exportable.new
resources :solr_documents, only: [:show], path: '/catalog', controller: 'cata$
concerns :exportable
end
resource :static_pages do
collection do
get :catalog
end
end
resources :bookmarks do
concerns :exportable
collection do
delete 'clear'
end
end
# For details on the DSL available within this file, see http://guides.rubyon$
end
Dane
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/337d4666-d7f3-4772-8b0d-9f6a4a015c37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment