Skip to content
Browse files

defaulting the page param to '1' if it's not specified so we don't ge…

…t a WillPaginate::InvalidPage exception thrown upon submitting search form
  • Loading branch information...
1 parent 8cc777a commit 76cd04dc61b7025b97e62b80cdc090596b459cb4 @ryanb committed May 4, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 views/logged_exceptions/index.rhtml
View
2 views/logged_exceptions/index.rhtml
@@ -59,7 +59,7 @@
<%= hidden_field_tag :exception_names_filter %>
<%= hidden_field_tag :date_ranges_filter %>
<%= hidden_field_tag :controller_actions_filter %>
- <%= hidden_field_tag :page, params[:page] %>
+ <%= hidden_field_tag :page, (params[:page] || 1) %>
</div>
</form>
</div>

0 comments on commit 76cd04d

Please sign in to comment.
Something went wrong with that request. Please try again.