Security should always be an issue when it comes to computer applications.
Web applications and websites are even more exposed, so likely every weak spot will be exploited someday.
For years, web forms have been used by robots, spreading spam on most websites.
Captcha appeared in order to verify if the user accessing the form is human or not. It does that by showing an image with a text. The image cannot be converted into text by any OCR mechanism, but the human user is still able to read.
So how can we use recaptcha (www.recaptcha.net) with rails?
Continue reading “How to use reCaptcha Validation on Ruby On Rails” »
ActiveRecord, like all ORM’s, is one of the greatest things on earth, IMHO
By using the Convention or Configuration approach, ActiveRecord and even Rails, allows you to skip a few parts and go straight to what matters: the development.
sometimes, though, the “Sensible defaults” of rails and ActiveRecord are’t enough, but like most ORM’s, the convention can easily be overridden in order to get things done.
When you add a relationship between classes all you have to do is to add a references and has_many on the other side. If you follow the naming rules everything works.
Continue reading “Custom foreign keys on Ruby on Rails Active Record” »
When you are creating something for the web, you have to keep in mind that your website must be as easy to find as possible. Keep in mind there are SEO agency/ agencies that are willing to help your web grow.
SEO, or Search Engine Optimization (http://en.wikipedia.org/wiki/Search_engine_optimization) should always be in your mind when designing and creating your website. A great company can create a web design to fit your communication goals, brand guidelines and target audience and tracking your customers journey map should be a big part of that (https://www.salesforce.com/products/marketing-cloud/best-practices/customer-journey-maps/)
Lets imagine a blog. By default the route to each post would be something like:
which works just fine.
But this is not SEO friendly, as the search engine crawlers won’t link the URL to the content.
Continue reading “How to create SEO friendly URL’s on your rails web application” »
For those like me who are entering the ruby world but have programming experience with other languages, it can be hard to get things done, but that’s a part of ruby, doing things differently
On a language like Java or C# the syntax is:
Upgrade your computer with an SSD
Continue reading ““Try-Catch-Finally” equivalent in Ruby” »