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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T01:58:14+00:00 2026-05-21T01:58:14+00:00

I’m having trouble getting a for to submit from my show.html.erb page. It is

  • 0

I’m having trouble getting a for to submit from my show.html.erb page. It is a nested form that sends from /event/1/ticketbuilder/1 to the same page, However, when i submit the form, Ig et a Routing Error (No route matches “/event/1/ticketbuilder/1”) even though going to that url directly works just fine.

#show.html.erb
<%= form_for @section, :url => event_ticketbuilder_path(@event) do |s| %>
  <%= s.text_field(:name) %> <%= submit_tag("Add Section") %>
<% end %>

#ticketbuilder_controller.rb
class TicketbuilderController < ApplicationController
 def show
    @event = Event.find(params[:event_id])
    @section = Section.new
  end
  def create
    @event = Event.new(params[:event_id])
    @section = @event.sections.build(params[:name])
    if @section.save
      @section = Section.new
    end
    render :action => :show
  end
end

When linking directly to the page, it succeeds and i get

Started GET "/event/1/ticketbuilder/1" for 206.248.211.83 at Sun Mar 27 15:02:24 -0400 2011
  Processing by TicketbuilderController#show as HTML
  Parameters: {"event_id"=>"1", "id"=>"1"}
  Event Load (0.3ms)  SELECT "events".* FROM "events" WHERE "events"."id" = 1 LIMIT 1
  Section Load (0.3ms)  SELECT "sections".* FROM "sections" WHERE ("sections".event_id = 1)
  Location Load (0.3ms)  SELECT "locations".* FROM "locations" WHERE ("locations".section_id = 1)
  User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
Rendered ticketbuilder/show.html.erb within layouts/application (52.2ms)
Completed 200 OK in 85ms (Views: 56.8ms | ActiveRecord: 1.4ms)

When submitting the form on that page i get

Started POST "/event/1/ticketbuilder/1" for 206.248.211.83 at Sun Mar 27 15:02:26 -0400 2011

ActionController::RoutingError (No route matches "/event/1/ticketbuilder/1"):


Rendered /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.0ms)

It seems as though I can access the page with the “GET” method but not “POST” I assume this has something to do with the variables being sent through the URL, but I don’t have enough knowledge of rails currently to solve this.

event_ticketbuilder_index GET    /event/:event_id/ticketbuilder(.:format)          {:controller=>"ticketbuilder", :action=>"index"}
                          POST   /event/:event_id/ticketbuilder(.:format)          {:controller=>"ticketbuilder", :action=>"create"}
  new_event_ticketbuilder GET    /event/:event_id/ticketbuilder/new(.:format)      {:controller=>"ticketbuilder", :action=>"new"}
 edit_event_ticketbuilder GET    /event/:event_id/ticketbuilder/:id/edit(.:format) {:controller=>"ticketbuilder", :action=>"edit"}
      event_ticketbuilder GET    /event/:event_id/ticketbuilder/:id(.:format)      {:controller=>"ticketbuilder", :action=>"show"}
                          PUT    /event/:event_id/ticketbuilder/:id(.:format)      {:controller=>"ticketbuilder", :action=>"update"}
                          DELETE /event/:event_id/ticketbuilder/:id(.:format)      {:controller=>"ticketbuilder", :action=>"destroy"}
              event_index GET    /event(.:format)                                  {:controller=>"event", :action=>"index"}
                          POST   /event(.:format)                                  {:controller=>"event", :action=>"create"}
                          GET    /event/new(.:format)                              {:controller=>"event", :action=>"new"}
                          GET    /event/:id/edit(.:format)                         {:controller=>"event", :action=>"edit"}
                          GET    /event/:id(.:format)                              {:controller=>"event", :action=>"show"}
                          PUT    /event/:id(.:format)                              {:controller=>"event", :action=>"update"}
                          DELETE /event/:id(.:format)                              {:controller=>"event", :action=>"destroy"}

Any help or ideas would 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-05-21T01:58:15+00:00Added an answer on May 21, 2026 at 1:58 am

    Try event_ticketbuilder_index_path for the :url. You want the create action, which does not have an existing id yet.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function

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.