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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:35:37+00:00 2026-05-13T10:35:37+00:00

this question is related to routing-filter. I have this in my view: <% form_for

  • 0

this question is related to routing-filter.

I have this in my view:

<% form_for :post, :url => {:action => "show"} do |f| %>

which translates in the browser to this:

<form action="/en/posts/show" method="post">

after changing the I18n.locale e.g.

I18n.locale = :en

the html becomes:

<form action="/en/posts/72" method="post">

and the action is not working and I get this error:

Unknown action

No action responded to 72.

Sure, there is no action like 72. This number is the show action’s input of course. And it is correct post number. So if I put this address localhost:3000/en/posts/72 to the browser, then it gives me the page without a problem.

So why it doesn’t work in the form then?

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-13T10:35:38+00:00Added an answer on May 13, 2026 at 10:35 am

    Specify a method like that:

    <% form_for :goal, :url => { :action => 'show' }, :html => {:method => :put} do |f| %>
    

    It worked for me.

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

Sidebar

Related Questions

This question is related to my previous post Image Processing Algorithm in Matlab in
This question is related to this SO post Rather than using a recursive CTE
This question is related to awk, I suppose. I have no experience with awk.
This question is related to database/RDBMS where i have little knowledge regarding performance and
This question is related to this my question . Now I have form in
This question is related to this post but I don't see how I can
This question is related to one I asked the other day which I got
This question is related to my another question- boost::bind return a function object which
This question is related with Do we have to explicitly recycle the bitmap if
This question is related to this one . I have two constructors: - (id)initWithBanner:(NSMutableArray

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.