About the blog
This is the blog by the Ruby on Rails developers behind Mynewsdesk.
Read more about us →
Visit Mynewsdesk →Follow us on Twitter
Search
Blogroll
-
Recent Posts
Tags
@media Analytics bit.ly data attributes design developer e-commerce editor gchartrb git googlecharts Google Charts API google charts on rails hCard html5 i18n javascript jQuery JSON litespeed Microformats newsdesk Operator Optimus passenger plugin plugins pluralization postgresql RDFa Rich snippets ruby Ruby on Rails Semantic web SEO Services swedish swedish_pluralize The environment tip Transformator translate usability Validator XML
Tag Archives: Ruby on Rails
Testbot – Distributed testing
TL;DR If you have a lots of tests in a rails app that is annoyingly slow (+10 minutes), try testbot – a tool for distributed testing Testbot What? Testbot is a tool for running tests distributed over several machines. Mynewsdesk … Continue reading
Announcing Cachable Model – A New Plugin For Caching Your Rails Models
When you scale a Rails website the database layer tends to become the bottleneck sooner or later as it’s more difficult to scale horizontally with hardware than the Ruby/web server layer. At MyNewsdesk we have started looking at database caching … Continue reading
Simplest bit.ly API implementation possible?
To use an URL shortener in your project, I would strongly recommend bit.ly. It let you set a custom URL (name) and track traffic, clicks and conversations on micro blogs. But best of all, it should be super-fast and super-stable, … Continue reading
Rails Development Database Setup Without Migrations
I think a lot of Rails developers have been using the db:migrate Rake task to setup new development databases. The problem with this is that over time migrations tend to grow out of sync with the code, especially if you … Continue reading
New rake task for the Tranlsate plugin: Google Translate
We just pushed the latest addition to the Translate plugin which adds a new rake task: “rake translate:google FROM=sv TO=en”. This will translate all keys in sv.yaml using Google Translate into english and store them in en.yaml. This is a … Continue reading
Rake Tasks for the Translate Plugin
We’ve added two Rake tasks to the Translate plugin. The lost_in_translation rake task helps find I18n keys in lookups in your code that are missing from your default locale YAML file (i.e. config/locales/sv.yml in our case). The merge_keys Rake task … Continue reading
swedish_pluralize plugin: Swedish pluralization rules for Rails
For those of you looking for Swedish pluralization for Rails, I just refactored this module of ours into a plugin. You can find it on GitHub: http://github.com/newsdesk/swedish_pluralize/tree/master It’s extracted from the old swe_rails plugin by Ola Bini, which did a … Continue reading
View Comments
Posted in Ruby on Rails
Tagged plugin, pluralization, Ruby on Rails, swedish, swedish_pluralize
The “returning” method explained
This one you will find all over the Rails code. The “returning” trick is a really neat way to refactor ugly patterns, such as this one: object = [] object << “foo” if bar? object Into this: returning [] do … Continue reading
A short introduction.
Welcome to the blog! I thought it would be appropriate to shortly present Newsdesk in a post before anything else. If you don’t know about us (and chances are small you do, unless you’re living in Sweden), we are a … Continue reading
View Comments
Posted in Uncategorized
Tagged Analytics, e-commerce, litespeed, newsdesk, passenger, postgresql, Ruby on Rails, SEO, Services, The environment
Using Google Charts from rails
A week ago i got an interesting ticket – update the Newsdesk statistics charts for printing and sending via email. Although people here are quite satisfied whith the look and feel of our current solutions Fusion Charts, we feel that … Continue reading
View Comments
Posted in Ruby on Rails
Tagged developer, gchartrb, Google Charts API, google charts on rails, googlecharts, newsdesk, ruby, Ruby on Rails
Subscribe