I thought that adding this route

match('/questions/:stripped_title').to(:controller => 'questions',
:action => 'show').name(:show_question)

But watching to the console i'm still getting the old 'id' thing from
the resource_ful route.

I have this in my view for calling that particular route.

link_to question.title, url((:show_question, question.stripped_title)

And i have this in my controller.

def show(stripped_title)
  @question = Question.first(:stripped_title => stripped_title)
  ...
end

Any suggestion ?

Thanks

-- 
Rafael George

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to