[Rails] Re: How do you define a method

Dr Nic drnicwilliams at gmail.com
Tue Aug 8 19:11:43 GMT 2006


Victor Al wrote:
> Hi all,
> I was wondering if anybody could help me figure why a view cannot find a 
> method that I defined in another class. I do this in the view: (let's 
> say index.rhtml)
> 
> <%= check_box("item_search_page", "method_name")

Off the top of my head, I think this will attempt do get the value from 
the following call within the controller:

@item_search_page.method_name

APIs here: 
http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list