Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| require 'benchmark' | |
| require 'etc' | |
| Ractor.new { :warmup } if defined?(Ractor) | |
| def fibonacci(n) | |
| return n if (0..1).include? n | |
| fibonacci(n - 1) + fibonacci(n - 2) | |
| end |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| sudo apt-get install python3-setuptools | |
| sudo easy_install3 pip | |
| pip -V | |
| #pip 9.0.1 from /usr/local/lib/python3.5/dist-packages/pip-9.0.1-py3.5.egg (python 3.5) | |
| sudo chown -R username:username ~/.local/ | |
| # add to ./*shrc |
| <html> | |
| <head> | |
| <title>Resolve Conflicts UI Frameworks</title> | |
| <!-- styles --> | |
| <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css" /> | |
| <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/1.0.1/semantic.min.css" /> | |
| </head> | |
| <body> | |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
https://github.com/jnicklas/carrierwave
This example will create an uploader that will upload a file stored in a model Model. The file will be stored locally in development and test environment and will use Amazon S3 in production.
First add the gems.