Have a look at https://github.com/jamesgolick/resource_controller
It won't solve all your problems, but some.

On Dec 21, 8:32 am, Jo Bu <[email protected]> wrote:
> Marnen Laibow-Koser wrote in post #969567:
>
> > You want nested resources.  Read the routing docs.
>
> Well yes, I could do that, but it would become very confusing. But I
> would more like a solution like (in pseudocode)
> if (URL matches "/a/:a_id/!(create|new|show|edit).*")
>        set @a=A.find_by_id(:a_id)
> Is that possible?
> And then I would have to rewrite link_to to prefix with the given
> values, right?
>
> --
> Posted viahttp://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to