Unfortunately, Web APIs haven’t provided the functionality to copy text to the clipboard through JavaScript, which is why visiting...
Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...
I am happy to announce that this information is now available in JSON form at https://ip-ranges.amazonaws.com/ip-ranges.json. The information...
How do HTTP requests and responses look like? What are HTTP headers? What are they used for?
If you need a postgresql extension for your database it isn't a good idea to give your applications database...
Read the Rails Guide about Active Record migrations Understand why we never use models in migrations. Checkout the repository...
Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...
In a web application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails...
Exercise 1: Maps In MovieDB, add a new field “Principal filming location”. In a movie’s show view, geocode that...
As you most likely know validates_uniqness_of :foreign_id does not allow nil values by default.
Use form models to handle this problem Or soften the validation to validates_presence_of :parent
Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger
Reason: You very likely have a model that has a delay attribute. You can configure Sidekiq to remove its delay...
Web security basics Einführung in die Web Security 🇩🇪 provides essentials for the topic of this card. Read following chapters:
Authentication is all about being able to verify the identity of a user in the context of our application.
In tests, it is sometimes useful to create records with specific ids. On PostgreSQL this can cause problems: Usually, PostgreSQL...
Read (or re-read) the following chapters from our book Growing Rails Applications in Practice (it’s in our...
Stepping forward from JavaScript Basics, the goal of this card is for you to be able to read and write...
A common task in web applications is to add client-side JavaScript behavior to existing HTML elements.
The easiest way to freeze or travel through time in a Jasmine spec is to use the built-in jasmine.clock...
The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...
The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...
tl;dr: Use event.currentTarget unless you are absolutely certain that you need event.target. Since it hasn't been written down...
Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...