Hello everyone.
I’d show a workaround to send email asynchronously using Devise and Rails3.
Suppose we have already up and running our application with Devise and delayed_job correctly installed.
A first attempt was to add in config/initializers the following file (devise_async.rb):
12345678910111213141516#devise_async.rb
module Devise
module Models
module Confirmable
handle_asynchronously :send_confirmation_instructions
end
module Recoverable
[...]
Tags: asynchronous, delayed_job, devise, rails, rails3, ruby on rails
Posted in Development, Ruby |
Hello everyone.
With today’s article I want to show how to implement two dropdowns dependent on each other using Django and jQuery.
Suppose we have a 1-N relationship between car brands and car models: we want to show the list of brands in the first dropdown; then once you have selected a brand, the second dropdown will [...]
Tags: ajax, django, JQuery
Posted in Python |
Hello everyone.
In this article I will show you how to create a custom feed in Django, using the Django Syndication Feed Framework 1.2 or higher.
I’ve had to create an
XML with some more tags for each item in the feed.
In particular, in addition to the usual tags present in an
RSS feed, I’ve added [...]
Tags: django, feed, xml
Posted in Development, Python |
Hello everyone.
In my last post I showed how to install MySQL from source on Osx.
Among the many comments received, some of them suggested me to use homebrew
I recommend everyone to use this tool in order to easily install several unix packages on OSX.
Among the packages that can be installed there’s also PostgreSQL, the subject of [...]
Tags: osx, postgreSQL
Posted in Development |
Hello everyone.
These days I’ve bought a MacBook Pro with Osx Snow Leopard 64-bit pre installed.
Having to develop mainly in Rails and Django on MySQL and PostgreSQL, I’ve found some difficulties to install and properly configure all packages.
The main problems were due to the presence of 32bit libraries and other at 64bit. For example, Python or [...]
Tags: mysql, osx, rails, ruby, snow leopard
Posted in Development, Metodologies, Ruby |
COMMENTS