greasyfork-org / greasyfork

An online repository of user scripts.
https://greasyfork.org
GNU General Public License v3.0
1.47k stars 441 forks source link

Error on lost password screen #117

Closed JasonBarnabe closed 10 years ago

JasonBarnabe commented 10 years ago

https://greasyfork.org/users/password/new

F, [2014-05-25T03:50:07.176530 #9610] FATAL -- : 
ActionView::Template::Error (No route matches {:action=>"search", :controller=>"devise/scripts"}):
    14:                         <h1><%=link_to_unless_current 'Greasy Fork', root_path%></h1>
    15:                         <p class="subtitle"><a href="https://greasyfork.org/forum/discussion/157/greasy-fork-needs-a-logo">A nice logo would look good here.</a></p>
    16:                 </div>
    17:                 <form id="script-search" action="<%=url_for(:controller => :scripts, :action => :search)%>">
    18:                         <input name="q" placeholder="Search" value="<%=params[:q]%>" size="10"><input type="submit" value="→">
    19:                 </form>
    20:                 <nav>
  app/views/layouts/application.html.erb:17:in `_app_views_layouts_application_html_erb___1274760219504826355_248568560'
JasonBarnabe commented 10 years ago

Devise namespaces its controller, so :controller => :scripts was looking for something in Devise. Switched to a named route.