The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Uniqueness Validation with accepts_nested_attributes_for that takes into account those record which are marked for deletion http://solidfoundationwebdev.com/posts/validating-uniqueness-of-field-s-in-accepts_nested_attributes_for-accounting-for-those-marked-for-destruction
For an upcoming project, we had to research how to achieve a marketplace distributed payment scheme. Unfortunately, the sellers target being UK centric, it drastically reduced the solutions scope. Have a read and let us know if we forgot anything
Given you’re a professional website designer and would like to work on some wonderful project. This project might be about designing a new website with a blog and a shop for one of your favourite customers. To get involved in this project, she asked you to design a mock-up with your ideas first and send it to her. In this article I’m going to show you how you can give away your mock-up in an easy manner without setting up a full-blown web server stack. If you like my writing and don’t want to miss any new article, you may want to follow me on Twitter or subscribe to the news feed of my site.
Capybara/Selenium feature specs can be one of the most frustrating types of tests. There is a lot of unexpected behavior and many pieces to keep in mind. Code runs in separate threads, and both AJAX behavior and Capybara find methods create timing issues. The aim of this post is to describe a workflow that makes debugging more efficient. Effectively Debugging Capybara Feature Specs
Here are the answers to most Rails CSRF questions, including “what’s the difference between protect_from_forgery with: :null_session and :reset_session”.
I made a short video on how to do log file rotation inside your Rails app. https://www.youtube.com/watch?v=Hgc6LGZMMXY
Dealing with external file downloading and archiving can be complicated the first time around, particularly if you’ve never worked with Ruby’s
Tempfile classes before. This blog post explores when and how to use Ruby tempfiles, including the order of operations when it comes to
Tempfile method invocations.
With Rails API making it into the Rails master branch and Ember rapidly changing, it is time for a current post on how to get started building an app on a Rails 5 API and Ember CLI
Introduction to getting started using APIs. Examples included. http://www.blackbytes.info/2015/09/working-with-apis/
middleman for my own website. To make it easier for me to pickup my
work over different machines , I added a small start script to the repository.
In this article I’m going to show you how it works and how you can make use of
it for your own website build on top of
middleman. If you like my writing and don’t want to miss any new article, you may want to follow me on Twitter or subscribe to the news feed of my site.