开发者

New To ruby need some basic help

开发者 https://www.devze.com 2023-02-03 07:14 出处:网络
What i want to do is use my current CSS to create the home page may basic page is like this <div id=\"wrap\">

What i want to do is use my current CSS to create the home page may basic page is like this

<div id="wrap">
<div id="header">
    <?php include($header); ?>
</div>
<div id="nav">
    <?php include("nav.php"); ?>
</div>
<div id="main">
    main 
</div>
<div id="sidebar">
    <?php include_once"rightAD.php"; ?>
</div>
<div id="footer">
    <?php include_once"footer.php"; ?>
</div>

what i need to know is how to replace the p开发者_如何学运维hp includes in ruby ignore the header div tho! oh i guess i should mention im using Rails 3


Check the getting started section:

http://edgeguides.rubyonrails.org/

To answer you question:

Put you css file in public/stylesheets/

It will be automagically loaded.

This view is where that magic happens:

app/views/layouts/application.html.erb

0

精彩评论

暂无评论...
验证码 换一张
取 消