search for: controller_class_nam

Displaying 8 results from an estimated 8 matches for "controller_class_nam".

Did you mean: controller_class_name
2007 May 23
8
Rails Rendering diagnostics.rhtml in Controller Spec
Forgive me if this isn''t the proper list. It''s specific to the rSpec Rails plugin. The problem is, some controller actions are rendering the "diagnostics.rhtml" template when I''m expecting it to render something else in a controller spec. I''m assuming this is the template that displays the error message and a stack trace when an error is raised in the
2006 Oct 28
2
where is the "record" method??? i.e. which is used in generators (e.g. scaffold_generator.rb)
...here the "record" method is defined. Its used in generators like in the scaffold generator. An extract from it is below (taken from scaffold_generator.rb): def manifest record do |m| # Check for class naming collisions. m.class_collisions controller_class_path, "#{controller_class_name}Controller", "#{controller_class_name}ControllerTest", "#{controller_class_name}Helper" Thanks Greg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To...
2006 Jun 17
0
Some Rails and ZenTest questions... [long]
...tock" projects without such tweaks. Refactoring controller test cases -- I aggressively refactor test cases, along the lines of Astel''s book, so I''ll commonly have 3-6 test cases (classes) per controller. Eric Hodel has already helped me figure out how to use the @controller_class_name variable in an abstract intermediate class between ControllerTestCase and my test cases to let Test::Rails::ControllerTestCase resolve the file->class mapping. However this code is getting repetitive between controller trees def setup return if convert_classname == File.basena...
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 browser: Test1 MainController Test2 main On the third one I get a: undefined local variable...
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep getting the following error when I run "generate login Account": /usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in `manifest'': No manifest for ''login'' generator. (NotImplementedError) from (eval):3:in `__send__'' from (eval):3:in `manifest'' from
2006 Feb 25
31
Ajax Scaffold Generator for Rails Released
I just released a whole new version of the Ajax Scaffold Generator (for Ruby on Rails). The generator creates a scaffold page like the typical rails one, except adding, editing and deleting are all done inline. The generated scaffold is valid XHTML strict and fully styled right out of the box. Check out the demo: http://ajaxscaffold.height1percent.com/ And the how-to:
2006 Feb 07
11
Possible Rails Security Issue?
I have an e-commerce site and users check out with a form. The results of that form are sent to a "confirm your order" page via POST. I take great pains to NEVER store the full credit card number on my server--just the last 4 digits. I was very surprised to find that by default Rails will record POST requests with parameters in the production.log. And those parameters
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...fore_filter Proc { |controller| return false if controller.params["stop_action"] } ...can now be as: before_filter { |controller| return false if controller.params["stop_action"] } [Jeremy Kemper] * Made the following methods public (was protected): url_for, controller_class_name, controller_name, action_name This makes it easier to write filters without cheating around the encapsulation with send. * ActionController::Base#reset_session now sticks even if you access @session afterwards [Kent Sibilev] * Improved the exception logging so the log file gets almost as...