search for: _whatever

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

Did you mean: whatever
2006 Apr 28
10
Sharing RJS Templates
...39;m enjoying the simplicity and power of RJS templates in Rails 1.1, but am perplexed about sharing them. I have several templates that I would like to access in various controllers, but if I moved them to views/shared/whatever.rjs, my app can''t seem to find them. I changed the name to _whatever.rjs and referenced them as "shared/whatever", but no luck. Am I missing something? Or is it not possible to share them? It seems like it should be simple, and it would conform with DRY. Actually, now that I''ve typed that out, it sorta makes sense that they can''t be s...
2006 Apr 28
0
RE: Rails Digest, Vol 19, Issue 784
...missing something obvious. To clarify after all that, I have an rjs template I want to use in 3 controllers. How do I accomplish that without having to keep 3 copies of the template? Thanks, -Ron On 4/28/06, Cody Fauser <codyfauser@gmail.com> wrote: > Ron, > > You renamed it to _whatever.rjs, but when you do: > > render :action => ''shared/whatever'' > > Rails will look for whatever.rjs and not _whatever.rjs. > > On 4/28/06, Ron Miles <ronald.miles@gmail.com> wrote: > > Hello All, > > > > I''m enjoying the simplic...
2006 Jun 01
1
link_to_remote renders Ajax.Updater, sometimes Ajax.Request
I''m new to Rails, but am really enjoying working with it. But i just hit a brick wall... I have two link_to_remote tags in two seperate _whatever.rhtml files. The targets of the updates are in edit.rhtml which does a render :partial to include the links. here''s some code: <%= link_to_remote ''Destroy'', :update => "libtable", :url => {:action => ''dest...
2007 Dec 26
2
[LLVMdev] Instantiating modules from .bc files
...erifyModule(*Mod, PrintMessageAction); The errStr and the errInfo strings were empty, but I got a crash on the verifyModule call. The filename was produced by running "llvm-gcc -c -emit-llvm tmp.cpp" on the file tmp.cpp, which just contains: #include <stdio.h> typedef struct _whatever { float fa; float fb; float fr; int i; }mystruct; extern "C" float whatever(mystruct*); float whatever(mystruct* str) { return str->fa + str->fb + str->fr + str->i; } int main(int argc, char**argv) { mystruct str = {45.0...