rubyonrailsin

A Ruby and Rails talk

Monday, March 29, 2010


[Rails] Re: Custom resource routes

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Art Shayderov wrote:
> I didn't see anything like that in Rails Guides.
> Of course you can overwrite resource routes but you will lose those
> helpers.
> I think you can either be Restful or not. You can't go both ways. If
> you are Restful, you obey the rules. That's the whole point IMHO.
> Other people can understand the structure of your resource without
> knowing the internals of your application. Rails can guess the
> structure and create helpers for you. That's the bright side.
> And from the Rest point of view value1 and value2 belong exactly in
> the query string IMHO.

Well, I can understand the fact that value1 and value2 should belong in
the query string. But lets state that those values are necessary to be
able to use the REST interface, why not putting them along in the url
then?

It would be nice also in the aspect of pritty urls.

Does anyone else know a workaround?
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive