On 12 May 2010 06:59, nirosh <[email protected]> wrote:
> i need to define a custom finction in model which is named as
> "count_remaked_users".
> when i try to access that function from view (<
> %=User.count_remaked_users%>) i'm getting "undefined method" error.

I see the problem has been solved, but just to point out that it is
generally considered bad form to call a model method from a view, it
is considered better to set up data in the controller and display it
in the view.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to