I have a postscontroller, with a show method:
def show
…
end
I want to match the following url pattern to this controller action:
/posts/123
Shoudl go to the postscontroller, show method with id=123
I have a postscontroller, with a show method:
def show
…
end
I want to match the following url pattern to this controller action:
/posts/123
Shoudl go to the postscontroller, show method with id=123
Have a read of this:
It explains all about the rails routing system.
On 15 October 2012 02:50, S Ahmed [email protected] wrote:
Shoudl go to the postscontroller, show method with id=123
As I guess that you are a beginner with Rails I suggest that you work
through a good tutorial on Rails so that you will understand the basic
principles. railstutorial.org is good and is free to use online.
Make sure that any tutorial you try is for rails 3 and make sure you
install the exact version of rails that the tutorial is based on.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs