Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Uploading Files in Rails

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

raw vs. html_safe vs. h to unescape html

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

Setting rails locale from domain name in rails for internationalization

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

Two Phase commits in MongoDB

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

Set time interval between events with queue function

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

How to send mail from Any Button in OpenERP/Odoo ?

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

How to Data Mapping using ETL Tools in OpenERP/Odoo ?

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

How to make Long Term Agreement (Framework Agreement) for purchases in OpenERP/Odoo ?

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

How to find the current time and timezone using JavaScript?

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

How to resize the iframe for any content load

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

1 347 408
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: