I''ve got an app that starts up with: map.root :controller => "csvs", :action => ''startup'' The csvs_controller.rb is posted on http://www.pastie.org/340100 The startup routine checks the RAILS_ROOT + "/public/data/csv" directory for any files. Presently, the directory has none. Consequently, "aHashes", an array of hashes in line #112 should be empty. That is indeed the case, as evidenced by the logger msg from line 113 appearing in the Command Window running Mongrel. Therefore I expect lines 114 & 115 to be honored, i.e. nothing to rendered and the index method to be invoked. Instead, I get: Missing template csvs/startup.erb in view path K:/_Projects/Ruby/ _Rails_Apps/PayrollApp/app/views: Why is the app attempting to render something I don''t expect ever to happen? (If I do find files, I''ll insert their attributes in the database and redirect to index. Where am I going wrong? Thanks in advance, Richard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
BTW, I included the routes.rb on that Pastie file. -- R On Dec 16, 12:01 am, RichardOnRails <RichardDummyMailbox58...-FtJgd9dCuO3JTKoYRCtP1UEOCMrvLtNR@public.gmane.org> wrote:> I''ve got an app that starts up with: > map.root :controller => "csvs", :action => ''startup'' > > The csvs_controller.rb is posted onhttp://www.pastie.org/340100 > > The startup routine checks the RAILS_ROOT + "/public/data/csv" > directory for any files. Presently, the directory has none. > Consequently, "aHashes", an array of hashes in line #112 should be > empty. > > That is indeed the case, as evidenced by the logger msg from line 113 > appearing in the Command Window running Mongrel. > > Therefore I expect lines 114 & 115 to be honored, i.e. nothing to > rendered and the index method to be invoked. > > Instead, I get: > Missing template csvs/startup.erb in view path K:/_Projects/Ruby/ > _Rails_Apps/PayrollApp/app/views: > > Why is the app attempting to render something I don''t expect ever to > happen? (If I do find files, I''ll insert their attributes in the > database and redirect to index. > > Where am I going wrong? > > Thanks in advance, > Richard--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 16, 6:03 am, RichardOnRails <RichardDummyMailbox58...-FtJgd9dCuO3JTKoYRCtP1UEOCMrvLtNR@public.gmane.org> wrote:> > Why is the app attempting to render something I don''t expect ever to > > happen? (If I do find files, I''ll insert their attributes in the > > database and redirect to index.You typoed :notihing Fred> > > Where am I going wrong? > > > Thanks in advance, > > Richard--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Fred, As you''ve done many times, you pulled my fat out of the fire. Once again, thank you very much. Best wishes, Richarrd On Dec 16, 4:16 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Dec 16, 6:03 am, RichardOnRails > > <RichardDummyMailbox58...-FtJgd9dCuO3JTKoYRCtP1UEOCMrvLtNR@public.gmane.org> wrote: > > > Why is the app attempting to render something I don''t expect ever to > > > happen? (If I do find files, I''ll insert their attributes in the > > > database and redirect to index. > > You typoed :notihing > > Fred > > > > > > Where am I going wrong? > > > > Thanks in advance, > > > Richard--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---