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

  • SEARCH
  • Home
  • 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 7985517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:34:47+00:00 2026-06-04T11:34:47+00:00

I am using Rails 3.2.3 / Ruby 1.9.3p125 / jbuilder (0.4.0) In my view/mycontroller

  • 0

I am using Rails 3.2.3 / Ruby 1.9.3p125 / jbuilder (0.4.0)

In my view/mycontroller folder i got a show.json.jbuilder file.
when I test everything on my local machine with rails s -e production everything works fine.
The JSON gets rendered as espected.

But when I deploy to Ubuntu LTS (nginx/unicorn) I get the following Error Message:

ActionView::MissingTemplate (Missing template mycontroller/show, application/show with {:locale=>[:de, :en], :formats=>[:json], :handlers=>[:erb, :builder]}. Searched in:
  * "/home/deployer/apps/myapp/releases/#############/app/views"
):

When I check on my server if the jbuilder gem is installed with bundle show jbuilder everything seems right.

weird is that the Error message does’t show :handlers=>[:erb, :builder, :jbuilder]
The jbuilder handler is obviously missing. But how do I solve the problem?

Edit: The Problem is not based on Jbuilder. I tried rabl and the same problem appears.

Does any one has a hint, how to debug this?

Here some more Information:

Gemfile

source 'https://rubygems.org'

gem 'rails', '3.2.3'
gem 'jquery-rails'
gem 'mysql2'
gem 'simple_form'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
  gem 'bootstrap-sass', '2.0.2'
end

# Use unicorn as the app server
gem 'unicorn'

# Deploy with Capistrano
gem 'capistrano'

# for performance monitoring
gem 'newrelic_rpm'

# use asset pipline and flash
gem 'swf_fu', '~> 2.0'

gem 'geocoder'

# To use Jbuilder templates for JSON
gem 'jbuilder'

Controller

  def show

  end

show.json.jbuilder – file

 json.(@map, :id)
  • 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-04T11:34:48+00:00Added an answer on June 4, 2026 at 11:34 am

    Your jbuilder seems to be skipped.

    Is jbuilder in your Gemfile.lock file?

    cat Gemfile.lock | grep jbuilder
    

    If it’s missing:

    RAILS_ENV=production bundle update jbuilder 
    

    Is jbuilder loadable?

    RAILS_ENV=production bundle exec rails console
    > require 'jbuilder'
    => false  # this is false if jbuilder is pre-loaded
    

    Can you build in the console?

    > Jbuilder.encode{|j| j.foo :bar }
    => "{\"foo\":\"bar\"}"
    

    Can you build in your controller action?

    def the_method_you_are_testing
       raise Jbuilder.encode{|j| j.foo :bar }
    end
    

    Do you see the same error with a different server setup, such as Apache & Passenger instead of Nginx & Unicorn, or simply rails server?

    rails server -e production
    

    Do you get the same results if you change your server app from production to development?

    rails server -e development
    

    For RABL, can you try putting the RABL gem last in your Gemfile?

    gem 'rails'
    #...
    gem 'rabl'
    

    Try registering immediately after requiring builder?

    require 'tilt'
    require 'rabl'
    # ...
    require 'builder'
    Rabl.register!
    

    Do you get the same results with RABL master?

    gem 'rabl', :git => "git://github.com/nesquena/rabl.git" 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(I'm using Rails 3.2.3 on Ruby MRI 1.9.2) Everything is stored centrally in UTC.
I am implementing a JSON API using ruby on rails 3.1. Which tools/gems/plugings should
I've installed ruby on rails using gem install rails and got the message that
says if i develop a Ruby on Rails application using Rails 2.3.2, will that
Using Rails 3.1.3 with Ruby 1.9.3p0. I've discovered that by default, Rails does not
Using Rails 3.1.3 and Ruby 1.9.3. I want to give the user a list
I have a deployment using: rails 2.3.2 ruby 1.8.7 mysql db and 3 mongrel
I am using: rails 2.3.5 ruby 1.8.7 and Windows 7 Home Basic I was
I am using rails 3.0.10 and ruby 1.9.2p0 In my rails app I am
I am using: Rails 2.3.5 Ruby 1.8.7 Windows 7 Home basic 64-bit I'm trying

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.