Jian Lin
2010-Jun-26  11:22 UTC
can www.example.com/...#!... always use controller=redirect
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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
kannav rajeev
2010-Jun-26  11:45 UTC
Re: can www.example.com/...#!... always use controller=redirect
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
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.