Re: [Rails] REST API routes configuation in rails

2014-04-17 Thread prabhu
On Thursday, 17 April 2014 20:21:31 UTC+5:30, prabhu wrote: > > > The url that I would enter (for testing purpose )would be like below. > > http://our.api.com/term/pumas/productType/clothing/color/black > > So the term is pumas, productType is clothing and color is black. > > Hope this would give

Re: [Rails] REST API routes configuation in rails

2014-04-17 Thread prabhu
The url that I would enter (for testing purpose )would be like below. http://our.api.com/term/pumas/productType/clothing/color/black So the term is pumas, productType is clothing and color is black. Hope this would give you more clarity Thanks On Thursday, 17 April 2014 19:52:55 UTC+5:30, Chr

Re: [Rails] REST API routes configuation in rails

2014-04-17 Thread Hassan Schroeder
On Thu, Apr 17, 2014 at 6:20 AM, prabhu wrote: > I am trying to implement a web service with REST API. I would strongly recommend that you study how the default restful routes for a Rails-scaffolded model work first. It would also be good to read up on the concept of REST itself and specificall

Re: [Rails] REST API routes configuation in rails

2014-04-17 Thread Chris Tonkinson
> the url as *localhost:3000/users/new/id/6235/name/david/age/12*, I need > to access the params of id,name and age in my controller. > > So params[:id] => 6235 > params[:name] => david > params[:age]=> 12 With the little context you've provided, the best I can offer is the following guess: The

[Rails] REST API routes configuation in rails

2014-04-17 Thread prabhu
Hi, I am trying to implement a web service with REST API. So when I type in the url as *localhost:3000/users/new/id/6235/name/david/age/12*, I need to access the params of id,name and age in my controller. So params[:id] => 6235 params[:name] => david params[:age]=> 12 How do I achieve it with