Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9131915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:13:19+00:00 2026-06-17T08:13:19+00:00

I was creating a new app using ZURB Foundation. There are three controllers. And

  • 0

I was creating a new app using ZURB Foundation.
There are three controllers. And ih one of them – everything works fine, all css and javascripts includes everytime when i run the server in development. But if i run my Projects#Controller, it gets only plain html, without loading javascripts and css. I tried everything, but still dunno what to do with it.

Here is the logs from the console:

When it works fine

Started GET "/" for 127.0.0.1 at 2013-01-09 21:36:21 +0200
Processing by PagesController#info as HTML
  Rendered pages/info.html.erb within layouts/application (0.3ms)
  Rendered layouts/_head.html.erb (36.9ms)
  User Load (1.6ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
  Rendered layouts/_header.html.erb (8.9ms)
  Rendered layouts/_flash_messages.html.erb (0.3ms)
  Rendered layouts/_footer.html.erb (66.0ms)
Completed 200 OK in 368ms (Views: 365.2ms | ActiveRecord: 1.6ms)

But then if i go to another page from the other controller it loads only plain html from the page

Started GET "/projects/" for 127.0.0.1 at 2013-01-09 21:23:21 +0200
Processing by ProjectsController#index as HTML
  User Load (1.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
  Project Load (0.5ms)  SELECT "projects".* FROM "projects" WHERE "projects"."user_id" = 1 ORDER BY created_at desc
  Rendered projects/index.html.erb (30.8ms)
Completed 200 OK in 78ms (Views: 38.4ms | ActiveRecord: 2.7ms)

Gemfile

    source 'https://rubygems.org'

gem 'rails', '3.2.11'

group :development, :test do
  gem 'sqlite3'
  gem 'rspec-rails'
  gem 'factory_girl_rails'
end

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  gem 'compass-rails'
  gem 'zurb-foundation'
  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
gem 'devise'
gem 'thin'
gem 'best_in_place'

group :test do
  gem 'capybara'
  gem 'shoulda-matchers'
end

group :production do
  gem 'pg'
end

application.html.erb

<!DOCTYPE html>
<html lang="en">
  <head>
    <%= render 'layouts/head' %>
  </head>
  <body>
    <%= render 'layouts/header' %>
    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span8 offset2">
          <%= render 'layouts/flash_messages' %>
          <%= yield %>
        </div>
      </div>
    </div>
    <div class='row-fluid'>
      <%= render 'layouts/footer' %>
    </div>
  </body>
</html>

And Controllers

class PagesController < ApplicationController
  respond_to :html

  def info

  end
end


class ProjectsController < ActionController::Base
  # before_filter :authenticate_user!

  def index
    @projects = current_user.projects

    respond_to do |format|
      format.html
    end

  end
end

Any help or ideas will be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:13:19+00:00Added an answer on June 17, 2026 at 8:13 am

    You need to change class ProjectsController < ActionController::Base to class ProjectsController < ApplicationController, then it will know where to search the layout.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an app using Google calendar API. Everything works fine on my local
We're creating a new consumer/public-facing ASP.Net web app. There are two concerns: --Use cookie
I am creating a simple Click Counter Android App using Java. I am new
I am creating a simple Click Counter Android App using Java. I am new
Am trying to execute ssis package using dtexec utility from c# app(Creating New Process,
I'm creating an android app using Andengine. One part of the app requires users
I am creating a new Android app using SyncAdapter to handle db sync. I
I'm new in creating android app using eclipse. I am planning to create an
I am creating a web app using java. I am very new to this,
I am new to Hibernate. While creating a small app using it I got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.