Quoting jeff_wigal <j...@referee-assistant.com>: > We're putting together a searchable online help site in Rails, and I'm > using FastRI to full-text index some existing Rails view pages to do > it. >
As you have found, trying to fake a controller, request, etc. is a lot of work. One possibilty is to just throw the necessary methods into some applicable controller and call them as normal GET request: def render_anywhere return unless local_request? # DB access and/or instance variable assignment... page = render_to_string :action => ... OR :template => ... FastRI.whatever(page) end This only is safe if there are no untrusted users on the server host. HTH, Jeffrey
-- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.