On Tue, Nov 27, 2012 at 7:54 AM, Rick Cockerham <li...@ruby-forum.com>wrote:

> Excellent suggestion.  From the page view I see this agent:
>
> Mozilla/5.0 (compatible; oBot/2.3.1; +http://filterdb.iss.net/crawler/)
>
> So, how do I setup my app to only accept html requests for those routes?
> Or, just not fail when it wants text?
>

try passing a formats option to render.

render partial: 'foo', formats: [:html]


>
> Thanks
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to