How do I set up a session value in Capybara?

The accepted answer suggests rack_session_access. It works by inserting middleware controllers to edit and update the session state, then has capybara visit that page and submit a form with the session data. Very ingenious! But unnecessary if you are using Warden (directly or through Devise). Warden has a hook on_next_request that gives access to the … Read more

Enabling Liquid templating syntax highlight in webStorm/phpStorm

I’ve found out that Twig have a very similar syntax to Liquid, enabling the Twig plugin will highlight Liquid syntax and will keep the HTML highlight/autocomplete/emmet functionality working as opposed to the “textMate Liquid bundle”. Go to Settings > Editor > File Types find “Twig” on that list and associate Liquid files with it by … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)