I have just added a new method to a controller, and though all the pre-existing methods are working as expected the new ones do not. I get the following error: Missing template script/../config/../app/views/repository/new_method.rhtml The path given above is correct relative to the application''s base directory (not the public_html). The view is present in the app/views/repository directory and has the correct name, suffix and content. Even stranger is that if I remove views relating to the working methods then they still keep working... The problem seems to be unrelated to whether I use the full url or the ones mapped in config/routes.rb, which has such lines as: map.connect ''/new_method'', :controller => ''repository'', :action => ''new_method'' This problem has appeared when developing with WEBrick. Can anyone suggest what the cause might be? -- 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 -~----------~----~----~----~------~----~------~--~---
are you working in development mode? rather than production mode alternatively, have you tried restarting the WEBrick? /ak Milo Thurston schrieb:> I have just added a new method to a controller, and though all the > pre-existing methods are working as expected the new ones do not. I get > the following error: > > Missing template > script/../config/../app/views/repository/new_method.rhtml > > The path given above is correct relative to the application''s base > directory (not the public_html). The view is present in the > app/views/repository directory and has the correct name, suffix and > content. Even stranger is that if I remove views relating to the working > methods then they still keep working... > The problem seems to be unrelated to whether I use the full url or the > ones mapped in config/routes.rb, which has such lines as: > > map.connect ''/new_method'', :controller => ''repository'', :action => > ''new_method'' > > This problem has appeared when developing with WEBrick. Can anyone > suggest what the cause might be? >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Andy Koch wrote:> are you working in development mode? rather than production modeI''ve been running it in development mode.> alternatively, have you tried restarting the WEBrick?I''ve re-started it a few times and it does not seem to have made any difference, which is very odd. -- 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 -~----------~----~----~----~------~----~------~--~---
Finally fixed it. I never did find the cause, but upgrading Rails and components to 1.2.1 got it working again. -- 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 -~----------~----~----~----~------~----~------~--~---