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 9124403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:33:51+00:00 2026-06-17T06:33:51+00:00

My site is working on my development machine, deployed to heroku I get this

  • 0

My site is working on my development machine, deployed to heroku I get this in the logs:

2013-01-11T19:29:38+00:00 app[web.1]: Started GET "/hints" for 206.255.88.68 at 2013-01-11 19:29:38 +0000
2013-01-11T19:29:38+00:00 heroku[nginx]: 206.255.88.68 - - [11/Jan/2013:19:29:38 +0000] "GET /hints HTTP/1.1" 500 643 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20100101 Firefox/17.0" baconlanguagetomato.com
2013-01-11T19:29:38+00:00 heroku[router]: at=info method=GET path=/hints host=baconlanguagetomato.com fwd=206.255.88.68 dyno=web.1 queue=0 wait=0ms connect=1ms service=26ms status=500 bytes=643
2013-01-11T19:29:38+00:00 app[web.1]: 
2013-01-11T19:29:38+00:00 app[web.1]: ActionView::MissingTemplate (Missing template hints/index, application/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder]}. Searched in:
2013-01-11T19:29:38+00:00 app[web.1]:   * "/app/app/views"
2013-01-11T19:29:38+00:00 app[web.1]:   * "/app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0/app/views"
2013-01-11T19:29:38+00:00 app[web.1]:   * "/app/vendor/bundle/ruby/1.9.1/gems/kaminari-0.14.1/app/views"
2013-01-11T19:29:38+00:00 app[web.1]: ):
2013-01-11T19:29:38+00:00 app[web.1]:   app/controllers/hints_controller.rb:34:in `index'
2013-01-11T19:29:38+00:00 app[web.1]: 
2013-01-11T19:29:38+00:00 app[web.1]: 

Here is part of my routes file:

resources :hints do
    collection do
        get 'found_sentences'
    end
end

Here is my hints_controller.rb:

#encoding: utf-8
class HintsController < ApplicationController
    # GET /hints
    # GET /hints.json

    authorize_resource

    before_filter :authenticate_user!

    layout "application", :except => [:found_sentences]

    # GET /hints/find_sentences/
    def found_sentences
        #authorize! :find_sentences, @user, :message => 'Not authorized as an administrator.'

        @hints = Hint.where("sentence LIKE ? AND user_id =?", "%#{params[:word]}%", current_user.id) #.order("LENGTH(sentence) ASC").limit(5)

        render :layout => 'layouts/found_sentences'

        #respond_to do |format|
        #   format.html # find_sentences.html.erb
        #   format.json { render json: @hints }
        #end

    end

    def index
        #authorize! :index, @user, :message => 'Not authorized as an administrator.'

        #@hints = Hint.order(:created_at).reverse()
        @hints = Hint.find_all_by_user_id(current_user.id).reverse()
        #@hints = @current_user.hints

        respond_to do |format|
            format.html # index.html.erb
            format.json { render json: @hints }
        end
    end

    # GET /hints/1
    # GET /hints/1.json
    def show
        #authorize! :show, @user, :message => 'Not authorized as an administrator.'

        @hint = Hint.find(params[:id])
        #@hint = @current_user.hints.find(params[:id])


        respond_to do |format|
            format.html # show.html.erb
            format.json { render json: @hint }
        end
    end

    # GET /hints/new
    # GET /hints/new.json
    def new
        #authorize! :new, @user, :message => 'Not authorized as an administrator.'

        #@hint = Hint.new
        @hint = Hint.new(:user_id => @current_user_id)

        respond_to do |format|
            format.html # new.html.erb
            format.json { render json: @hint }
        end
    end

    # GET /hints/1/edit
    def edit
        #authorize! :edit, @user, :message => 'Not authorized as an administrator.'

        @hint = Hint.find(params[:id])
        #@hint = Hint.find(:user_id => @current_user_id)

        #todo shouldn't be able to edit other user's hints. for some reason the Lesson model responds to @current_user.lessons, but the Hint model doesn't respond to @current_user.hints

    end

    # POST /hints
    # POST /hints.json
    def create
        #authorize! :create, @user, :message => 'Not authorized as an administrator.'

        @hint = Hint.new(params[:hint])


        respond_to do |format|
            if @hint.save
                format.html { redirect_to @hint, notice: 'Hint was successfully created.' }
                format.json { render json: @hint, status: :created, location: @hint }
            else
                format.html { render action: "new" }
                format.json { render json: @hint.errors, status: :unprocessable_entity }
            end
        end
    end

    # PUT /hints/1
    # PUT /hints/1.json
    def update
        #authorize! :update, @user, :message => 'Not authorized as an administrator.'

        @hint = Hint.find(params[:id])

        respond_to do |format|
            if @hint.update_attributes(params[:hint])
                format.html { redirect_to @hint, notice: 'Hint was successfully updated.' }
                format.json { head :no_content }
            else
                format.html { render action: "edit" }
                format.json { render json: @hint.errors, status: :unprocessable_entity }
            end
        end
    end

    # DELETE /hints/1
    # DELETE /hints/1.json
    def destroy
        #authorize! :destroy, @user, :message => 'Not authorized as an administrator.'

        @hint = Hint.find(params[:id])
        @hint.destroy

        respond_to do |format|
            format.html { redirect_to hints_url }
            format.json { head :no_content }
        end
    end
end

I tried removing this line: render :layout => 'layouts/found_sentences' and uncommenting this:

    #respond_to do |format|
    #   format.html # find_sentences.html.erb
    #   format.json { render json: @hints }
    #end

But that didn’t work. What should I try next?

REQUESTED UPDATE:

[~/rails_projects/blt]$ls app/views/{application,hints}
ls: app/views/application: No such file or directory
app/views/hints:
_form.html.erb           edit.html.erb            found_sentences.html.erb index.html.erb           new.html.erb             show.html.erb
[~/rails_projects/blt]$cd app
[~/rails_projects/blt/app]$cd views
[~/rails_projects/blt/app/views]$cd application
bash: cd: application: No such file or directory
[~/rails_projects/blt/app/views]$ls
content            dictionary_entries home               lessons            users
devise             hints              layouts            user_mailer
[~/rails_projects/blt/app/views]$
  • 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-17T06:33:52+00:00Added an answer on June 17, 2026 at 6:33 am

    The problem is in the index actions, not in find_sentences. Add a index.html.erb to app/views/hints.

    This was not the problem.

    Please read the full chat to see how we could locate the actual problem.

    User is using a mac, whose filesystem is case-insensitive. The templates dir is created with a capital H for Hints (app/views/Hints). Heroku uses linux and a case-sensitive filesystem, which causes the error.

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

Sidebar

Related Questions

I have the current bundle reference working locally: Bundles.Reference(/Content/global.css); On the development site, this
this is ultimately frustrating, because it was working on the development site, but after
I have a site developed and is working fine on development machine (Mac OS
I've been trying to get styling working on site uncookedblog.com for hours now. I
Lately I had to reinstall my development site on my ubuntu machine since my
I'm working on a web site where the new pages are ASP.NET and the
I've just started working for a new firm as an in-house web developer. Up
During development, i can easily manage my users/roles/smtp etc using the Administer Web Site
Delayed job (2.1.4) is working perfectly on my development machine, sending emails with gay
I am quite new to web development. I am working on a website hosted

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.