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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:37:11+00:00 2026-05-25T01:37:11+00:00

Instead of adding teams one-by-one, I’m trying to create a form to enter a

  • 0

Instead of adding teams one-by-one, I’m trying to create a form to enter a bunch of comma-separated team names all at once. In my routes.rb, I have

map.connect '/teams/massentry', :controller => 'teams', :action => 'massentry'
map.resources :teams

In teams_controller.rb, I have

def massentry
  @team = Team.new
end

That’s not what that will look like when I’m done. I just stuck it in there so there would be something. Finally, I have /views/teams/massentry.html.erb

<% form_tag({:controller => "teams", :action => "massentry"}, :method => 'get') do %>
  <p>
    <%= label_tag(:t, "CSV List of Teams" %>
    <%= text_area_tag(:t, "", :size => "24x6") %>
  </p>
  <p><%= submit_tag("Submit") %></p>
<% end %>

I don’t know if that form is right and obviously don’t have any of the logic written, but I just wanted to see what it looks like. If I go to

http://localhost:3000/teams/massentry

It returns Couldn’t find team with id=massentry. It’s executing the show method, but I thought if I put the map.connect before the resource line in routes.rb it would redirect. Using rails 2.3.8

  • 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-25T01:37:11+00:00Added an answer on May 25, 2026 at 1:37 am

    Rails routes are evaluated in the order they appear. So you can either leave it the way you just described (your custom route first) or you can do it in a RESTful way like @numbers1311407 said. Also, it makes more sense to use :post instead of :get.

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

Sidebar

Related Questions

Can Any one help me How to integrate Adwhirl in UIWindow instead of adding
Instead of just filling out the form in HTML it should also be possible
Basic question. Instead of adding '\n' between the elements: >> puts #{[1, 2, 3].join('\n')}
Let's say I have two EntitySets, Teams and Players. I am adding new teams
Can anyone help me in integrating Adwhirl in View Controller instead of adding it
I am creating a layer with a shadow effect. Instead of adding it as
I was adding zero-or-more and one-or-more modifiers to my PEG parser, which is straightforward
Instead of adding or modifying files in the directory where the sources of a
...instead of using the Atom syndication format? Atom is a well-defined , general-purpose XML
Instead of writing my ASP.NET C# applications in Visual Studio, I used my favorite

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.