
Search In
Uploading Files in Rails
Uploading files from a form is a very common task(i.e uploading images, files etc). As you may already know that you need to set multipart/form-data, if you want to upload files from a form. Similarly in rails, you need to se
Rails has a nice way to protect yourself from CSRF attacks through threatening HTML encoding from anything you write between <%= %>. But there is a caution, you want to render HTML from string so you need to tell rails that it should not escape
Rails Internationalization : Setting locale from Domain Name
For translating your application to other language, you can set I18n.default_locale to your locale in application.rb or in initializers as I told in my previous blog Configuring i18N Api
Hello All,
In this we will discuss about how to perform two phase commit in MongoDB.
Consider a example where funds will be transferred from one account to another. In a relation database approach we just subtract fund from account a and add same a
Hello Readers,
In this Blog I explain about the events and queue functions and how can we set interval between this events in jquery.
If you can use this then:
First, you can use queue() function (jquery function) to set time interval between even
OpenERP enables utilizer to send and receive emails when an action is done from OpenERP. We can configure emails to be send when a sale is verify or invoice is paid etc. But to implements these type of functionality, we require to update the function
The data mapping fixates on the powerful data between systems, It leads to more significant consistency, which results into preponderating productivity, reducing perpetual maintenance costs, amending readability of software and additionally making it
Step-1 Install the Framework_agreement module.
Step-2 Framework_agreement->Model->Purchases.py
Step-3 After that custmozie purchases.py(Python file) file:
In below example, I have custmozied purchases.py file. You can directly copy the below py
If you want to find the current time and timezone using JavaScript, you can use below example.
In this example, moment.js api has been used.
Code:
<!DOCTYPE html>
<html>
<title>TimeZone</title>
<script type="text/javascr
iframe are fixed of length but you can still make it dynamic in height and width, the logic behind this is to pass message from your html frame to the new class helper html window.
And by using the src ="" with given through the url.
And the code w
