Is it possible to override the to_sentence method just for one model in my rails application?
More generally, how do I modify methods for an Array of my models?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you can imagine I’m quite the noob both on Rails and Stackoverflow, but I’m trying to get it right 🙂
I’ve simply created a helper on
applcation_helper.rb, that I can call in views whenever I need. Do you think that’s the way to go, or is there a better way than that?Anyways, I’m still curious to know if there’s a way to override Array methods for Array containing a specific class/model 🙂