Here's an interesting question that I'm not sure has an answer. I would
like a controller to be accessed by multiple URL's within Rails.
example.com/crm/users/1
example.com/admin/users/1
They should both show the same page.
This works, but is an anti-DRY solution:
scope "/crm" do
resourc
I finally figured this out. I have an action that only renders html,
but googlebot for instance asks for text format. So, it tries to find
action.text.erb which doesn't exist.
I added this to my controller and everything works now.
before_filter :force_html_requests, :only => :show
def force
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?
Thanks
--
Posted via http://www.ruby-forum.com/.
I have my app email me errors when they occur. I get this about 2-3
times a week with thousands of hits a day to the site. pages/show is a
.html.erb file that renders the partial
_strategicrelationshipacademy.html.erb essentially. Or whatever partial
it calls for. I get this on many different '
4 matches
Mail list logo