Re: [RoR ] layout的路徑

看板Ruby作者 (Paradise)時間15年前 (2010/02/20 17:25), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)

02/20 17:20,
你的 template code 可以貼一下嗎?
02/20 17:20

02/20 17:21,
layout code
02/20 17:21
比較頭痛的問題出在這 <link href="/stylesheets/nthuee.css" rel="stylesheet" type="text/css" /> 至於像圖片的部分我正逐漸用RoR的方法來處理... 例如 <div id="logo"> <%=link_to image_tag("site_logo.png", :border=>0), :controller=>"opening", :action=>"index" %> 或者文字連結則改成 <div id="footerLink"><%= link_to "關於", :controller=>"about",:action=>"index" %> <%= link_to "聯絡我們", :controller=>"about", :action=>"contactus" %> <%= link_to "網站地圖", :controller=>"about", :action=>"sitemap" %></div> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 221.169.5.190
文章代碼(AID): #1BVwg7bw (Ruby)
討論串 (同標題文章)
本文引述了以下文章的的內容:
0
2
以下文章回應了本文
完整討論串 (本文為第 2 之 3 篇):
0
2
文章代碼(AID): #1BVwg7bw (Ruby)