what if you redirect to http://localhost/MyApp/User/edit.rails?id=1
and then
$(function() { set visible tab to [selected tab]; });
which would change to the appropriate tab once the page is ready.

On Feb 12, 8:11 am, Jimmy Shimizu <[email protected]> wrote:
> I resorted to RedirectToUrl() since monorail doesn't seem to support
> anchors/hashes, only querystrings.
>
> This however doesn't work with routing.
>
> Grootj wrote:
> > Hello,
>
> > I'm using Monorail with jQuery tabbed navigation (http://
> > docs.jquery.com/UI/Tabs).
>
> > When handling a controller action, I would like to redirect to a view,
> > and control which tab is visible. Therefore, I'd like to have my
> > controller redirecting to a specific anchor in a view, something along
> > the lines of:
> > RedirectToAction("Edit", "id=1", "#roles"));
>
> > Resulting in the url:http://localhost/MyApp/User/edit.rails?id=1#roles
>
> > However, the actual result encodes the # sign to
> >http://localhost/MyApp/User/edit.rails?id=1&%23roles=&;
>
> > I'm surely missing a basic concept here. What do I need to do to solve
> > this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to