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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:34:39+00:00 2026-05-26T05:34:39+00:00

I did some research and couldn’t find a suitable answer so I’m reaching out…..

  • 0

I did some research and couldn’t find a suitable answer so I’m reaching out…..

Using Rails 3.1 and trying to create a post for a user. When I go to create a test post I get the error:

Missing template events/create, application/create with {:locale=>[:en, :en],
  :formats=>[:html], :handlers=>[:coffee, :erb, :builder]}

Is this a template or should I adjust my routes?

Thanks in advance for any help.

  • 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-05-26T05:34:40+00:00Added an answer on May 26, 2026 at 5:34 am

    From the log you provided here, you should be posting to Events controller’s create method.

    The following is copied from your repo:

    def create
      @event = current_user.events.build(params[:event])
      if @event.save
        flash[:success] = "Event Shared"
        redirect_to root_path
      #else
      #  render 'pages/about'
      end
    
    
      #@event = Event.new         what I had before
      #@title = "Create An Event"
    end
    

    So if @event.save failed, there’s no redirect and the render is commented out. So by default, rails 3.1 will try to find the view file in the following order: events/create, application/create (it matches your log)

    With failing event.save, you would most likely render "new" so that it will use events/new.html.erb for the view file. (of course this is not a must, you could render anything you want or even redirect if you like)

    (Hope that what I am viewing on the repo isn’t a modified one 🙂 )

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

Sidebar

Related Questions

Did some googling and couldn't find a clear answer on this. My assumption is
I did some research on Google but I couldn't find any HTML5 browser for
I did a lot of research on this subject but couldn't find any end
I did some research on the topic but could not find anything similar to
Did some searches here & on the 'net and haven't found a good answer
I did some tests a while ago and never figured out how to make
I did some googling to try to answer this question but even after that
I did some research on how to enable a pair-coding environment remotely so someone
Following yesterday's question, I did some research and I thought I had a more
I did some research and I think the error is due to use of

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.