lundi 11 mai 2015

Give argument to action on Rails

How do I give an argument to my action of a controller.

I have an action named action and a controller named controller. I want to give an argument to the action when I go to

http://localhost:3000/controller/action/argument1 or to

http://localhost:3000/controller/action/argument2

How do I know, which argument was actually passed in my action?

Aucun commentaire:

Enregistrer un commentaire