I've been seeing this for a while, and have finally got round to finding a solution.
In the project `Gemfile`, remove the reference to `sass-rails` and replace with `sassc`.
Sigh. It took more than two minutes to find the fix, so logging it here
Showing posts with label Rails. Show all posts
Showing posts with label Rails. Show all posts
Monday, 22 October 2018
Thursday, 19 January 2017
RSpec failing after a new Rails Composer project
RSpec issues
Addrequire 'rails_helper.rb'
into the spec files to allow the tests to run as expected.
spec/features/visitors/sign_up_spec.rb
The minimum password length is set to be 6 characters, but the 'expected fail' password was set to 'please', causing the test to fail.Changed password to 'short' and test passes.
spec/features/users/sign_in_spec.rb
The tests were looking for an authentication_key of 'email'. Changed to 'Email' to match the results from Devise.Saturday, 22 October 2016
Rails woes on Windows 10
The Rails community isn't strong on support for Windows based machines.
The github repository RubyOnWindowsWoes contains the source and issues found.
This note is to remind me how I eventually solve the problems!
The github repository RubyOnWindowsWoes contains the source and issues found.
This note is to remind me how I eventually solve the problems!
Sunday, 8 November 2015
Ruby, Windows and Timezones
With the current builds of Ruby on Rails, there are a couple of problems with a default installation.
The first is that Windows environments seem to need the timezone data gem including.
The second is to do with the initial layout file.
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
is currently failing on Windows environments.Replace the line with:
<%= javascript_include_tag 'default', 'data-turbolinks-track' => true %>
Adding the coffee-script-source gem to your the Gemfile seems fix the issue:
..
gem 'coffee-script-source', '1.8.0', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
seems to fix the issue.
Edit: added the coffee-script-source notes.
Edit2: Added the SSL_CERT_FILE notes
The first is that Windows environments seem to need the timezone data gem including.
The second is to do with the initial layout file.
Timezone data
If you have a Rails folder already, you might just be able to get away with the following:
Details about the timezone gem are in github. Add the following line to your Gemfile:
Details about the timezone gem are in github. Add the following line to your Gemfile:
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
then run
bundle update
as usual when you change your Gemfile.
To build a new Rails project
Follow Fletcher Nichols' instructions, (basically running this gist, then adding a new environment variable SSL_CERT_FILE with the value C:\RailsInstaller\cacert.pem.
application.html.erb
The line:<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
is currently failing on Windows environments.
Adding the coffee-script-source gem to your the Gemfile seems fix the issue:
..
gem 'coffee-script-source', '1.8.0', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
seems to fix the issue.
Edit: added the coffee-script-source notes.
Edit2: Added the SSL_CERT_FILE notes
Labels:
Rails,
SSL,
SSL_CERT_FILE,
timezone,
tzinfo-data
Subscribe to:
Posts (Atom)