#405 √ resolved
Jarred Holman

Route.generate ignores fallback params

Reported by Jarred Holman | July 21st, 2008 @ 05:08 AM | in 0.9.8

Merb::Route.generate() has a misordered statement that prevents the fallback params from being used.

"params[segment] || fallback[segment]" should be the last statement in the block.

The offending code:

value =
  if segment.is_a? Symbol
    if params.is_a? Hash
      params[segment] || fallback[segment]
      query_params.delete segment

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Attachments