[typo] Search results was Re: Testing LiveController?
bradley taylor
bradley at fluxura.com
Mon Sep 26 09:25:23 EDT 2005
Works great. Thanks.
My next concern for adding searchable pages is that the search
results page (not ajax) displays the entire article for found posts
and how to handle displaying pages. Does rendering the entire
body_html make sense for a page?
For rendering pages on the search result page, I see a couple of
options:
1. Follow the existing pattern and render the entire page body_html.
2. Summarize the page using extract for keywords in the body and
truncate for keywords in the title. Add some processing to the view
to determine which keywords were found in what part of the page
(title and occurrence in body_html). This approach would yield a
result formated similar to Google.
I've implemented #1 and it looks weird. If I implement #2, should I
change the display of found articles to render the same way for
consistency?
Opinions or other ideas?
Thanks,
Bradley Taylor
(wrecked)
On Sep 26, 2005, at 2:43 AM, Patrick Lenz wrote:
> On Sep 26, 2005, at 2:10 AM, bradley taylor wrote:
>
>
>> In trying to write a functional test for LiveController, I am having
>> problems with the controller's use of "request.raw_post". The post
>> simulation process requires a hash of parameters and LiveController
>> doesn't use parameters.
>>
>
> You can pre-populate request.raw_post in your test. More here:
> http://poocs.net/articles/2005/07/12/rails-tip-functional-testing-
> ajax-calls
>
> --
> Patrick Lenz (scoop)
>
> http://poocs.net/ # Personal Weblog
> http://limited-overload.de/ # Web application development
> http://freshmeat.net/ # Free software archive
> http://topmedia.de/ # IT Storage Solutions
>
>
> _______________________________________________
> Typo-list mailing list
> Typo-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
>
More information about the Typo-list
mailing list