Displaying 8 results from an estimated 8 matches for "fax_number".
2008 Mar 19
2
Stub / Mock - A little guidance?
...rovince_code = billing_info.state_province_code
self.bill_to_postal_code = billing_info.postal_code
self.bill_to_phone_number = billing_info.phone_number
self.bill_to_extension = billing_info.extension
self.bill_to_fax = billing_info.fax_number
self.save ? true : false
else
true
end
end
Here''s the spec:
describe User, "when checking billing information" do
before(:each) do
@user = User.new(:id => 1)
@order_payment_info = mock_model(OrderPaymentInfo,
:id...
2015 Jun 24
4
asterisk email to fax
2015 Jun 25
0
asterisk email to fax
...someone
> point me to the right direction to see how please?
I don't have a general solution, since I haven't needed to send faxes
recently. But I did set up my dialplan so that I could test that it
works.
I used this:
----
;; For outgoing faxes
FAX_NAME = My Company Name
FAX_NUMBER = My Phone Number
FAX_FILE = /tmp/fax.tiff
[services]
...
exten => sendfax,1,Verbose(3,Sending fax)
same => n,Set(FAXOPT(headerinfo)=${FAX_NAME})
same => n,Set(FAXOPT(localstationid)=${FAX_NUMBER})
same => n,SendFax(${FAX_FILE})
same => n,Verb...
2006 Aug 10
4
exporting vcards from rails
i''m doing a site for someone that has a form set up to collect contact
information from the user. i installed the vpim gem and was hoping to
give my client a way to download all of the contact''s information as a
vcard. using the examples, i was able to get it working in ruby, but i''m
not quite sure how to generate and download a vcard on the fly.
has anyone done
2006 May 17
5
select list
I''m trying to build a selection list which I have done in various ways
but this one is new to me.
I have a ''facilities'' table which has all the outpatient facilities but
I need to add ''Float'' and ''Main Office'' which I don''t want to add to the
''facilities'' table itself.
so I figure I can add these to an
2006 Oct 20
7
MVC and modules. Views telling models to behave
...that
formats a string
format_my_string( my_string )
Instead, in my view. Lets assume I have a Building class that has a
phone_number field
At the top of my view then
<% Building.include PhoneNumberFormat %>
The PhoneNumberFormat module could overwrite the getter methods of
phone_number, fax_number etc to provide me with some nice formatting.
Presumably I could also pass some parameters somewhere (not quite sure yet)
so that I could tell the PhoneNumberFormat what kind of format I want.
Then my building objects, when I call
<%= @building.phone_number -%>
instead of
<%= format_my_ph...
2006 Feb 04
4
AJAX rendered select doesn''t get submitted
...ups,
:states, :name, # <- groups
:code, :name, nil) # <- items
%>
</select>
_______________________________________________________________________________
contents of @params on form submit
Parameters: {"user"=>{"name"=>"", "fax_number"=>"", "company_name"=>"",
"password_confirmation"=>"", "phone_number"=>"", "password"=>"", "email"=>""},
"x"=>"48", "y"=>"10&...
2006 Jan 25
12
DRY in Models
I am building an app right now that needs to grant access to three
levels of members right now - each will have their own table in the DB.
When creating the add_user action I am converting the password into a
hashed password through the model.
The way I am doing this right now, I will inevitably end up with
repeated code in three different models. Is there a way I can define
this code in