RailsCasts Pro episodes are now free!

Learn more or hide this

Enrico Carlesso's Profile

GitHub User: carlesso

Site: http://www.ecarlesso.org

Comments by Enrico Carlesso

Avatar

Yes. To be complete, Refinery is compatible with anything you may want. As @shaman-sh sayd, it may take some time to understand how.

I found out that browsing the source of refinery-core was explanatory.
Working with these views I've been able to restyle everything I need:

./refinery/_content_page.html.erb
./refinery/_footer.html.erb
./refinery/_head.html.erb
./refinery/_header.html.erb
./refinery/_menu.html.erb
./refinery/_menu_branch.html.erb

But most important (and I had to copy by hand) layouts/application.html.erb can make your life easier. Anyway is pretty simple (this is my version with already container-fluid class for the page_container):

html
<!DOCTYPE html>
<%= render '/refinery/html_tag' %>
  <% site_bar = render('/refinery/site_bar', :head => true) -%>
  <%= render '/refinery/head' %>
  <body>
    <%= site_bar -%>
    <%= render '/refinery/ie6check' if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
    <div id="page_container" class="container-fluid">
      <header id="header">
        <%= render '/refinery/header' -%>
      </header>
      <section id="page">
        <%= yield %>
      </section>
      <footer class="footer">
        <%= render '/refinery/footer' -%>
      </footer>
    </div>
    <%= render '/refinery/javascripts' %>
  </body>
</html>
Avatar

Hi Ryan,
as always a very useful screencast! But here the hard question:

How do you test things like this?

Avatar

Is there a way to use Pry with Foreman?

Avatar

What do you mean? Doesn't

tailf log/development.log

fits your needs?

Avatar

Sorry for those who's using Prototype! Never a mention for Mootools users! :D