hi how can google index rhtml files and links with in, since you dont have them in public directory? thank you serz -- 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 -~----------~----~----~----~------~----~------~--~---
It won''t index the .rhtml files, those are just views. It will however index the results of those rhtml files based on your controller actions. For example: Your rhtml is: app/views/blog/index.rhtml Which typically would match to the following URL (that google will see) http://yoursite.com/blog/index This would be in your controller: app/controllers/blog_controller.rb Google sees the "output" of the rhtml via that url. I know it''s confusing at first when you come from a non-MVC style programming environment, but it doesn''t take too long to pick it up. A great book is "Agile Web Development With Rails" which explains all of this and more and is a great beginners guide. It helped me tremendously when I was first learning. Cheers, John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Forgive my ignorance in this arena, but if the only public interface is dispatch.[cgi|fcgi|rb] is Google (and other SE''s) able to see only the generated http file output (in html format)? So if they were to scan www.domain.com, they would be triggering the dispatch.cgi action (through rails) which generates html output, which then gets scanned by the SE ? I always had it in my head that Google scans actual filenames, but as I write this, I realize that can''t be the case, and that it is important to have the layout file setup with proper meta-tags and title names (among all the other SEO tips). Thanks for talking me through this guys :) No real reason to respond, unless I''m way off base, or there''s extra detail that I''ve missed. Thanks Matt On Tue, 2006-12-12 at 19:35 +0000, Johnpg wrote:> blog_controller.rb--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
matt wrote:> Forgive my ignorance in this arena, but if the only public interface is > dispatch.[cgi|fcgi|rb] is Google (and other SE''s) able to see only the > generated http file output (in html format)? > > So if they were to scan www.domain.com, they would be triggering the > dispatch.cgi action (through rails) which generates html output, which > then gets scanned by the SE ? > > I always had it in my head that Google scans actual filenames, but as I > write this, I realize that can''t be the case, and that it is important > to have the layout file setup with proper meta-tags and title names > (among all the other SEO tips). > > Thanks for talking me through this guys :) No real reason to respond, > unless I''m way off base, or there''s extra detail that I''ve missed. > > Thanks > > Mattgoogle sees the final output. Do this: Start up a rails app and navigate to any of the pages in that app. Go to View->Source. That is what google will see. Plain old HTML. Dont worry about the fcgi, cgi, rhtml extensions, they get translated to plain HTML in the end. --jake -- 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 -~----------~----~----~----~------~----~------~--~---