search for: itemsearchpage

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

Did you mean: item_search_page
2006 Aug 09
2
How do you define a method
...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''s public, the view says "undefined method ''method_name''. Thanks for your help.. -- Posted via http://www.ruby...
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''. Thanks for your help! Victor -------------- next part -------------- An HTML attachment was scrubbed... URL: http://...