Having trouble routing a page in ruby

Posted by rockyroadster555 on Stack Overflow See other posts from Stack Overflow or by rockyroadster555
Published on 2012-09-01T21:36:39Z Indexed on 2012/09/01 21:37 UTC
Read the original article Hit count: 236

Filed under:
|

I currently have a users model and controller, whenever a user is created it makes there profile url at example.com/users/userid. I also have a users/new page and a users/index page. The issue is that when I try to create a users/selected users page rails thinks its a user id and gives me this error. "Couldn't find User with id=selectedusers." I've previously been able to fix this by directly calling the pages in the controller e.g index, or new but I'm not sure how to handle a page that doesent have a function in the controller. Thank you

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby