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:
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
Post a Comment