On Mon, Dec 28, 2009 at 1:00 PM, Oluwayomi Oluwadara <[email protected]>wrote:
> i wan to put hyperlinks linking pages likes "about us", "news","contact > us" etc. from my home page.I understand these contents would be written > somewhere,where is this location? you know we normally save our images in > the public dir if we want rails to fetch it.Where do i save my html pages, > if i want the controller to fetch them/ > > > Regards and Respects, > > > Kindness in thought leads to wisdom. > Kindness in speech leads to eloquence. > Kindness in action leads to love. > > Oluwayomi, if you wanting the controller to, you'll save them in the following directory: <rails_app_root_folder>/app/views/<controller_name>/some_html_file_1.html.erb <rails_app_root_folder>/app/views/<controller_name>/some_html_file_2.html.erb <rails_app_root_folder>/app/views/<controller_name>/some_html_file_3.html.erb <rails_app_root_folder>/app/views/<controller_name>/some_html_file_4.html.erb ... <rails_application_root_folder>/app/views/<controller_name>/some_html_file_n.html.erb Furthermore, you can access your images by using the following path: /images/<image_name>.<extension> Good luck, -Conrad > > > --- On *Mon, 12/28/09, Frederick Cheung <[email protected]>*wrote: > > > From: Frederick Cheung <[email protected]> > Subject: [Rails] Re: i want to link html pages to my app > To: "Ruby on Rails: Talk" <[email protected]> > Date: Monday, December 28, 2009, 8:51 AM > > > > > On Dec 28, 4:48 pm, Oluwayomi Oluwadara > <[email protected]<http://mc/[email protected]>> > wrote: > > Hello,I have app-an online B2C site selling books.I want to put > hyperlinks on my page.Where do i store the html files that my views will > call? > > > > Not sure I quite understand what you are asking but you can put static > content in your app's public folder. > > Fred > > Regards and Respects, > > > > Kindness in thought leads to wisdom. > > Kindness in speech leads to eloquence. > > Kindness in action leads to love. > > -- > > 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]<http://mc/[email protected]> > . > To unsubscribe from this group, send email to rubyonrails-talk+ > [email protected]<http://mc/[email protected]> > . > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > 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 [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.

