Hello All, I have created a rails application on hosrtmonster and created symbolic link of app''s public folder. Now default link is to index.html of rails-app/public folder. I want to set another page as homepage. I also set root in routes.rb file but its not working, also remove default index.html from public folder. Can anyone tell me how to add link rails-app/app/views/home/index.html.erb to index.html in /rails-app/public folder webpage? If i have created symbolic link to rails-app/../../home then its not working. .html.erb file is not working directly in browser. -- Mandeep Kaur http://mandeepsimak.wordpress.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 https://groups.google.com/groups/opt_out.
Try to delete index.html in public folder it''s just a stub суббота, 25 августа 2012 г., 20:27:13 UTC+4 пользователь Mandy написал:> > Hello All, > > I have created a rails application on hosrtmonster and created > symbolic link of app''s public folder. Now default link is to > index.html of rails-app/public folder. > I want to set another page as homepage. I also set root in routes.rb > file but its not working, also remove default index.html from public > folder. > > Can anyone tell me how to add link > rails-app/app/views/home/index.html.erb to index.html in > /rails-app/public folder webpage? > > If i have created symbolic link to rails-app/../../home then its not > working. .html.erb file is not working directly in browser. > > -- > Mandeep Kaur > http://mandeepsimak.wordpress.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@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qza8VF9twHgJ. For more options, visit https://groups.google.com/groups/opt_out.
On 25 August 2012 17:27, Mandeep Kaur <meghasimak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello All, > > I have created a rails application on hosrtmonster and created > symbolic link of app''s public folder. Now default link is to > index.html of rails-app/public folder. > I want to set another page as homepage. I also set root in routes.rb > file but its not working, also remove default index.html from public > folder. > > Can anyone tell me how to add link > rails-app/app/views/home/index.html.erb to index.html in > /rails-app/public folder webpage? > > If i have created symbolic link to rails-app/../../home then its not > working. .html.erb file is not working directly in browser.Sorry I cannot understand what you are trying to do. What URL are you trying to use? Are you trying to run a controller action from that url? Is so what controller and action? 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 https://groups.google.com/groups/opt_out.
On Sat, Aug 25, 2012 at 10:05 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: <snip>> Sorry I cannot understand what you are trying to do. > What URL are you trying to use? > Are you trying to run a controller action from that url? Is so what > controller and action?I have created a rails app on hostmonster and there to run any rails I have to create symbolic link to rails app like $ ln -s ~/APPNAME/public ~/public_html/APPNAME I also created home controller using $ rails generate controller home Then I have removed index.html from rails-app/public (default page). when I open that link then it gives folder files check this http://simak.in/blog I also set the routes.rb file for home controller but still not working. How to set route to any controller through public folder of app. Now are you getting or still have confusion. I am not able to explain my problem properly. Please try to understand and help me. Thanks in advance. -- Mandeep Kaur http://mandeepsimak.wordpress.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 https://groups.google.com/groups/opt_out.
just remove the index.html in the /public folder. On Aug 26, 2012, at 12:27 AM, Mandeep Kaur wrote:> Hello All, > > I have created a rails application on hosrtmonster and created > symbolic link of app''s public folder. Now default link is to > index.html of rails-app/public folder. > I want to set another page as homepage. I also set root in routes.rb > file but its not working, also remove default index.html from public > folder. > > Can anyone tell me how to add link > rails-app/app/views/home/index.html.erb to index.html in > /rails-app/public folder webpage? > > If i have created symbolic link to rails-app/../../home then its not > working. .html.erb file is not working directly in browser. > > -- > Mandeep Kaur > http://mandeepsimak.wordpress.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 https://groups.google.com/groups/opt_out. > >-- 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 https://groups.google.com/groups/opt_out.
On Sat, Aug 25, 2012 at 9:59 PM, Сергей Грибовский <megacod3r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try to delete index.html in public folder it''s just a stub > > суббота, 25 августа 2012 г., 20:27:13 UTC+4 пользователь Mandy написал:I have deleted index.html. Now check: http://blog.simak.in/ Its not working. What to do now ? -- Mandeep Kaur http://mandeepsimak.wordpress.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@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
I hope its not pointing to your rails application folder and its pointing to some other folder in server and there by you are getting the default page. Thank You, Uma Mahesh. On Sunday, August 26, 2012 3:47:16 PM UTC+5:30, Mandy wrote:> > On Sat, Aug 25, 2012 at 9:59 PM, Сергей Грибовский <mega...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<javascript:>> > wrote: > > Try to delete index.html in public folder it''s just a stub > > > > суббота, 25 августа 2012 г., 20:27:13 UTC+4 пользователь Mandy написал: > > I have deleted index.html. Now check: http://blog.simak.in/ > Its not working. What to do now ? > > > -- > Mandeep Kaur > http://mandeepsimak.wordpress.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@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/JiBMiLEaOq0J. For more options, visit https://groups.google.com/groups/opt_out.
On Aug 27, 2012, at 1:54 AM, uma mahesh varma Seeram wrote:> I hope its not pointing to your rails application folder and its pointing to some other folder in server and there by you are getting the default page. > > > Thank You, > Uma Mahesh. >Also, check if Apache or Nginx is set to provide a default index in folders that don''t contain one. mod_autoindex or similar... Walter> > On Sunday, August 26, 2012 3:47:16 PM UTC+5:30, Mandy wrote: > On Sat, Aug 25, 2012 at 9:59 PM, Сергей Грибовский <mega...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Try to delete index.html in public folder it''s just a stub > > > > суббота, 25 августа 2012 г., 20:27:13 UTC+4 пользователь Mandy написал: > > I have deleted index.html. Now check: http://blog.simak.in/ > Its not working. What to do now ? > > > -- > Mandeep Kaur > http://mandeepsimak.wordpress.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@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/JiBMiLEaOq0J. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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 https://groups.google.com/groups/opt_out.
On Wed, Aug 29, 2012 at 7:49 PM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> > On Aug 27, 2012, at 1:54 AM, uma mahesh varma Seeram wrote: ><snip>> > Also, check if Apache or Nginx is set to provide a default index in folders that don''t contain one. mod_autoindex or similar...I am not getting this. Means i have to remove this apache setting that automatically create default index page? -- Mandeep Kaur http://mandeepsimak.wordpress.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 https://groups.google.com/groups/opt_out.
On Aug 29, 2012, at 10:33 AM, Mandeep Kaur wrote:> On Wed, Aug 29, 2012 at 7:49 PM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: >> >> On Aug 27, 2012, at 1:54 AM, uma mahesh varma Seeram wrote: >> > <snip> >> >> Also, check if Apache or Nginx is set to provide a default index in folders that don''t contain one. mod_autoindex or similar... > > I am not getting this. Means i have to remove this apache setting that > automatically create default index page? >If you''re using Apache and Passenger, try adding this line inside the <Directory> block in the relevant httpd.conf for this application: Options -Indexes Restart Apache and see if that fixed it for you. It really only will if Options +Indexes is set at a higher level in your general Apache configuration file tree. I''m just guessing here, hope it helps. Walter -- 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 https://groups.google.com/groups/opt_out.
On Wed, Aug 29, 2012 at 8:14 PM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> > > On Aug 29, 2012, at 10:33 AM, Mandeep Kaur wrote: ><snip>>> I am not getting this. Means i have to remove this apache setting that >> automatically create default index page? >> > > If you''re using Apache and Passenger, try adding this line inside the <Directory> block in the relevant httpd.conf for this application: > > Options -Indexes > > Restart Apache and see if that fixed it for you. It really only will if Options +Indexes is set at a higher level in your general Apache configuration file tree. I''m just guessing here, hope it helps. > > WalterOk I''ll try this. Thanks. -- Mandeep Kaur http://mandeepsimak.wordpress.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 https://groups.google.com/groups/opt_out.
On Wed, Aug 29, 2012 at 8:16 PM, Mandeep Kaur <meghasimak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Aug 29, 2012 at 8:14 PM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote: >><snip>>> If you''re using Apache and Passenger, try adding this line inside the <Directory> block in the relevant httpd.conf for this application: >> >> Options -Indexes >> >> Restart Apache and see if that fixed it for you. It really only will if Options +Indexes is set at a higher level in your general Apache configuration file tree. I''m just guessing here, hope it helps. >> >> Walter >I tried this now see the result blog.simak.in. I think ruby on rails app is not working on hostmonster. -- Mandeep Kaur http://mandeepsimak.wordpress.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 https://groups.google.com/groups/opt_out.
for your first app, you should try using heroku. it it much simpler to get an app up and running than the current path you are taking. Jason On Wed, Aug 29, 2012 at 1:37 PM, Mandeep Kaur <meghasimak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Wed, Aug 29, 2012 at 8:16 PM, Mandeep Kaur <meghasimak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > On Wed, Aug 29, 2012 at 8:14 PM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> > wrote: > >> > <snip> > >> If you''re using Apache and Passenger, try adding this line inside the > <Directory> block in the relevant httpd.conf for this application: > >> > >> Options -Indexes > >> > >> Restart Apache and see if that fixed it for you. It really only will if > Options +Indexes is set at a higher level in your general Apache > configuration file tree. I''m just guessing here, hope it helps. > >> > >> Walter > > > > I tried this now see the result blog.simak.in. > I think ruby on rails app is not working on hostmonster. > > -- > Mandeep Kaur > http://mandeepsimak.wordpress.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 https://groups.google.com/groups/opt_out. > > >-- 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 https://groups.google.com/groups/opt_out.