Ruby on Rails
Monday, March 5, 2018
HI,
-- i have a couple of 'seo' routes, which are not responding well
eg:
match 'whatever/in/:seoterm' , as: 'seo_whatever _in' , :to => 'foos#index', via: [:get] , :mode=>{:x=>' whatever ',:y=>1}
respond_to do |format|
format.html {
}
format.js {
}
format.json {
render :json => JSON::parse({:list => @.... }
}
# format.xml {
#render xml: @person.to_xml(include: @company)
# render xml: @commutes.to_xml #(include: @company)
# }
end
--> the only thing i see is that the brwoser comes as */* , which shouldnt be the problem:
Started GET "/whatever/in/St.%20Peters" for 10.0.1.37 at 2018-03-05 12:09:39 -0500
Processing by FooController#index as
any ideas?
thx
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMftMvUp2tCHZJm1vQwEv09G10wHoX24DVxxo8gntEQoHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment