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

  • Home
  • SEARCH
  • 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 3500780
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:46:37+00:00 2026-05-18T12:46:37+00:00

I have a notes model, which has a many-to-many relationship with the users model.

  • 0

I have a notes model, which has a many-to-many relationship with the users model. In the index view in the notes controller I have this form:

<form id='note_form' method="post" action="/notes/temp_path" >
    <input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>" />        
    <input type="text" size="30" name="start_date" id="start_date">
</form>

which points to the temp_path action in the notes controller. For some reason when this form is submitted, instead of running the code in the temp_path action, Rails is trying to load a certain note, and because it can’t, it redirects back to index.

Started POST "/notes/temp_path" for 127.0.0.1 at 2010-12-08 22:08:25 +1000
DEPRECATION WARNING: Setting filter_parameter_logging in ActionController is deprecated and has no longer effect, please set 'config.filter_parameters' in config/application.rb instead. (called from <class:ApplicationController> at /Users/ben/rails_projects/note_prog/app/controllers/application_controller.rb:6)
  Processing by NotesController#temp_path as HTML
  Parameters: {"authenticity_token"=>"Ck6NmmYO86rvJSEsiqpIMkcaiErEhV7s/XMzjka15AI="}
  User Load (0.3ms)  SELECT "users".* FROM "users" WHERE ("users"."id" = 56) LIMIT 1
  UserNote Load (0.2ms)  SELECT "user_notes".* FROM "user_notes" WHERE ("user_notes"."note_id" = 0)
Redirected to http://localhost:3000/notes

I’m pretty sure the WHERE ("user_notes"."note_id" = 0) bit is causing the problem. But I’m not sure why this is even being done? Based on the line above it, User Load (0.3ms) SELECT "users".* ... it seems like it’s behind the scenes Rails stuff. Nowhere in the temp_path action do I need to load an existing note. How can I stop this? I’m using Rails 3.0.1. Thanks for reading.

  • 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-18T12:46:37+00:00Added an answer on May 18, 2026 at 12:46 pm

    You should show us the code of your controller. Have you any ‘redirect_to’ statements there? With any conditions?

    Maybe you have some filters in your controller, maybe in ApplicationController? From the deprecation warning I see that you may have some code there.

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

Sidebar

Related Questions

I have a model which uses acts-as-tree. For example: class CartoonCharacter < ActiveRecord::Base acts_as_tree
i am working on a simple web app which has a user model and
I have a model called NoteCategory, which is functioning as a join table between
i am building a webapp that will have notes fields all over the place,
I have two tables containing Tasks and Notes, and want to retrieve a list
I have a database with two main tables notes and labels . They have
I have an oc4j installation bereft of any release notes or version documentation. In
I'm not a Notes programmer, however, for my sins, have been working on some
I have an application that manages documents called Notes. Like a blog, Notes can
I have noted over the years, that I tend to write maybe a screen

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.