Ruby questions about web layer layout -


i trying make url <a href="/formats/formats.html.erb">link title</a> within application. file need edit link url controller , view?

also, still working way through tutorial:

http://guides.rubyonrails.org/layouts_and_rendering.html

and wondering when this:

<%= stylesheet_link_tag "http://example.com/main.css" %> 

is supposed live in application.html.erb file or index.html.erb file?

what file need edit link url controller , view?

routes.rb

see the rails guide

is supposed live in application.html.erb file or index.html.erb file?

the simple answer is: application.html.erb, inside head section. there ways of injecting view template stuff head, if you're starting out, stick application.html.erb.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -