[Nitro] porting from 0.41 to 0.5

George Moschovitis george.moschovitis at gmail.com
Tue Sep 11 06:51:31 EDT 2007


Try this:

  def view
      site = request[:site]
      ...
  end
  ann :view, :match => %r{/view/(.*)$}, :params => [:site]


-g.


On 9/11/07, Arne Brasseur <arne at arnebrasseur.net> wrote:
>
>  George Moschovitis schreef:
>
>  Also, can't the 'router' be used to do special URI to controller mapping
> > more flexibly then the 'dispatcher' can?
> > If not could you maybe give an example of what the router is useful for?
> > It's not used with normal controller/action/param URI's, right?
> >
>
> This is an excellent idea. You can use router to rewrite the URI!
>
> Could you please give a short example of how this works?
>
> Thank you very much!
> (ab)
>
> --
> Arne Brasseur
> http://www.arnebrasseur.netarne@arnebrasseur.net
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070911/3e252b4d/attachment-0001.html 


More information about the Nitro-general mailing list