Feedback_button

02/25/2012

i18n yaml generator

verfasst von Matthias Frick in Ruby on Rails / 0 Kommentare

In this short blogpost I want present you a nice little generator gem called i18n-yaml-generator from the company Skalar from norway.

The guys there created a nice gem which invokes an i18n yaml generator when calling the standard scaffold model or controller generators provided from the rails framework itself. The locale files are generated for all locales listed in I18n.available_locales.

The gem generates i18n locale files for models and views. I think it is very convenient and worth a try to check it out if you often need i18n yaml files and you are bored from creating them by yourself all the time.

You can find further information about the generator gem and detailed instructions how to use it on github: https://github.com/Skalar/i18n-yaml-generator

Have a nice day! :-)


02/24/2012

Gemsitter

verfasst von Matthias Frick in Ruby on Rails / 1 Kommentar

Today I was searching for new, nice and convenient gems and I made a very cool find. I found the gem called gemsitter.

I often have longer existing projects and these projects certainly use gems with different versions. Most of the gems get updates and fixes from time to time. But in older projects are still the older gem versions with maybe security issues or something like that and that is not good and really not professional. This is where gemsitter comes in. Gemsitter is a gem that checks the installed gems in your ruby on rails application for patches, major or minor updates. The gem is Rails 3 compatible.

From now on you just can use this gem, if a customer, for example, wants a new feature and you have to change in a sequel production code from an older project. You can add the new feature and check for newer gem versions. With a good test coverage adding newer gem versions is no problem and you are not only with new projects up-to-date, but also with ageing projects.

The gem is available on github and rubygems. For more instructions how you could exaclty use the gem check out following links:


02/19/2012

Stopping spam with akismet

verfasst von Matthias Frick in Ruby on Rails / 4 Kommentare

The Frick-Web site has been getting a lot of blog comment spam in the last days, but no longer. I integrated an akismet anti spam plugin which was developed originally from Ryan Bates. This plugin uses the akismet web service to check if a comment is spam or not. You can find the plugin here [LINK].

Ryan Bates did a railscasts about this plugin a few years ago. So just check it out, i think it is very useful and really easy to integrate into a rails application. Just follow the railscast and your blog is free of annoying spam attacks from now on.


02/19/2012

Frick-Web 5.0 released

verfasst von Matthias Frick / 5 Kommentare

It's the year 2012 now and it´s time for a new design and a new logo for my Frick-Web Homepage. I completely rework the design of my homepage. From the technical view I just updated the homepage from Rails 3 to Rails 3.1, fixed a few bugs and integrated akismet spam protection in blog comments.

Feel free to give me a feedback about the new style of my page, I would be happy about that.

Thanks to Cynthia Stippich for the excellent new logo!

UPDATE: 03/14/2012:

Now there is a little search integrated into the blog. You can easily search for posts you´d like to read.