search for: foo_helper

Displaying 4 results from an estimated 4 matches for "foo_helper".

Did you mean: fb_helper
2006 Feb 14
22
Teaching Models to Render Themselves in the Controller
I am trying to teach my models how to render themselves, i.e. <%= my_model_object.render() %> Let me explain my reasoning and proposed method before this gets shot down as anti-MVC. Let''s say I am writing a contact-management application. I have a class Contact. I will need to display this class all over the application. My first choice is to use a partial. Now I can
2015 Sep 18
2
ExecutionEngine::runFunction and libffi
I noticed that runFunction (for MCJIT) is very limited. At the same time the interpreter already has a fairly generic way of calling functions from a pointer and a Function * (for description) using libffi. Would it make sense to pull that functionality out into a small support library and using it in MCJIT? As is runFunction isn't particularly usable. -- Johannes S. Mueller-Roemer, MSc Wiss.
2006 Jun 13
0
Silience Missing Helper Warnings?
Is it possible to silence the missing default helper path warnings? There are many cases where I don''t need any specific helpers for some controller, so I don''t think I should be required to have an empty foo_helper.rb just to eliminate the warnings from my web log. -- Posted via http://www.ruby-forum.com/.
2007 Nov 08
1
Running tests from another test case
I''m in the position that would be really useful for me to run in a testcase a test belonging to another testcase. Assuming I do not want to use modules, how could I do that? My code would be something like this: class MyTestCase < Test::Rails:TestCase def myTest matc = MyAnotherTestCase.new end end The code above seems to work but when I run MyTestCase all the tests