Friday, January 1, 2010

[Rails] will_paginate resulting in server 500 error...

Hello there,

On my site I have a basic search form that uses find_by_ferret which
will return users within the site and render the data that matches the
search criteria

If multiple rows are returned, the rows are rendered, and then
paginated, if more that X are returned. Sounds simple, (and worked
fine in dev)

However, In Production, I get a server(500) error: (We're sorry, but
something went wrong.

We've been notified about this issue and we'll take a look at it
shortly.)

When I look in the production.log the following is returned:

ActionView::TemplateError (undefined method `will_paginate' for
#<ActionView::Base:0xb5c6dc24>) on line #26 of app/views/buddies/
_search_form.rhtml:
23:
24: Your search results are below: <br /> <br />
25:
26: <%= will_paginate @buddies %>
27: <% end %>
28: <%= render :partial=>"result_summary" %>
29: <% end %>


although I understand the error, I dont get how it worked in dev, and
not in prod...

Any ideas?

Many, many Thanks

--

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate