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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:40:15+00:00 2026-05-27T01:40:15+00:00

While posting form with miltiple images i get different redirect than while posting on

  • 0

While posting form with miltiple images i get different redirect than while posting on local.
Online server has Phusion Passenger Apache/nginx.
Local Server uses standard Webrick.
Rails 3.0.9

Application is internationalized (2 languages) English and Croatian

On Local machine there is no problem it redirects perfectly.
http://localhost:3000/en/references

Online Server redirects with extra language segment in URL.
http://somesite.com/en/en/references

This throws error, page doesn’t exist.

controller update action:

def update
  @reference = Reference.find(params[:id])
  if @reference.update_attributes(params[:reference])
    redirect_to(references_path, :notice => 'Reference was successfully updated.')
  else
    render :action => "edit"
  end
end

Routes are handled like this.

scope "(:locale)", :locale => /hr|en/ do
  resources :references
  resources :reference_groups
  resources :pages
  resources :photos
end

Log output from server is:

Started POST "/hr/references/1" for 78.0.196.78 at Wed Nov 23 12:55:11 +0100 2011
  Processing by ReferencesController#update as HTML
  Parameters: {"reference"=>{"name_en"=>"Test Reference", "position"=>"1"...}
[paperclip] Saving attachments.
[paperclip] saving /home/alfaplan/alfaplan/public/images/photos/medium/katalog-zaks_012-l.jpg
[paperclip] saving /home/alfaplan/alfaplan/public/images/photos/thumb/katalog-zaks_012-l.jpg
[paperclip] saving /home/alfaplan/alfaplan/public/images/photos/original/katalog-zaks_012-l.jpg
Redirected to http://alfaplan.host25.com/hr/hr/references
Completed 302 Found in 1344ms

Started GET "/hr/hr/references" for 78.0.196.78 at Wed Nov 23 12:55:12 +0100 2011

ActionController::RoutingError (No route matches "/hr/hr/references"):

Any ideas where the problem might be?

I am fairly new to RoR and this is my first question here.

  • 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-27T01:40:15+00:00Added an answer on May 27, 2026 at 1:40 am

    Here it goes.

    It seems to be a Paperclip – Apache bug.

    Disabling mod_security in Apache cconfiguration, or if available in .htaccess file prevents doubling your URL segment.

    Disabling mod_security isn’t very smart so people from hosting are now trying to isolate mod_security rule which is causing the problem.

    Pulled answer here http://railsforum.com/viewtopic.php?id=42079.

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

Sidebar

Related Questions

hie i have a html form and while posting a request to a url
I'm posting a form to an MVC action using jquery Ajax. Server side, I
While porting an application from SQL 2005 to SQL Server Compact Edition, I found
I have been following the ExtDirectSpring form posting guide closely. I defined an api
So I'm posting $_POST['location'] using AJAX in my script.js file and the form on
I'm posting data from a Flex app to a php script. GET works fine
I have a form that does some extensive Javascript stuff before finally POSTing to
I'm doing the following: // Post to the server $.ajax({ type: 'POST', url: $(form.edit_item).attr(action),
So I have this form which executes a pretty long data posting using AJAX,
I have a form using the form jQuery plug in to handel the posting

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.