Adam Maddox
2007-Feb-17 14:27 UTC
Template is missing ''show.rjs.rhtml'' error in safari only?
I was able to solve this but want to understand why this fix works. Solution: Remove the format.js line from the respond_to block the error i get when navigating to: /music;accept Template is missing Missing template script/../config/../app/views/music;accept.rjs.rhtml Accept is an aspect of the music controller eg in routes.rb map.resources :music, :collection => {:accept => :get} music controller: def accept #load collections etc respond_to do |format| #format.js had to comment out this line to get rid of the error why!!?? format.html #accept.rhtml end end There is an accept.rhtml template and no rjs template at this stage. It would be great to get some comments suggesting why this occurs in safari. Oh, i have tried installing the ''browse_filters'' plugin. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---