similar to: testing actionmailer from a controller

Displaying 20 results from an estimated 30000 matches similar to: "testing actionmailer from a controller"

2006 Feb 06
1
template choice error (layout.rb)
Hey, I installed the rjs plugin yesterday and started using it for one set of views. Today I notice that in an entirely separate controller/template I''m seeing this error: TypeError (can''t dup NilClass): /vendor/plugins/javascript_generator_templates/lib/add_rjs_to_action_controller.rb:41:in `dup''
2006 Jan 24
2
webrick and in_place_editor_field
I''m having a strange problem with webrick spinning forever. I have a view ''list'' that renders a collection: <%= render :partial => ''item'', :collection => @items %> The item partial looks like so: <div id="item_<%= item.id %>"> ... <div id="price"> <%= in_place_editor_field :item, :price
2006 Feb 07
3
in place edit, save on blur
I thought I''d seen some discussion on this, but can''t find it. I have a text area that I''d like to save on blur unless the user clicks cancel. Anyone got a nice example of this? It''s non-obvious to me how I force the submit via javascript. Thanks, pt. -- Parker Thompson http://www.parkert.com/ 510.541.0125
2006 Jan 25
2
inserting column headings between grouped rows
Hello all, I have what is conceptually a pretty simple poblem, but can''t think of an obvious solution. I have a group of objects (@items), that I wish to render as rows. Items have dates, and I wish to group them by that date, inserting a header row each time the date changes e.g.: header row row 11/11/2004 row 11/11/2004 header row row 11/23/2004 I''m currently
2006 Feb 07
1
Re: keeping plugins up to date [was: template choice error (layout.rb)]
n 2/6/06, Cody Fauser <codyfauser@gmail.com> wrote: > Parker, > > I had missed one of the patches from the Rails trunk, but that is > fixed now. Try checking out the latest version of the plugin from the > svn repository. The problem occurred when using render :layout => > false. The latest revision is 17. Let me know if you continue to have > problems with the
2006 Jan 13
1
missing Enum class (windows install)
Hey, mac died this week (launch is Monday), trying to deal by getting Windows set up for development. I''ve got everything up and running, but when I try to hit my app I get an "unitialized contstant Enum error". Sure enough, enum.rb doesn''t exist (according to windows search) on the machine. Now I''m trying to figure out how to fix this. I installed Ruby by
2006 Jan 28
1
like clause for find
I''ve done a bit of searching, but got too much noise and no perceivable signal. So, I apologize if I''m just missing this in the docs, seems like it should be easy. I''d like to provide some basic search functionality in my app by allowing the user to enter in some text and generating a query like so: SELECT * FROM things WHERE field LIKE ''%input''%;
2006 Mar 21
0
Job - San Francisco
Tom (below) is looking for 1-2 programmers in SF that know rails or have a strong background in web & OO development and want to learn. ---------- Forwarded message ---------- "thomaspaynejr@yahoo.com" has forwarded you this craigslist.org posting. Please see below for more information. ________________________________ Do you like wine? C''mon, of course you do! We are
2005 Dec 24
0
acts_as_taggable - adding users and normalizing tags
Hey all, I''m wondering how people are using acts_as_taggable. Two things I''d like to do that aren''t supported out of the box are tag normalization and user attribution. I can''t imagine I''m the first to think about doing this. >From a schema perspective these things both seem simple, just put the normalized tag in the tags table, and have a join
2005 Dec 15
2
field update not happneing
Hi, I''m having some scriptaculous weirdness, hoping this is an easy fix. I have a js function defined in my header: function flash(msg){ $(''flash_msg'').value = msg; alert(msg); // for debugging ... } This is being called like so: <%= form_remote_tag( :update => ''admins'', :url => { :action =>
2007 Feb 06
2
Testing RJS actions
Hi all ! This is my test: def test_destroy_xhr Article.expects(:find).with("1").returns(@article = mock("article")) @article.expects(:destroy).returns(true) delete :destroy, :id => 1, :format => :js assert_template "destroy.rjs" end And my implementation: def destroy @article.destroy respond_to do |format| format.html {
2006 May 13
0
integration: assert_template() always fails...
Hi Coders :-) Maybe somebody can help... My integration tests always fail when using assert_template() class ShopTest < ActionController::IntegrationTest def test_very_simple get("/shop/index") assert_success assert_template("/shop/index") end end the "/shop/index" is a valid url which renders flawlessly in the browser. however, the test
2006 May 06
1
depot test-driven development exercise
(I posted this yesterday but within 20 minutes my thread was hijacked so I''m not sure anyone really saw this.) I''ve been working my way through the Agile book and just completed the depot sample application. I learned quite a bit along the way. On page 171 we are led through the creation of a test (that fails) for new code. The new code (a search function) is left as an
2006 May 05
1
Agile Rails (1st edition), depot TDD "exercise"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I''ve been working my way through the Agile book and just completed the depot sample application. I learned quite a bit along the way. On page 171 we are led through the creation of a test (that fails) for new code. The new code (a search function) is left as an exercise for the reader. Well, I think I solved it but I''m not
2006 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format. By default my application is using forgot_password_en.rhtml template. I read in the ROR Recipes book "ActionMailer sees these templates, recognizes the pattern in their file names, and automatically sets the MIME type of the message to multipart/alternative and adds
2006 May 11
3
Textile/RedCloth and h() incompatible?
If a user enters the Textile-based code for an image, say: !>graphic.png! the textile() method will successfully render a right-float image. Now, if I want to escape the user''s text using h(), the ''>'' is turned into an &amp;. Obviously, the image then fails to render in a browser. Is there a work around for this? I guess what I''m really asking
2004 Aug 06
0
radio station infrastructure.
heyho i was going to reply to the last string of questions about this a few mails ago on the list I have a beta scheduling system witten in php with sql and a drop of python...its all web based, is a multiuser system and some of the features include: 1. upload audio to encoding machine via web interface 2. add live urls 3. annotate tracks with meta info 4. drag and drop timezone 'aware'
2006 Mar 22
3
Rendering partials in ActionMailer?
Hello, Is anyone out there rendering partials successfully in ActionMailer templates? I am having trouble with this, and wasn''t sure if it was my configuration or something with a version of Rails I''m running. We''ve got over 15 mailer templates, all working like a charm. But we have a piece of shared code, that we''d really like to not have to copy &
2009 Nov 30
0
Problem with ActionMailer in controller specs - works in model specs
I am having a problem with my controller tests that include ActionMailer. The tests work for the model test, e.g. I have a UserNotifier model that sends account activation e-mails and the spec''s work fine. When I run the UsersController spec''s that test some of the same functionality (e.g. uses the UserNotifier model), I get: ArgumentError in ... wrong number of arguments (0
2006 Nov 26
0
send email using Actionmailer => error 500 gets rendered :/
I''m experiencing the strangest problem with actionmailer. The following code reults in a 500 server error. --- UserMailer.deliver_register [some arguments] render :partial => "validate_email" , :status => 200 --- The strange thing is, Actionmailer sends the email just fine. But instead of rendering the partial, a 500 error is being returned. I''ve also tried to