ministryofjustice / govuk_elements_form_builder

Form builder helper methods to develop GOV.UK elements styled applications in Ruby on Rails
https://govuk-elements-rails-guide.herokuapp.com/
MIT License
6 stars 14 forks source link

Ruby version too restrictive #70

Closed stephenrichards closed 5 years ago

stephenrichards commented 7 years ago

The gemspec specifies ruby 2.3.1 and there is code which uses the new &. instead of .try.

This means apps which use this gem cannot be deployed to Heroku which only supports 2.2.5

aliuk2012 commented 7 years ago

Hi @stephenrichards, Heroku does support 2.3.1 but by default it uses is 2.2.5. To get 2.3.1 you have to specify the ruby version in your Gemfile.

I've done this on a few apps that are on heroku including the GOVUK Elements Form Builder Guide. https://github.com/ministryofjustice/govuk_elements_rails_guide/blob/master/Gemfile#L21-L23

https://devcenter.heroku.com/articles/ruby-support https://devcenter.heroku.com/articles/ruby-versions