search for: send_sm

Displaying 4 results from an estimated 4 matches for "send_sm".

Did you mean: send_smb
2013 Oct 30
3
Use of FCKEDITOR as normal text area
Hi all I am trying to use Fckeditor as text area to send mails.here is my code <% remote_form_for :send_sms, :before => "Element.show(''loader'')", :success => "Element.hide(''loader'')" do |sms| %> <div id="news_content_text_field_bg"> <%= fckeditor_textarea :send_sms, :message,:lang => I18n.locale,:lang...
2008 May 28
3
Mocking objects to test Rails Controllers
...id in writing my Rails unit/functional tests. I currently have a Rails model which mixes in a series of methods to allow it to talk to an external service. The code is roughly of this form: class Person < ActiveRecord::Base include SMSNotifier def send_notification(message) send_sms(number,message) # more code/interactions... end end Assuming I want to test that a call to send_notification calls send_sms on the SMSNotifier module, what is the best way to use Mocha to do this? Obviously I don''t want my tests calls to send_notification to actually do...
2008 Dec 17
3
Access from common class
...didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[]=): /app/models/support_mailer.rb:14:in `send_activation_email'' How can I access mailers? 2. Functions from application.rb I have added a function (send_sms) to the ApplicationController, but how can I access it from common class in /lib folder? I have tried: send_sms ApplicationController::send_sms But in both cases I have got NoMethodError How can I access this global function? I''m lost in all the dependencies and don''t know whe...
2009 Nov 09
1
SendText
Does anyone have any success with sending a text message from extensions.conf to an PSTN endpoint such as a cell phone? If so, kindly send configuration for this part. I am working on an IVR and want callers to get a text message at a particular part of the call, after dialing a defined character (such as 22). -------------- next part -------------- An HTML attachment was scrubbed... URL: