Removing the shadow from a button

Use border-style: .signup-success input[type=”submit”], .signup-success input[type=”submit”]:active, .signup-success input[type=”submit”]:focus { width: 80%; background: transparent; color: #00AA66; border-color: #00AA66; border-style: solid; } or combined version (border-style, border-width and border-color in one): border: 2px solid #00AA66;

Upgrading Rails: What am I to do with new_framework_defaults file?

(Having just gone through a 4.2 to 5.2 Rails upgrade, I’ll write a more complete answer.) Rails 5.0 Starting with Rails 5, the Rails team decided to generate an initializer, config/initializers/new_framework_defaults.rb, that contained values for new configuration defaults. This file is generated for both new (rails new) Rails 5.0 applications and applications updated (rake app:update) … Read more

Is HTTP status 422 appropriate for records that fail uniqueness validation?

NB: tried to do a detailed answer below poke’s one, but it doesn’t seem to be possible, so I will answer here. I think using 422 for validation errors is fine. The Webdav RFC doesn’t say 422 means “semantic errors”, it says the server was “unable to process the contained instructions” (see https://www.rfc-editor.org/rfc/rfc4918#section-11.2). “Semantic errors” … Read more

postgres ‘psql’ command is not recognized in windows environment

Assuming you installed PostgreSQL on Windows with the PostgreSQL “One-click” installer packaged by EnterpriseDB, psql is not added to the PATH automatically. That’s partly because adding it to the path could otherwise cause confusion when people have multiple versions of PostgreSQL installed. You need to specify the full explicit path to psql, eg: “%PROGRAMFILES%\Postgresql\9.2\bin\psql.exe” or … Read more

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