Hi, I am a newcomer to the Rails Front. Currently reading chapter 17 of Agile Web Development on Rails. But a burning question, that I would appreciate anyone being able to verify for me!
Here goes: What I am hoping of trying to build is a site where I can have a page for individual entry in the database. So if it were users: I wanted to have a page in the the format: www.example.com/user1 AND www.example.com/user2 and display information pertaining to that particular user. How would one go about doing that. Up until now reading in the book, it seems to indicate that I can only have a www.example.com/~controller_here~. Now I also have a faint clue that you can set a controller default(map root). If I was to do that, would I need to have a new controller for each user? That's the issue because it does not seem much of a DRY way of getting this done. Another quick add-on question that just came to my head while thinking about this, if I was to implement search functionality. Say www.example.com/search/"whateverquery". Is it still possible in that case to like redirect to the result ..if it was "user1" (www.example.com/user1). __ I appreciate you taking the time to read through this question. Rest assured, I'm going at full speed to get the answer to these questions myself. Nothing else keeps me up at 3:53Am :) Thank You, -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

