2

I have migrated a project from Rails 2.3 to Rails 3.1 and I have the following issue. Using any of these routes configs:

match 'help/*details' => 'help#index'

# or

match ':controller/:action/:id'

The matching works, but inside the specific action (from controller) I don't have the details parameter or the id. raise params.inspect returns {}.

This thing happens only with parameters from routes (if let's say I use JavaScript for an ajax request, parameters are sent and received as they should be).

Jordan Running
  • 102,619
  • 17
  • 182
  • 182

1 Answers1

1

There is a similar question here click

try:

match 'help/*details' => 'help#index', detail=> "something?"
Community
  • 1
  • 1
Cygnusx1
  • 5,329
  • 2
  • 27
  • 39
  • That's a different issue. I am using normal routing config (like match ':controller/:action/:id' ) And when I call /users/show/1 I get no error, but in users controller, in show action, params[:id] is nil and should be 1. – user1023835 Nov 02 '11 at 06:51