This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def return_search | |
| report_start_date = build_date_from_params("start_date", params[:report]) | |
| report_end_date = build_date_from_params("end_date", params[:report]) | |
| puts report_start_date | |
| puts report_end_date | |
| @sent_emails = ContactEmail.all(:conditions => ['date_sent >= ? and date_sent <= ?', report_start_date, report_end_date]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Create client | |
| client=PostalMethods::Client.new({:api_key=>"1sekret58"}) | |
| client.prepare! | |
| @contact_postalcard = ContactPostalcard.new(params[:contact_postalcard]) | |
| @postalcard = Postalcard.find(@contact_postalcard.postalcard_id) | |
| uploadtrue = 1 | |
NewerOlder