Lately I have been diving into TDD, and more specifically BDD, thanks to the wonderful Cucumber testing framework.
Today I have had to test a specifical IP based feature. Simply put, I get the user IP and store it into the database.
The simple rails way to get a visitor IP address is
request.remote_ip
If you do this [...]
Tags: cucumber, header, rails, remote_ip, rubyonrails, webrat
Posted in rubyonrails | 4 Comments »
How to setup Rails to use you gmail smtp without installing any plugin
Tags: 1.8.7, 2.3.2, actionmailer, gmail, rails, ruby, smtp
Posted in Technolalia, rubyonrails | 22 Comments »
A couple of days ago I discovered the wonderful easy-fckeditor Rails plugin. It’s a fork of the main fckeditor plugin, integrating the EasyUpload plugin. With this marvellous piece of software you can integrate a visual text editor in no time; what is more, file attachments are included out of the box, with no need to [...]
Tags: easy-fckeditor, fckeditor, rails, rubyonrails, safe_erb, upload
Posted in rubyonrails | 8 Comments »