From: Kevin <ke...@dr...> - 2006-05-02 13:35:21
|
Dan Thrue wrote: > Hi Kevin, > > I have put some examples up on rendering other views, executing other > action, and howto redirect... Its in an updated tarball on the same > location /vc.tar :) > > Regarding routing it was to control parameters and url layout... In > rails you do something like: > > map.connect 'profiles/:username', :controller => 'profile', :action > => 'view' > > I could easily implement something similar, as I've said in my two > earlier posts, this is just coded as proof-of-concept but it should be > fairly easy to make it fully usable... > Thanks. I also found this URL which covered it pretty well. http://manuals.rubyonrails.com/read/chapter/65 Routes look pretty cool, but I don't think we need them right now. We should be able to cover all of our actions/views by using the default '<controller>/<action>/<paremeters>' URI format. The redirect examples were helpful. It just goes to show how easy it is to extend. You added one method to the base controller, and now there's a simple/flexible way of redirecting between pages. I like it. It's simple and easy to follow, yet pretty powerful. It's based on rails, which a few of you already have experience with. I'll try and converting one of our pages to it and see how it goes. -Kevin |