hotwired / turbo-rails

Use Turbo in your Ruby on Rails app
https://turbo.hotwired.dev
MIT License
2.09k stars 322 forks source link

Changed install template system call to account for spaces in path #629

Open marekhilton opened 4 months ago

marekhilton commented 4 months ago

This is a very small fix to the installation process. In run_turbo_install_template the path may contain a space. In my case, the bundle directory has a space in it for some reason unkown to me (vendor/bundle /). In the old code this broke the system call and prevented generation of a new rails project by rails new app_name. The new version is in line with other library install templates like importmap)

I'm using rbenv on Arch, ruby 3.3.1, rails 7.1.3.2.

marekhilton commented 4 months ago

The following is an identical fix for stimulus-rails.

hotwired/stimulus-rails/pull/137