Note that there are some explanatory texts on larger screens.

plurals
  1. POOne controller isn't using my CSS and HTML structure but the other controllers are
    primarykey
    data
    text
    <p>All the forms (new and show) for my Article controller are ignoring the layout (article.html.erb), whilst ALL my other controllers (e.g List) are applying the layout (lists.html.erb).</p> <p>I have implemented SASS alongside my CSS and currently I have all my CSS defined within /assets/stylesheets/style.css.scss.</p> <p>I can make changes to both the CSS and HTML structure and they are applied immediately to my application.</p> <p>I am using the development environment and running ruby 1.9.3p125 and rails 3.2.1.</p> <p>Can anyone suggest why this is happening?</p> <p>The HTML layout for Lists controller is...</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Inspire&lt;/title&gt; &lt;%= stylesheet_link_tag "application", :media =&gt; "all" %&gt; &lt;%= javascript_include_tag "application" %&gt; &lt;%= csrf_meta_tags %&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="home_container"&gt; &lt;div id="header"&gt; &lt;div id="home_user-space"&gt; &lt;% if current_user %&gt; &lt;%= image_tag avatar_url(current_user), :class =&gt;'floatleft' %&gt; &lt;%= link_to current_user.name.capitalize,user_path(:id =&gt;current_user.name), :class =&gt;'user-name' %&gt; &lt;% end %&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="navigation"&gt; &lt;%= render 'layouts/navigation' %&gt; &lt;ul&gt; &lt;li&gt;&lt;%= link_to "Log out", signout_path %&gt;&lt;/li&gt; &lt;li&gt;&lt;%= link_to "Your home page", home_path(:id =&gt; current_user.name), :class =&gt; 'user-name' %&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="home_content-container"&gt; &lt;div id="home_left-side"&gt; &lt;%= render 'layouts/home_left_side' %&gt; &lt;/div&gt; &lt;div id="home_content"&gt; &lt;%= yield %&gt; &lt;/div&gt; &lt;div id="home_right-side"&gt; &lt;%= render 'layouts/home_right_side' %&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="footer"&gt; &lt;%= render 'layouts/footer' %&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>and the layout for my Article controller is...</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Inspire&lt;/title&gt; &lt;%= stylesheet_link_tag "application", :media =&gt; "all" %&gt; &lt;%= javascript_include_tag "application" %&gt; &lt;%= csrf_meta_tags %&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="home_container"&gt; &lt;div id="header"&gt; &lt;div id="home_user-space"&gt; &lt;% if current_user %&gt; &lt;%= image_tag avatar_url(current_user), :class =&gt;'floatleft' %&gt; &lt;%= link_to current_user.name.capitalize,user_path(:id =&gt;current_user.name), :class =&gt;'user-name' %&gt; &lt;% end %&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="navigation"&gt; &lt;%= render 'layouts/navigation' %&gt; &lt;ul&gt; &lt;li&gt;&lt;%= link_to "Log out", signout_path %&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="home_content-container"&gt; &lt;div id="home_left-side"&gt; &lt;%= render 'layouts/home_left_side' %&gt; &lt;/div&gt; &lt;div id="home_content"&gt; &lt;%= yield %&gt; &lt;/div&gt; &lt;div id="home_right-side"&gt; &lt;%= render 'layouts/home_right_side' %&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--todo what about the footer--&gt; &lt;div id="footer"&gt; &lt;%= render :partial =&gt; 'layouts/footer' %&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload