Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
def require_user_payment_info @payment_info = credit_card_model.slave.find_by_user_guid(user_guid) if !@payment_info || @payment_info.user_guid != user_guid redirect_to(:controller => 'store', :action => 'index') and return false else if((@payment_info.card_expires_year.to_i < Date.today.year) || ((@payment_info.card_expires_month.to_i < Date.today.month) && (@payment_info.card_expires_year.to_i == Date.today.year))) @payment_info.card_account_public = "" #clear this out so the user is forced to re-enter the credit card number @payment_info.valid? flash.now[:error] = t('ui_flash_errors.card_expired_error') end end end
def delete # required to be called via a delete request redirect_to :action => 'edit' and return if !request.delete? if @payment_info.destroy flash[:notice] = "Delete SUCCESSFUL" redirect_to :action => 'new' else flash[:error] = "Delete failed" redirect_to :action => 'edit' end
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|ECMAScript VS Ruby||3||409|
|How to check if you are clicking on a radio buttons that's already selected||7||70|
|ruby gem installation||2||78|
Join the community of 500,000 technology professionals and ask your questions.