16 April 2014

The Ruby Reflector

Topic

Jason Green

  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 over 1 year ago.
Email

A while back I wrote a blogpost on generating a sitemap for a ruby on rails app. This generator was run via a rake task. Now that loads of our apps are deployed to heroku and some have content that changes all of the time, it doesn't make sense to have a rake task to run periodically for us, we need a sitemap on the fly. So here is how we did it:

Step 1:

In your config/routes.rb file add: match 'sitemap', :to => "sitemap#index", :as => :sitemap

Step 2:

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 over 1 year ago.
Email

Dynamic50 have recently run three very successful Ruby on Rails training courses. One over a weekend, one 3 day during the week and another in-house course for a company looking to transition to rails.

The courses are tailored to the ability of the group and we have run several different versions now, from basic programming skills all the way through to expert in different technologies or basic experience with rails.

All courses went really well and the feedback has been very positive: "Excellent …

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 3 years ago.
Email

We are proud to announce the full launch of Chromaroma . Here at Dynamic50 we have been working with Mudlark on the development of Chromaroma for quite some time now. Dynamic50 took over the development work in September 2010 and several members of our team here have had the opportunity to work on it.

Development was led by one of our senior developers, Anup Narkhede , who has been working on the project since when we took it on in September. But along …

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 3 years ago.
Email

Richard from Dynamic50 has just released a ruby gem for the Police API available here: https://github.com/hookercookerman/oldbill . It allows you to hook into the new Police API service to find out about crime in your local area.

To get started, simply register for an API key here: http://policeapi2.rkh.co.uk/api/docs/signup/ and then add the gem to your Gemfile: gem "oldbill"

or you can just install it from the command line: gem install oldbill

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 3 years ago.
Email

Following on from our last post and the feedback we received, we have decided to move the Rails training course to run over a weekend rather than during the week. We have two weekends in mind:

9-10th April

23rd-24th April

We will be running small classes so we can pack as this makes for faster learning and a more one-on-one feel to it!

The course content will be the same for both weekends:

A basic understanding or programming will help but is not mandatory. The training course will …

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 3 years ago.
Email

Following on from my post the other day regarding Heroku wildcards I thought it would be worth looking at redirecting either www to root or vice-versa.

Heroku doesn't give you the ability to touch the VHost settings, which is where this sort of thing is usually done, but this is not a problem as you can simply use a bit of rack middleware to do the same thing. If you are looking for more complex rules than simply a rack rewrite of www to root, the I would suggest using something …

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 3 years ago.
Email

We have just finished setting up ssl on wildcard domains for a client. We have set this up on Heroku so that you have ssl on all top level subdomains.

For example: *. myapp.com demo.myapp.com hello.myapp.com secure.myapp.com

This is a fairly straightforward process, however there appears to be no good documentation online on how to do it for wildcard domains.

As much as I dislike GoDaddy with their automatic renewal on everything and massive upsell, they are the cheapest and easiest …

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 over 3 years ago.
Email

Chromaroma is a game played using your Oyster card whilst travelling around London.

It connects communities of people who cross paths and routes on a regular basis, and encourages people to make new journeys and use public transport in a different way by exploring new areas and potentially using different modes of public transport.

Dynamic50 are really excited to have taken on this development work and will be working closely with the founders at Mudlark all the way up to the public release.

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 over 3 years ago.
Email

We have been playing around with Linode recently and have been moving most of our sites that are hosted on VPS across to Linode. So I thought I would write a quick getting started tutorial on how to install a rails stack on Linode.

Login as root, and add a new user (deploy) ssh root@my_linode_ip adduser deploy

Add the deploy user to the sudoers file visudo

copy the line for root below the root line and change the user to deploy. Then save the file as sudoers, not sudoers.tmp.

blog.dynamic50.com Read
  Source Favicon
By Jason Green of Ruby on Rails, London - The Blog by Dynamic50 almost 4 years ago.
Email

In the spirit of nosql, today I am going to show you how to install a Rails stack on Ubuntu using Mongodb, Nginx, Passenger, Ruby 1.9 and all nicely monitored using monit, my monitoring tool of choice (why don't I use god I hear you ask? => monit = easy maintenance and less resource heavy).

We [...]

blog.dynamic50.com Read