I m new with ruby so I have query regarding index.html page. In Ruby if i want dynamic index page in public folder where data is coming dynamically then in index.html page how can i display tht. I cant do tht in html page. Is there any other way to make index page dynamic. So plz help me out to solve this problem. Thanks Anjan. -- 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 -~----------~----~----~----~------~----~------~--~---
Anjan Doshi wrote:> I m new with ruby so I have query regarding index.html page. In Ruby if > i want dynamic index page in public folder where data is coming > dynamically then in index.html page how can i display tht. I cant do tht > in html page. > > Is there any other way to make index page dynamic.You simply remove the index.html file from the public folder. Then you map a route to the empty url like: map.connect '''', :controller => ''some_controller'', :action => ''index'' -- Cheers, - Jacob Atzen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jacob Atzen wrote:> Anjan Doshi wrote: >> I m new with ruby so I have query regarding index.html page. In Ruby if >> i want dynamic index page in public folder where data is coming >> dynamically then in index.html page how can i display tht. I cant do tht >> in html page. >> >> Is there any other way to make index page dynamic. > > You simply remove the index.html file from the public folder. Then you > map a route to the empty url like: > > map.connect '''', :controller => ''some_controller'', :action => ''index'' > > -- > Cheers, > - Jacob AtzenThanks a lot it worked -- 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 -~----------~----~----~----~------~----~------~--~---