Displaying 1 result from an estimated 1 matches for "grammar_tense_cod".
Did you mean:
grammar_tense_code
2006 Aug 20
0
Re: Problem with overriding rails accessor methods
...an accessor method in my model class and within this method I
> did a "super" call which failed. Of couse my real method would be doing
> more but here is the basic code that shows the problem:
>
> class Word < ActiveRecord::Base
> belongs_to :verse
> belongs_to :grammar_tense_code
>
> def grammar_tense_code
> obj = super
> end
> end
>
> In my view I call: <td><%= word.grammar_tense_code.descr %></td>
>
> The error message I get is: "super: no superclass method
> `grammar_tense_code''".
>
> I reali...