Thanks for the reply

unfortunately the default routes don't work with resources

On Mar 26, 6:22 am, "Michael D'Auria" <[email protected]>
wrote:
> This is merely a guess, but check out the default route handler, perhaps you
> can default a particular resource?
> Michael
>
> On Wed, Mar 25, 2009 at 10:39 PM, Kennard Smith <[email protected]>wrote:
>
>
>
>
>
> > I'm trying to change the path of a resource in my app to /
>
> > For example, if I had
>
> >       resources :books
>
> > everything is dandy with normal URLs
>
> >       /books/1
> >       /books/new
>
> > but, I want my resources to be the root of the domain like
>
> >       /1
> >       /new
>
> > I can't find a way to do it.
>
> > i've tried a few things
>
> >       resources :books, :path => "/"
>
> > and
>
> >       resources :books, :path => ""
>
> > do not work, as the url generation breaks.
>
> > Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to