search for: _helper

Displaying 11 results from an estimated 11 matches for "_helper".

Did you mean: helper
2005 Dec 15
2
Error: [Object]Controller: missing default helper path [controller]_helper
...et a blank page, and the output of WEBrick reads: 127.0.0.1 - - [15/Dec/2005:11:57:06 PST] "POST /event/add HTTP/1.1" 500 0 http://localhost:3000/event/add/ -> /event/add The ONLY line which gets appended to the development.log is: EventController: missing default helper path event_helper Does anybody have any ideas what is going on? I''ve restarted the server numerous times and have even (on a tip from the mailling list archive) rebooted. Any help would be welcomed with much praise... Chris
2006 Nov 28
8
view specs with partials
When I first learned about the View specs I was very excited. I still am. However, I haven''t found them useful yet for one reason. They throw the following exception when ever a view renders another view, which is very common. ActionView::TemplateError in ''Event View message'' No rhtml, rxml, rjs or delegate template found for spec/rails/ view_spec/_info
2007 Sep 05
4
False Positives and Autotest on New Folders
False Positives I just discovered how easy it was to create a false positive when I, trying my first RSpec test, did this: ob.should eql?(''foo'') instead of: ob.should eql(''foo'') or: ob.should == ''foo'' As far as I can see, this is roughly equivalent to: ob.should false Neither eql?(''foo'') nor false causes the spec
2006 Nov 30
4
response is null when using should_render_rjs
I''m trying to use rspec to test a controller that has ajax. I have the following action: def change_ad_type_form render :update do |page| page.replace_html ''ad_sub_form'', :partial => ''text'' end end and the following spec: specify "should return Text subform on AJAX request to change_ad_type_form" do
2006 May 18
4
Problems using ''select''
I use :filter action to display form and allow record filtering. It contains form with combo box, submit button and list of record matching value in combo. filter.rb: class Filter attr_accessor :owner def initialize(params) @owner = ''''; if !params[:filter].nil? and params[:filter].has_key?(:owner) @owner = params[:filter][:owner] end end end Controler: @users =
2006 Jan 15
4
model helper location
Hi, I''m looking at the rails cookbook for uploading files[1]. At the bottom of the page it says that the sanitize_filename functioin would probably go in a helper or a library. I wonder where these files would be or what they would be called. Pehaps there are some conventions I need to know about? Thanks, Peter [1] http://manuals.rubyonrails.com/read/chapter/78
2007 Feb 11
1
Specing Rails Views
...in isolation from their controller counterpart in rpsec, so ''include AuthenticatedSystem'' isn''t called and thus ''logged_in?'' isn''t available for the test/spec. I found a couple of work arounds. 1) add a method logged_in? into the application_helper.rb or <controller>_helper.rb (where <controller> is the controller associated with the current view being tested.) 2) add a method in my setup to mock the :logged_in? call in the template, like so: @controller.template.stub!(:logged_in?).and_return(true) I am sure there are...
2006 Aug 14
0
ActionMailer in an infinite loop? Looks like framework bug.
...#39;t find where you subscribe to it! Any ideas? Here is my problem. Whenever I try to send an email I get a SystemStackError saying stack level too deep. Here is the exception trace: D:/dev/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/helpers.rb:96:in `inherited_without_helper'' D:/dev/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/helpers.rb:96:in `inherited'' #{RAILS_ROOT}/app/models/notifications.rb:1 #{RAILS_ROOT}/app/models/user.rb:52:in `send_new_password'' #{RAILS_ROOT}/app/controllers/user_controller.rb:42:in `forgot_pas...
2015 Mar 03
2
openssh-SNAP-20150304 issues
Script started on Tue Mar 3 07:35:34 2015 doctor.nl2k.ab.ca//usr/source/openssh-SNAP-20150304$ make tests [ -d `pwd`/regress ] || mkdir -p `pwd`/regress [ -d `pwd`/regress/unittests ] || mkdir -p `pwd`/regress/unittests [ -d `pwd`/regress/unittests/test_helper ] || mkdir -p `pwd`/regress/unittests/test_helper [ -d `pwd`/regress/unittests/sshbuf ] || mkdir -p `pwd`/regress/unittests/sshbuf [ -d `pwd`/regress/unittests/sshkey ] || mkdir -p `pwd`/regress/unittests/sshkey [ -d `pwd`/regress/unittests/bitmap ] || mkdir -p `pwd`/regress/unittests/bitmap [...
2006 Apr 21
10
Paypal payments and IPN
...ite_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.0/lib/active_support/dependencies.rb:136:in `require'' ./script/server:3 This error occured while loading the following files: application.rb application_controller/payment_helper/paypal.rb Could someone please point me in the right direction!!!! Thanks in advance. mjr -- Posted via http://www.ruby-forum.com/.
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