venkata reddy
2010-Nov-16 12:36 UTC
how to insert static pages and how to develop a website using ROR?
Hi all.......... I configured ROR successfully...and i practiced 2-3 sample applications Using ROR like creating a video_jukebox and displaying a list of tickets etc.. but now i want to build a real time project using ROR.That is a site for a hospital and which contains almost all pages. So how to insert those static pages into the site using ROR...and from where to start? Pls help....... -- 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.
mahesh s
2010-Nov-16 12:46 UTC
Re: how to insert static pages and how to develop a website using ROR?
Hi create apprpriate controller and action of your static page like if your have controller called home_conntroller the action for index like controller ->home action ->index so in rails you will get a view foor each action in index file you just paste the welcome page html file on that if ur well in layout u create layout for that or you can use application layout there you can separte your common things like all the pages, the header and footer will be same so paste those things there then you paste remaing things in their own page other wise you have copy and paste the header and footer in each view file. On Tue, Nov 16, 2010 at 6:06 PM, venkata reddy <venkatareddy.cs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> Hi all.......... > I configured ROR successfully...and i practiced 2-3 sample > applications Using ROR like creating a video_jukebox and displaying a > list of tickets etc.. > but now i want to build a real time project using ROR.That is a site > for a hospital and which contains almost all pages. > So how to insert those static pages into the site using ROR...and from > where to start? > Pls help....... > > -- > 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.
venkata reddy
2010-Nov-16 13:37 UTC
Re: how to insert static pages and how to develop a website using ROR?
hi mahesh, Thanks for the quick response...... i tried what u told but the images are not getting displayed.. i seperately designed a home page using html and i pasted the code in the home\index.html (i copied the image to home foleder as well)but the text only itself only displaing and the images are not.. and one more doubt, if we developed this home page using photoshop how can i insert that or if the home page is designed using some asp like that then wat to do? On Nov 16, 5:46 pm, mahesh s <mahesh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > create apprpriate controller and action of your static page > > like if your have controller called home_conntroller the action for index > like controller ->home action ->index > so in rails you will get a view foor each action > in index file you just paste the welcome page html file on that > > if ur well in layout u create layout for that or you can use application > layout > there you can separte your common things like all the pages, the header and > footer > will be same so paste those things there > > then you paste remaing things in their own page other wise you have copy > and paste the header and footer in each view file. > > On Tue, Nov 16, 2010 at 6:06 PM, venkata reddy <venkatareddy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > > > > > > > > > Hi all.......... > > I configured ROR successfully...and i practiced 2-3 sample > > applications Using ROR like creating a video_jukebox and displaying a > > list of tickets etc.. > > but now i want to build a real time project using ROR.That is a site > > for a hospital and which contains almost all pages. > > So how to insert those static pages into the site using ROR...and from > > where to start? > > Pls help....... > > > -- > > 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%2Bunsubscrib e@googlegroups.com> > > . > > 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
mahesh s
2010-Nov-16 16:53 UTC
Re: Re: how to insert static pages and how to develop a website using ROR?
Hi venkat I Hope u included all the css and images In Rails app we have a folder called public, Inside public u can see the folders 1)images 2)javascripts 3)stylesheets there u have to paste all the images and css & js in their respective folder. then u have to give a image path *<img src="/images/ajax-loader.gif" >* u have to give like this do u have firebug tool in your firefox, if u have that u can easily inspect the element then u can modify the code there u can see the temp output there. On Tue, Nov 16, 2010 at 7:07 PM, venkata reddy <venkatareddy.cs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> hi mahesh, > Thanks for the quick response...... i tried what u told > but the images are not getting displayed.. > i seperately designed a home page using html and i pasted the code in > the home\index.html (i copied the image to home foleder as well)but > the text only itself only displaing and the images are not.. > and one more doubt, if we developed this home page using photoshop how > can i insert that or if the home page is designed using some asp like > that then wat to do? > > > On Nov 16, 5:46 pm, mahesh s <mahesh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi > > create apprpriate controller and action of your static page > > > > like if your have controller called home_conntroller the action for index > > like controller ->home action ->index > > so in rails you will get a view foor each action > > in index file you just paste the welcome page html file on that > > > > if ur well in layout u create layout for that or you can use application > > layout > > there you can separte your common things like all the pages, the header > and > > footer > > will be same so paste those things there > > > > then you paste remaing things in their own page other wise you have copy > > and paste the header and footer in each view file. > > > > On Tue, Nov 16, 2010 at 6:06 PM, venkata reddy < > venkatareddy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > > > > > > > > > > > > > > > > > Hi all.......... > > > I configured ROR successfully...and i practiced 2-3 sample > > > applications Using ROR like creating a video_jukebox and displaying a > > > list of tickets etc.. > > > but now i want to build a real time project using ROR.That is a site > > > for a hospital and which contains almost all pages. > > > So how to insert those static pages into the site using ROR...and from > > > where to start? > > > Pls help....... > > > > > -- > > > 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<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org><rubyonrails-talk%2Bunsubscrib > e@googlegroups.com> > > > . > > > 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-/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.
Gogov
2010-Nov-17 09:53 UTC
Re: how to insert static pages and how to develop a website using ROR?
If you''re new to this stuff, spend some time with http://railstutorial.org/ I invested 2 days in going over this tutorial and it''s very useful for a newcomer. Here''s useful examples about static pages: http://railstutorial.org/chapters/static-pages#top Browse around the site to find even more answers. Martin On Nov 16, 6:53 pm, mahesh s <mahesh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi venkat > > I Hope u included all the css and images > > In Rails app we have a folder called public, Inside public u can see the > folders 1)images 2)javascripts 3)stylesheets there u have to paste all the > images and css & js in their respective folder. > > then u have to give a image path *<img src="/images/ajax-loader.gif" >* u > have to give like this > > do u have firebug tool in your firefox, if u have that u can easily inspect > the element then > u can modify the code there u can see the temp output there. > > On Tue, Nov 16, 2010 at 7:07 PM, venkata reddy <venkatareddy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > > > > > > > > > hi mahesh, > > Thanks for the quick response...... i tried what u told > > but the images are not getting displayed.. > > i seperately designed a home page using html and i pasted the code in > > the home\index.html (i copied the image to home foleder as well)but > > the text only itself only displaing and the images are not.. > > and one more doubt, if we developed this home page using photoshop how > > can i insert that or if the home page is designed using some asp like > > that then wat to do? > > > On Nov 16, 5:46 pm, mahesh s <mahesh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi > > > create apprpriate controller and action of your static page > > > > like if your have controller called home_conntroller the action for index > > > like controller ->home action ->index > > > so in rails you will get a view foor each action > > > in index file you just paste the welcome page html file on that > > > > if ur well in layout u create layout for that or you can use application > > > layout > > > there you can separte your common things like all the pages, the header > > and > > > footer > > > will be same so paste those things there > > > > then you paste remaing things in their own page other wise you have copy > > > and paste the header and footer in each view file. > > > > On Tue, Nov 16, 2010 at 6:06 PM, venkata reddy < > > venkatareddy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > > > > > Hi all.......... > > > > I configured ROR successfully...and i practiced 2-3 sample > > > > applications Using ROR like creating a video_jukebox and displaying a > > > > list of tickets etc.. > > > > but now i want to build a real time project using ROR.That is a site > > > > for a hospital and which contains almost all pages. > > > > So how to insert those static pages into the site using ROR...and from > > > > where to start? > > > > Pls help....... > > > > > -- > > > > 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@googlegroups.com > > . > > > > To unsubscribe from this group, send email to > > > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com><rubyonrails-talk%2Bunsubscrib > > e@googlegroups.com> > > > > . > > > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.