Hi, I created my app on shared host in home folder, it''s called "first". OK then I following to the tutorial I runned in putty(CMD or Terminal) [~]# mv public_html public_html_bk [~]# ln -s yournewrailsapp/public public_html so now browser looks for my first/public folder, BUT the problem is that I deleted default index.html file in rails app public folder and created welcome controller + index.html.erb file under views->welcome, now when I go to www.mydomain.com I can see in browser just ordered files and folders from my public folder, it doesn''t show up my created layout, why it doesn''t show and how can I fix it to able to see my layout -- 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.
Haven''t actually done any rails in a long time but did you point your route.rb file to set your welcome controller as your root? -- 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-/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.
Ainar Abramovich wrote:> Hi, I created my app on shared host in home folder, it''s called > "first". OK then I following to the tutorial I runned in putty(CMD or > Terminal) [~]# mv public_html public_html_bk > [~]# ln -s yournewrailsapp/public public_html > > so now browser looks for my first/public folder, BUT the problem is > that I deleted default index.html file in rails app public folder and > created welcome controller + index.html.erb file under views->welcome, > now when I go to www.mydomain.com I can see in browser just ordered > files and folders from my public folder, it doesn''t show up my created > layout, why it doesn''t show and how can I fix it to able to see my > layoutYou can''t run a Rails app like that, because the Ruby interpreter won''t be invoked, so all you''ll see in the browser is your source files. What host are you using, and how do they recommend deploying your Rails applications? Best, -- Marnen Laibow-koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/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.
create a symlink to point to the public folder and enable the shebang. different hosting company has different configuration. can you tell me which hosting company you had? all you have to make is to read and understand .htaccess? when you create a domain you must point to the public folder as running document root. On Thu, Aug 26, 2010 at 9:04 PM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Ainar Abramovich wrote: > > Hi, I created my app on shared host in home folder, it''s called > > "first". OK then I following to the tutorial I runned in putty(CMD or > > Terminal) [~]# mv public_html public_html_bk > > [~]# ln -s yournewrailsapp/public public_html > > > > so now browser looks for my first/public folder, BUT the problem is > > that I deleted default index.html file in rails app public folder and > > created welcome controller + index.html.erb file under views->welcome, > > now when I go to www.mydomain.com I can see in browser just ordered > > files and folders from my public folder, it doesn''t show up my created > > layout, why it doesn''t show and how can I fix it to able to see my > > layout > > You can''t run a Rails app like that, because the Ruby interpreter won''t > be invoked, so all you''ll see in the browser is your source files. What > host are you using, and how do they recommend deploying your Rails > applications? > > Best, > -- > Marnen Laibow-koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > 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-/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.