search for: controller_path

Displaying 20 results from an estimated 36 matches for "controller_path".

2006 Sep 13
2
stale spec runner?
...n. Great job guys! The Rails spec runner (server) definitely speeds things up nicely. But I''m having some trouble keeping it functional. When I start the server, the first spec execution runs fine. Every following execution fails though. Each spec complains about the ''controller_path'' missing from my controller. Odd. This only seems to affect controller specs. I''ve tried a few things to no avail. Any tips? 1) NoMethodError in ''Guesser play start'' undefined method `controller_path'' for GuesserController:Class ./spec/controlle...
2006 Jan 04
7
recongizing the current controller in views
alright i am doing a simple self blog in ruby. Now iw ant to be able to determine which controller action i am in inside _form.rhtml. So if i am in new or the creation control than i want to insert the text box for topics else i want to display the topic base on id. (i could do those already, i just need help finding the right if statement.. something like (if currentpage ==
2016 Apr 05
0
[PATCH 2/7] v2v: extract controller offset discovery as a function
...file changed, 14 insertions(+), 12 deletions(-) diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml index b0d9d08..14ffc51 100644 --- a/v2v/windows_virtio.ml +++ b/v2v/windows_virtio.ml @@ -226,18 +226,7 @@ and add_viostor_to_driver_database g root arch current_cs driverdir = *) let controller_path = [ current_cs; "Control"; "Class"; scsi_adapter_guid ] in - let controller_offset = - match Windows.get_node g root controller_path with - | None -> - error (f_"cannot find HKLM\\SYSTEM\\%s in the guest registry") - (String.concat &quo...
2006 Jan 14
1
controller_path says undefined local ....
undefined local variable or method `controller_path'' Do I need to install anything explicit? For the nosies, I''m looking for (building) a breadcrumb routine (as page independant/DRY-less as possible). Like "mods > crm > customer > add contact" Regards, Gerard -- "Who cares if it doesn''t do an...
2006 Jan 04
0
Simple print statement (was: recongizing the current controller in views)
All (and kevin), After flying high for a while on Rails things, I''m down to the nitty gritty of Ruby stuff. Messing with vars and printing them out on a web page. I found the controller_path in the API docs; However when putting this in a controller: @test1 = controller_class_name @test2 = controller_name @test3 = controller_path And this in a partial: Test1 <%= @test1 %><br/> Test2 <%= @test2 %><br/> Test3 <%= @test3 %><br/> I get this in my br...
2016 Apr 05
0
[PATCH 4/7] v2v: extract reusable parts of viostor regedits
...FT covers the key here: - * https://technet.microsoft.com/en-us/library/cc957341.aspx - * That page incorrectly states that the key has the form "000n". - * In fact we observed from real registries that the key is a - * decimal number that goes 0009 -> 0010 etc. - *) - let controller_path = - [ current_cs; "Control"; "Class"; scsi_adapter_guid ] in - let controller_offset = get_controller_offset g root controller_path in + let driverdesc = "Red Hat VirtIO SCSI controller" in + let provider = "Red Hat, Inc." in - let regedits = [ -...
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
...;) ] config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/lib") ] And within rails_shared/controllers I have a login_controller. When I hit the stie I see this: Routing Error Recognition failed for "/login/login_form" I had previously tried to use controller_paths but that had never worked for me. Anyone have any ideas? Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060810/5bf74f4c/attachment.html
2005 Nov 17
7
render :partial in mail template
Hi, Is it possible to render a partial template from within a mail template? I get the following error undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #8): 5: 6: <%= @url %> 7: 8: <%= render_partial ''sig_admin'' %> Jeroen
2006 Aug 11
1
Engines & Rails 1.1.6
...ing of who or what is out here. Please replace your copy of engines with the 1.1 release branch: cd /path/to/my/app/vendor/plugins rm -fr engines svn co http://svn.rails-engines.org/engines/branches/rb_1.1 engines This patch changes the behaviour of safe_load_paths to use the Configuration#controller_paths array, which isn''t currently used by Rails. Odd, that. So now, the engines plugin patches Rails to actually use that configuration option as it would appear to have been intended. A side effect is that you can add additional paths to controllers in your environment.rb: Rails::Initializ...
2006 Mar 22
9
render partial from withit mail template
Hi, I''m trying to include a partial in an email template but it throws me this: undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #12): 11: 12: <%= render :partial => ''footer'' %> I guess email views are a little different from normal ones as they don''t seem to have a access to a proper controller (?) is there a quick way a...
2005 Nov 23
0
Strange error additions in generated HTML
...ometimes (and not reproducable) I get additional "output" like follows sprinkled in the generated HTML: �./app/helpers/application_helper.rb:3: warning: method redefined; discarding old tr_stat ./vendor/rails/actionpack/lib/action_controller/base.rb:315: warning: instance variable @controller_path not initialized ./vendor/rails/actionpack/lib/action_controller/base.rb:315: warning: instance variable @controller_path not initialized ./vendor/rails/actionpack/lib/action_controller/base.rb:315: warning: instance variable @controller_path not initialized A reload fixes this. this is using...
2009 Feb 03
1
Passing args to generator
I have some default_options in generator and when I wish to change they value with --option_name I get only logical true instead of string ... default_options :option_name => "Some string" ... def add_options!(opt) opt.separator '''' opt.separator ''Options:'' opt.on("--option_name","Some Text") { |v| options[:option_name] = v
2006 Aug 01
8
Decoupled observers for controllers?
In the Rails Recipes book the recipe "Keeping track of who did what" explains how to do decoupled observing of models. In my application I''d like to do a similar thing but watching the controllers. For example, when somebody hits the login method of the Security controller, I''d like to make a note of it. In this case I could observe the User model and watch for
2016 Apr 05
22
[PATCH 0/7] Add support for SUSE virtio windows drivers
Hi there, SUSE ships Virtual Machine Driver Pack for the virtio windows drivers. Get v2v and customize to discover them and use them if available. Cédric Bosdonnat (7): v2v: check next free oem%d.inf in /Windows/Inf v2v: extract controller offset discovery as a function customize: add support for pvvxsvc v2v: extract reusable parts of viostor regedits v2v: adapt the subkey in Enum
2006 Jan 29
3
Models within Modules
I have models within a module file and access them from my controller with Module::Model syntax, but only get unitialized const errors. I even tried require ''mymodule'', etc, no avail. The Prg Google has ZERO help on this, and I can''t believe more people haven''t run into this issue. What''s the deal? Frustrated, John -- Posted via
2006 Jan 29
1
Rendering partials with ActionMailer
Can ActionMailer render partials (like .sigs, for example)? When I try to render :partial, I get an error: undefined method `controller_path'' for SomeNotify:Class I also tried putting the partial within /shared, but it likes that even less -- it can''t seem to find the template. Jake -- Posted via http://www.ruby-forum.com/.
2012 Dec 05
1
Ajax response in a modal box
...jax response in a modal box. I could not find anything satisfying on the web. I am new to ajax. This is what I was trying. $(document).ready(function() { var clicked1; $(".inline").click(function(e) { clicked1 = $(this).text(); $.ajax({ type: ''GET'', url:''/controller_path'', async: false, data:{ foo1:clicked1 }, success:function(data){ $(".inline").colorbox({inline:true, width:"35%",height:"200px"}).show(); } }); }); }); And my div is hidden at the beginning. <div class="inline" style="d...
2006 Feb 14
3
Arranging Models
I know we could arrange controllers as modules. Can we also arrange models in modules? -- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/d65f88c2/attachment.html
2007 Aug 15
5
Misc notes concerning view_paths
...aths being an array inside an array. (See line 277 of initializer.rb) I can set config.action_controller.view_paths separately and then results are saner, but the way config.view_path works now is a bit confusing. My suggestion is that we change config.view_path to behave more like config.controller_paths. First, it should be renamed to config.view_paths. It should have a default value of [''app/views''], so that one can add to it by pushing/unshifting. Next I suggest that for consistency, action_mailer deprecates its template_root too, and get a view_paths just like action_c...
2016 Apr 06
8
[PATCH 0/4] v2v: simplify Windows registry patching
The way we patch the Windows registry in order to allow it to boot off a virtio-blk drive was initially conceived by comparing the state with virtio-blk driver properly installed, to that without. However, we don't want to replicate the Windows PnP system; rather we need to apply just enough edits to make the system boot, and then let the Windows PnP manager figure out the rest. This series