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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:05:23+00:00 2026-06-03T23:05:23+00:00

Hello I am following a rails tutorial, I am using rails 3.2.3 and I

  • 0

Hello I am following a rails tutorial, I am using rails 3.2.3 and I have this error Routing Error

No route matches [POST] “/movies/9/edit”

Here is my haml page:

%h2 Edit Movie

= form_tag edit_movie_path(@movie), :method => :put do

= label :movie, :title, ‘Title’
= text_field :movie, ‘title’

= label :movie, :rating, ‘Rating’
= select :movie, :rating, [‘G’,’PG’,’PG-13′,’R’,’NC-17′]

= label :movie, :release_date, ‘Released On’
= date_select :movie, :release_date

= submit_tag ‘Save Changes’

Here is my controller:

def edit

@movie = Movie.find params[:id]

end

def update

@movie = Movie.find params[:id]
@movie.update_attributes!(params[:movie])
flash[:notice] = "#{@movie.title} was successfully updated."
redirect_to movie_path(@movie)

end

and my routes:

movies GET /movies(.:format) movies#index

       POST   /movies(.:format)          movies#create

new_movie GET /movies/new(.:format) movies#new
edit_movie GET /movies/:id/edit(.:format) movies#edit

 movie GET    /movies/:id(.:format)      movies#show

       PUT    /movies/:id(.:format)      movies#update

       DELETE /movies/:id(.:format)      movies#destroy

Thanks for the 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-06-03T23:05:25+00:00Added an answer on June 3, 2026 at 11:05 pm

    The tutorial may be leading you astray.

    It’s telling you to have your form PUT to the edit path.

    You really want to PUT to the normal movie path. An update is implied by the PUT verb.

    Instead of:

    = form_tag edit_movie_path(@movie), :method => :put do
    

    Try:

    = form_tag movie_path(@movie), :method => :put do
    

    Indeed, you may want to find a different tutorial.

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

Sidebar

Related Questions

Hello i have the following problem, I record a video using red5 like this:
Hello this is may first question and I have found so far the following
I am following a tutorial for building a very simple rails app. I have
I have the following statement in Rails 3 using an SQLite3 database: word =
Hi this is ROR beginner's question. I have creat controller.rb and view hello.rhtml following
I have the following in my controller: return render :js => alert('Hello Rails'); Problem
I have a file template.txt which contains the following: Hello ${something} I would like
Hello I have the following code namespace ConsoleApplication2 { class Program { static void
I'm attempting to get my first hello world rails example going using the rails'
I'm running the latest Rails 2-3-stable branch (currently 2.3.3). I'm using JQuery to post

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.