This error has nothing to do with ruby-lsapi.
Maybe you need to explicitly add "LD_LIBRARY_PATH" environment variable under "ruby rails" tab in order for rails to find the missing library?
LSWS only set "PATH=/bin:/usr/bin" environment variable, all other shell environment variables are...