I''m working on a straight forward rails app. One thing that has me puzzled is the generated hyperlinks in rails, <%= link_to ''Home'', :controller => ''my_controller'', :action => ''index'' %> generates a hyperlink like: <a href="/my_app/public/my_app">Home</a> when I''d expect: <a href="/my_app">Home</a> I''m a novice, is there something in the .htaccess I need to change or in the routes.rb file, so I get a hyperlink in the format of the latter. Thanks T -- 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 -~----------~----~----~----~------~----~------~--~---
Is that happening when deploying? On Aug 23, 9:55 pm, Tom Eustace <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m working on a straight forward rails app. One thing that has me > puzzled is the generated hyperlinks in rails, > > <%= link_to ''Home'', :controller => ''my_controller'', :action => ''index'' > %> > > generates a hyperlink like: > > <a href="/my_app/public/my_app">Home</a> > > when I''d expect: > > <a href="/my_app">Home</a> > > I''m a novice, is there something in the .htaccess I need to change or in > the routes.rb file, so I get a hyperlink in the format of the latter. > > Thanks > T > -- > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrius Chamentauskas wrote:> Is that happening when deploying? > > On Aug 23, 9:55�pm, Tom Eustace <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Yes, on my local machine this does not happen, but when deployed to my host the problem appears. -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---