Hi all, I have bought a space on BlueHost to host my RoR project but I couldn''t find solution to configure to call my controller by just typing www.whollycity.com/mycontroller. It would be a very thankful to whom who can help me to do this. Regards, Sok. mycontroller_controller.rb, I just do like this: class MycontrollerController < ApplicationController def index render :text=>"Hello to My RoR" end end -- 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 -~----------~----~----~----~------~----~------~--~---
go to routes.rb file in config directory and add something like map.connect '':controller/:action/:id'', :controller => ''mycontroller'' before this line map.connect '':controller/:action/:id'' also rename the index.html file in your public folder to something else, like index1.html and then restart your server this should work On Nov 22, 2:24 am, Sok Chuob <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi all, > I have bought a space on BlueHost to host my RoR project but I couldn''t > find solution to configure to call my controller by just typingwww.whollycity.com/mycontroller. > It would be a very thankful to whom who can help me to do this. > Regards, > > Sok. > > mycontroller_controller.rb, I just do like this: > class MycontrollerController < ApplicationController > def index > render :text=>"Hello to My RoR" > end > end > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
nas wrote:> go to routes.rb file in config directory and add something like >>>>map.connect '':controller/:action/:id'', :controller => ''mycontroller'' > before this line > map.connect '':controller/:action/:id''Shouldn''t that be: map.connect '''', :controller => ''mycontroller'' -- 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 -~----------~----~----~----~------~----~------~--~---
Opps my mistake I thought he was trying to access the site from / -- 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 -~----------~----~----~----~------~----~------~--~---