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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:32:33+00:00 2026-05-17T19:32:33+00:00

I have the following form_for tag: <%=form_for [:project, @permission], :remote => true do |f|

  • 0

I have the following form_for tag:

<%=form_for [:project, @permission], :remote => true do |f| %>


<form method="post" id="edit_permission_52" data-remote="true" class="edit_permission" action="/projects/52/permissions/useronspace" accept-charset="UTF-8">

The ID looks right = edit_permissions_52

But the action path is all messed up…

It should be
/projects/#PROJECTID#/permissions/useronproject

but instead Rails is making it

/projects/#PERMISSIONID#/

which is breaking everything.

Does this make sense to you? thanks

  • 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-17T19:32:33+00:00Added an answer on May 17, 2026 at 7:32 pm

    If you want a specific project id, you need to use @project in the array, not :projects. :projects is for a collection, not a specific one.

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

Sidebar

Related Questions

Hi I have the following form: <%= form_for featured_content, :remote => true do |f|
I have the following form: <% form_for(:tag, :url => {:action => post_tag, :id =>
I have the following form(truncated) <%= form_for(daysevent, :html => { :class => form-inline} )
I'm using the following form tag for @jobs which have job_photos included. <% form_for
I have done the following form <% form_for @anexo, :url => {:action => create},
I have the following code in my view: <%= form_for :command_selected, :method => get,
I have the following remote form_tag, whose goal is to POST the following params:
I have the following form for posting data using Ajax. <%= form_tag(check_answer_path, :id =>'myForm',
I have following class for a form: class Application_Form_ContactForm extends Zend_Form { public function
I have implemented spring-security in my application, my spring-security.xml has following form-login tag. <form-login

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.