Hi! I deployed my app in my shared hosting. If I open dispatch.fcgi, i get this error: Routing Error No route matches "/public/dispatch.fcgi" with {:method=>:get} Before this app works fine in localhost. Whats wrong? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Aug 20, 2:23 pm, Adam <orb1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi! > I deployed my app in my shared hosting. If I open dispatch.fcgi, i get > this error: > > Routing Error > > No route matches "/public/dispatch.fcgi" with {:method=>:get} > Before this app works fine in localhost. Whats wrong?How is the app hosted? If my memory is correct the fcgi dispatch stuff was removed from recent versions of rails Fred -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Bluehost On aug. 20, 16:58, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Aug 20, 2:23 pm, Adam <orb1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi! > > I deployed my app in my shared hosting. If I open dispatch.fcgi, i get > > this error: > > > Routing Error > > > No route matches "/public/dispatch.fcgi" with {:method=>:get} > > Before this app works fine in localhost. Whats wrong? > > How is the app hosted? If my memory is correct the fcgi dispatch stuff > was removed from recent versions of rails > > Fred-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
I can generate dispatch with rake rails:update:generate_dispatchers command -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Am working my way thru Ruby on Rails Tutorial: Learn Rails by Example and am on this page: http://railstutorial.org/chapters/static-pages#top Am getting problems when I create an HTML page in the public directory which is called public/hello.html and should appear as in Figure 3.3. My problem is that when I try to create the page and make it appear at http://localhost:3000/hello.html I don''t see the rendered page. Instead, I get an error which says "Routing error No route matches "/ hello.html" I have not made any changes to the routing; I thought that Rails was supposed to be smart enough to find "hello.html" because it''s in the same directory as the "public/index.html" page and the name of the page is "hello.html"? Can you please explain? Paul Denlinger -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 8 September 2010 10:01, pauld <paul.denlinger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Am working my way thru Ruby on Rails Tutorial: Learn Rails by Example > and am on this page: > > http://railstutorial.org/chapters/static-pages#top > > Am getting problems when I create an HTML page in the public directory > which is called public/hello.html and should appear as in Figure 3.3. > > My problem is that when I try to create the page and make it appear at > http://localhost:3000/hello.html I don''t see the rendered page. > Instead, I get an error which says "Routing error No route matches "/ > hello.html" > > I have not made any changes to the routing; I thought that Rails was > supposed to be smart enough to find "hello.html" because it''s in the > same directory as the "public/index.html" page and the name of the > page is "hello.html"?Could you just triple check the file name in public and in the url you are typing. I believe the webserver looks in public first and only goes on to look at routing if it cannot find it there. Does it work if you ask for index.html? Is so I suspect a simple error somewhere. Perhaps you have a space on the end of the filename for example. You could try renaming the file to what you think it already is. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
if the page is static is has to be in the public folder and rails does not interacts with it , its served by the webserver (webrick ) if its a static page but you are testing how tails work or is dinamic and you put it in a app/views/ folder you could have a controller for it, then rails works like this in your config directory there is a file called routes.rb , in it are the definidtions of how rails reads the url string, there should be two that say map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' this means that rails will interpret the url string in that sequence, it will look for a controller after the http:localhost:3000/ with a matching name to the one in that position in the url string then it will look for a template with the name in tha position. so try commenting those 2 lines in the routes.rb file and see if you get the hello.html file On Wed, Sep 8, 2010 at 8:18 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 8 September 2010 10:01, pauld <paul.denlinger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Am working my way thru Ruby on Rails Tutorial: Learn Rails by Example > > and am on this page: > > > > http://railstutorial.org/chapters/static-pages#top > > > > Am getting problems when I create an HTML page in the public directory > > which is called public/hello.html and should appear as in Figure 3.3. > > > > My problem is that when I try to create the page and make it appear at > > http://localhost:3000/hello.html I don''t see the rendered page. > > Instead, I get an error which says "Routing error No route matches "/ > > hello.html" > > > > I have not made any changes to the routing; I thought that Rails was > > supposed to be smart enough to find "hello.html" because it''s in the > > same directory as the "public/index.html" page and the name of the > > page is "hello.html"? > > Could you just triple check the file name in public and in the url you > are typing. I believe the webserver looks in public first and only > goes on to look at routing if it cannot find it there. Does it work > if you ask for index.html? Is so I suspect a simple error somewhere. > Perhaps you have a space on the end of the filename for example. You > could try renaming the file to what you think it already is. > > Colin > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.