search for: link_block_to_remote

Displaying 2 results from an estimated 2 matches for "link_block_to_remote".

2007 May 28
2
helper with block compile error
HI, i''m trying to write a helper that replaces link_to_remote that accepts a block but it gets a compile error in the template: I don''t know what I''m doing wrong... TIA # application_helper.rb def link_block_to_remote( options = {}, html_options = {}, &block) concat(link_to_remote(capture(&block), options, html_options), block.binding) end # in template <% link_block_to_remote {:url => { :action => :start_login } }, { :href => url_for( { :a...
2007 May 29
12
questions rspec on rails
...application_helper.rb helpers? (creating a file spec/helpers/application_helper_spec.rb like other helper_spec files gives an error no such file to load -- ./spec/helpers/../application_helper (LoadError) - How to write a test (uh, i mean spec) for helpers that take blocks? for example: def link_block_to_remote( options = {}, html_options = {}, &block) concat(link_to_remote(capture(&block), options, html_options), block.binding) end - How can i test ActionMailer? eg ensure it renders the correct template. - Is there an equivalent to script/generate mailer ,eg rspec_mailer that gene...