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/ ... #! ... > > 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 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 rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Thanks: Rajeev sharma -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.