Jump to content

The ultimate community for Ruby on Rails developers.


Photo

url without controller and action

url controller action rails2.3

  • Please log in to reply
No replies to this topic

#1 conal4284

conal4284

    Passenger

  • Members
  • 7 posts

Posted 03 October 2013 - 09:28 AM

I want a url without controller and action in the urls. My current url looks like :

 

/productdetail/show/some-model-name.html

 

I want to make it :

 

/some-model-name.html

 

my controller name is productdetail and method name is show.

 

I am using rails 2.3.15, and also using friendly_id 3.2.1

 

Any suggestions would help me lot.

 

 

Thanks in advance.







Also tagged with one or more of these keywords: url, controller, action, rails2.3

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users