E-mail forms posts but there is not matching route #557

Closed
barnabyalter opened this Issue May 6, 2013 · 2 comments

3 participants

@barnabyalter

I'm seeing an issue with the email routes.

192bf07

As of the above commit there is only a route specified for email_catalog via GET but the email form in bookmarks posts to catalog/email. I'm getting a no routes defined error in my local app and it looks like there is a 500 at the same function on the blacklight demo. Not sure that is the same issue in the demo, but I'd guess.

I injected a local route into my app

match 'catalog/email', :as => "email_catalog", :via => [:post, :get] 

which was a quick fix for me.

@jcoyne
Project Blacklight member
@cbeer
Project Blacklight member

I'm not sure, but I suspect we overload that method to show the email form and to send the email form.

@jcoyne jcoyne closed this in 2eb87e7 May 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment