leastbad / optimism

The missing drop-in solution for realtime remote form validation in Rails.
MIT License
361 stars 42 forks source link

Had to manually create the `channels` directories while installing #6

Closed tute closed 4 years ago

tute commented 4 years ago

Thanks for sharing your code! I'll share a note: while installing I had to manually create the channels directories.

% rails optimism:install
rails aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - ./app/javascript/channels/optimism_channel.js
... bin/rails:9:in `<top (required)>'
... bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => optimism:install
(See full trace by running task with --trace)
% mkdir app/javascript/channels
% rails optimism:install
=> app/javascript/channels/optimism_channel.js created
rails aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - ./app/channels/optimism_channel.rb
... bin/rails:9:in `<top (required)>'
... bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => optimism:install
(See full trace by running task with --trace)

Thanks again!

leastbad commented 4 years ago

Thanks so much for bringing this to my attention.