search for: item_search_page

Displaying 2 results from an estimated 2 matches for "item_search_page".

2006 Aug 09
2
How do you define a method
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") Here, item_search_page is a variable in the view''s controller, which creates a new ItemSearchPage object. And I defined "method_name" in the class: class ItemSearchPage def method_name end end So, although I defined the method and it'...
2006 Aug 06
0
view cannot see the method...:(
Hi all, I just can''t figure why the view cannot find a method that I defined in another class. I do this in the view: <%= check_box("item_search_page", "method_name") Here, item_search_page is a variable in the controller, which creates a new ItemSearchPage object. class ItemSearchPage def method_name end end So, although I defined it and it''s public, the view says "undefined method ''method_name'...