Topic: Method attributes in C# alternative for Rails
I have a requirement to assign a guid to every method (action) in Rails controllers.
With C#, it's easy to do that ( http://msdn.microsoft.com/en-us/library s.71).aspx ).
public void AddOrder(Order orderToAdd)
Author("Joe Programmer") and IsTested are 2 attributes assigned to class Account and method AddOrder accordingly.
Is there a same way in Rails or a similar trick to achieve that in Rails?
Last edited by nhatkhang (2012-05-29 05:58:18)