New To ruby need some basic help
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
精彩评论