I''m puzzling through these instructions: http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/ And I''ve gotten as far as the instructions that read ... "First, above the Rails::Initializer.run block put ..." but I don''t have any "Rails::Initializer.run" block. Am I missing something? I''m trying to get something running again that I didn''t actually build. I can''t tell whether the original author was leaving things out or what. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-May-13 08:23 UTC
Re: First, above the Rails::Initializer.run block put ...
On 13 May 2008, at 03:31, Amanda wrote:> > I''m puzzling through these instructions: > > http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/ > > And I''ve gotten as far as the instructions that read ... "First, > above the Rails::Initializer.run block put ..." but I don''t have any > "Rails::Initializer.run" block. >Then you''re probably not looking in the right file, because rails wouldn''t run without it. Fred> Am I missing something? I''m trying to get something running again that > I didn''t actually build. I can''t tell whether the original author was > leaving things out or what. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
So if ... grep -ir "Rails::Initializer" ./* turns up nothing, you think I didn''t get all the files I need? On May 13, 4:23 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 13 May 2008, at 03:31, Amanda wrote: > > > > > I''m puzzling through these instructions: > > >http://www.texperts.com/2007/12/21/using-action-web-service-with-rail... > > > And I''ve gotten as far as the instructions that read ... "First, > > above the Rails::Initializer.run block put ..." but I don''t have any > > "Rails::Initializer.run" block. > > Then you''re probably not looking in the right file, because rails > wouldn''t run without it. > > Fred > > > Am I missing something? I''m trying to get something running again that > > I didn''t actually build. I can''t tell whether the original author was > > leaving things out or what.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ignore this for now. Or don''t. I have a basic app, the output of "rails myapp" and I can see where it does have those lines: ./myapp/config/boot.rb: defined? Rails::Initializer ./myapp/config/boot.rb: Rails::Initializer.run(:set_load_path) ./myapp/config/environment.rb:Rails::Initializer.run do |config| --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
environment.rb is the file you''re looking for. This is where the global settings of your Rails app go. "class Rails::Configuration ... end" goes before the Rails::Initializer.run block. The lines starting with "config" go inside the Rails::Initializer.run block. Amanda wrote:> Ignore this for now. Or don''t. I have a basic app, the output of > "rails myapp" and I can see where it does have those lines: > > ./myapp/config/boot.rb: defined? Rails::Initializer > ./myapp/config/boot.rb: Rails::Initializer.run(:set_load_path) > ./myapp/config/environment.rb:Rails::Initializer.run do |config|--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---