Echo command in rails


I am following the instructions given in the link
for doing spell check.

The problem I am facing here is, I am not able to run

echo "#{spell_check_text}" | aspell -a -l #{lang} command .
When I execute the method the above command is returning blank.

My question is How to run echo “statement” in rails.

In command prompt I am able to run the echo using exec
exec ‘echo “#{spell_check_text}” | aspell -a -l #{lang}’.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs