On 11/23/2010 10:59 AM, venkata reddy wrote:
dear colin,
I have already created a controller called home and a view with index
so there i written all my html code do create the home page. so now i
wand to link the other static pages to lthe home pages. can u explain
now!!


There are many very useful tutorials on this topic. First I would suggest to get started with http://railstutorial.org/book

Cheers,

Jan


On Nov 23, 2:23 pm, Colin Law<[email protected]>  wrote:
On 23 November 2010 08:43, venkata reddy<[email protected]>  wrote:

Hi,
i am new to ror. I am able to upload my home page into the appliction.
but after that where can i place the other static pages of website,  i
mean pages like contact us , about us etc. where can i place these
pages and how to access them. pls..help..

Two possibilities
1.Provide a controller to handle the static pages (call it main or
something) then provide actions such as contacts and put the html in
views/main/contacts.html.erb.  Then it is linked to by
your_domain.com/main/contacts.
2. You could just put the pages in the public folder in your app.
Then if you have a page public/contacts.html it may be linked to by
your_domain.com/contacts.html.

I prefer the first as it keeps the static content separated from other
stuff in public.

You could also try googling for rails static pages which will provide
many useful hits.

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to