search for: controller_paths

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

Did you mean: controller_path
2006 Sep 13
2
stale spec runner?
I''ve been working with the RSpec on Rails plugin. 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
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
This function is needed for other drivers, move the code in order to help sharing it later. --- v2v/windows_virtio.ml | 26 ++++++++++++++------------ 1 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
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 anything? It was made with our new
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
2016 Apr 05
0
[PATCH 4/7] v2v: extract reusable parts of viostor regedits
There are registry entries that are needed to add some other drivers. Extracting them into a function will help adding SUSE VMDP support. --- v2v/windows_virtio.ml | 311 ++++++++++++++++++++++++++++---------------------- 1 file changed, 176 insertions(+), 135 deletions(-) diff --git a/v2v/windows_virtio.ml b/v2v/windows_virtio.ml index 14ffc51..8a0b529 100644 --- a/v2v/windows_virtio.ml +++
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::Initialize...
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 (?)
2005 Nov 23
0
Strange error additions in generated HTML
I have a complex view, that renders a couple of partials sometimes (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
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
Hello guys, I was wondering if I could display the ajax 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,
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_co...
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