[Rails] can www.example.com/...#!... always use controller=redirect

2010-06-26 Thread Jian Lin
In Ruby on Rails routing (using route.rb), can it say, for any URL having the form: www.example.com/ ... #! ... then use controller `redirect` ? This is so that in AJAX, some page can tag the `#!` at the end of URL so that the real content of interest is the part after the `#!` -- Posted

Re: [Rails] can www.example.com/...#!... always use controller=redirect

2010-06-26 Thread kannav rajeev
Site_url = www.example.com redirected_to #{site_url} or directly in routes.rb can work a bit you have to google On Sat, Jun 26, 2010 at 4:52 PM, Jian Lin li...@ruby-forum.com wrote: In Ruby on Rails routing (using route.rb), can it say, for any URL having the form: www.example.com/ ...