similar to: helpers not rendered in views?

Displaying 20 results from an estimated 1000 matches similar to: "helpers not rendered in views?"

2006 Oct 04
1
String.should_hav_tag
I''ve just upgraded to rspec 0.6.4 and several specs were broken. All for the same reason. String.should_have_tag doesn''t seem to be supported any longer. It used to be possible to write assertions like: response.body.should_have_tag :tag => "form" or "<html><body/></html>".should_have_tag :tag => "body" But these fail
2007 Jan 16
2
Links in view specs
Hi I have this simple view (used by the Gap controller): <h1>Gap#index</h1> <%= link_to "Get a GAP quote", :action => "get_quote" %> And this spec: context "A rendered gap/index" do setup do render ''gap/index'' end specify "should have a link to the get_quote page" do
2006 Nov 10
3
Specifying views
I''m trying to spec my views with 0.7.1 on edge rails per the instructions on the rspec site [1] and David''s blog [2], but I''m not having much luck. Here''s my spec in specs/views/accounts/ new_view_spec.rb: require File.dirname(__FILE__) + ''/../../spec_helper'' context "The new account form" do specify "should have an
2006 Oct 07
0
should_have_tag: What am I doing wrong?
My spec contains: response.should_have_tag "<legend>", :content => "Add new Contact" The output is: Spec::Expectations::ExpectationNotMetError in ''The ResourceController should do something when I try to edit contacts'' .. <legend>Add new Contact</legend> .. should include [[{:content=>"Add new Contact",
2006 Jan 23
1
learning how models, controllers, and views pass data
As a noob to Rails and web development in general, I think I still need a broader understanding of how Views, Controllers, and Models pass information and variables to each other. I''m creating a site that allows for email campaigns. I have a ''create_email_controller'': class Admin::CreateEmailController < Admin::BaseController layout ''admin'' def
2007 Feb 12
6
Specs for Ajax partials with unicode characters
Hi Not sure if this is more Rails or RSpec related... I''ve got an app with an RJS view that updates a div in a page with the contents of a partial. The partial contains a non-ascii character namely a pound sign. I set up a simple test app with this RJS view: page.replace_html("test_div", :partial => "test_action") and this _test_action.rhtml:
2005 Aug 09
0
Update: In-place textarea patch/diff for controls.js
Ok, as per Thomas'' request - TEXTAREA in-place editor support now includes a unit test. (Nice framework btw) Updated svn diff attached. -San --- "sanzbox@yahoo.com" <sanzbox@yahoo.com> wrote: > From sanzbox@yahoo.com Tue Aug 9 00:39:19 2005 > Date: Tue, 9 Aug 2005 00:39:19 -0700 (PDT) > From: "sanzbox@yahoo.com" <sanzbox@yahoo.com> > To:
2006 Apr 03
4
page.visual_effect :highlight not working
I just upgraded Ruby to 1.8.4 and Rails to 1.1 and I''m in the middle of changing my Javascript code over to the Scriptaculous helper functions. page.visual_effect :highlight, "some_div" seems to be broken. Instead of fading, the background color of the element stays highlighted. page.visual_effect works for other effects, though. Any ideas? Thanks. -- Posted via
2007 Jun 22
5
assert_select trying to verify the presence of a textarea
Hello, One of my functional tests looks like this: def test_presence_of_free_text profile = Profile.find :first post :edit, {:id => profile.id} assert_select "textarea", :name => "record[free_text_ec]" end The test results in a failure, because the element cannot be found. I''m pretty sure the element should be there, and I''ve tried
2007 Aug 25
2
insert HTML <select> value into a textarea - Works in IE6, not in FireFox or Opera
I have a simple form at http://mstramba.com/fb5.html It''s just a <select> and a textarea. The idea is to be able to either type into a text area directly or choose from a list of saved words in the select box. When a new choice is made from the select, it automatically gets inserted into the text area. This code DOES work in I.E6 (on my machine (XP pro), but doesn''t
2007 Apr 13
2
inplace editor and textarea
Hi, I have an inplace editor and I can access the innerHTML value of the created form. However the innerHTML gives "<textarea>....</textarea> ..." How can I access the textarea value? I tried to do innerHTML.textarea.value but it didn''t work. Any ideas will be appreciated. Thanks, Joe -- Posted via http://www.ruby-forum.com/.
2007 May 01
3
How to get TinyMCE editor value( text content)
Hi everybody ! I included one tinymce editor in my rails application. But I cant get the textarea content from the tiny editor. I dont know how to include the submit button . And also I wrote a javascript for getting the textarea content when the user press the enter button. Its also not working. Why it is. tinyMCE.init({ mode : "textareas", }); <textarea name="msg"
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
I sent this on Friday but somehow managed to email it to the wrong email address! ---- Attached is a patch to add external (AJAX) loading of content to the InPlaceEditor. 2 extra options have been added: loadUrl: a URL to load the content from. If this is present, it will be used instead of the innerHTML. fieldId: I had to add this so we know what the text field is when we''ve
2008 Aug 26
0
character limit for tinyMCE textarea
Hi, I am using TinyMCE editor for textarea.how to limit the characters in that textarea. 500 is limit for that textarea,how to limit characters for this textarea in client side. alert message after 500 characters or displaying dynamic count of characters above the text area. thanks, Ravi. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
2008 Mar 09
0
textarea content text with tag html
I building a form for user profile editing. There is a textarea for description field. If the user insert in text area the code of a youtube video file, <object ... when he reeditingthe the descrption the text area have problems with rendering. the code of view is: <textarea name="description" id="description" ><%=@description></textarea> Is there a
2007 Oct 05
0
Rpad textarea handling
Hi. I'm trying to write an Rpad that edits scripts. Textarea seems like an obvious tool, but unlike other input elements, it seems that the contents are not sent to R on 'calculate'. To illustrate using the page below: load, F9, edit text, F9. The original contents of 'script' are restored. Furthermore, I can't eliminate the leading and trailing whitespace in the
2006 Mar 10
4
Problem with ajax and textareas on firefox but works on IE
Hi folks, I''ve been trying to figure this one out for a few hours now and can''t seem to understand what I might be doing wrong here. Basically, I have a textarea which has a little icon next to it which will fire off a reset of the original comment if pressed. It works under IE so that when the user types some garbase in to the textarea, and clicks the icon, the contents
2007 Sep 28
1
evalJSON problem
Hey there, I have a FCKeditor(a WYSIWYG online html editor) and i want to bring it to a page by Ajax and JSON by a php request-catcher. I have sth like this in my ajax request: new Ajax.Request(''myactions.php'', { method:''get'', parameters: {action:''bringeditor'', id:<?php echo $uid; ?>}, onSuccess: function(transport){
2006 Dec 13
4
RSpec and simply_helpful
Hi All I''m having some problems running my view specs when using simply_helpful. I have it semi-working via the following: module SimplyHelpfulHelper def self.included(base) base.send :include, SimplyHelpful::RecordIdentificationHelper base.send :include, SimplyHelpful::RecordTagHelper end end context "The index template" do setup do @shift =
2006 Nov 07
3
include Helper in context?
Brandon, can you get your Helpers to work in rspec 0.7 ? I''m including them in the context but the render fails to see it. If you have it working, I''ll go back and bang my head against it some more, otherwise I''ll file a bug! Many thanks, Jerry context "account/login (view)" do include StandardHelpers specify ''displays title