A short video demonstrating how you can set up Cypress.io with Ruby on Rails.
The code can be found here: https://github.com/my-grocery-price-book/www/pull/124
A short video demonstrating how you can set up Cypress.io with Ruby on Rails.
The code can be found here: https://github.com/my-grocery-price-book/www/pull/124
I must say that upgrading from Rails 4.2 to Rails 5.0 has been way smoother than previous rails. Upgrading from 3.2 to 4.0 was hard and upgrading from 2.3 to 3.0 was a plain nightmare. Hands down to the Rails core team this time around, they have really done a Great job. I have managed… Continue reading Upgraded Site from Rails 4.2 to Rails 5
Creating a simple contact form with Ruby on Rails is straight forward and simple but I found an even simpler way of doing your contact form. If all you want is an email sent to you with the details of the contact form then I recommend that you take a look at formspree. It allows… Continue reading Creating a simple Contact form using formspree.io
When building your own application using Ruby on Rails and you are a one man team, you really can use all the help you can get. I am going to list a few of the services I am using that is making the process of building a application a little more enjoyable. Digital Ocean The… Continue reading Useful Services for self hosted rails applications
I wanted to add autocomplete to the shopping list, hopefully making it easier to build them. Using Reactjs made it very difficult to use out of the box autocompletes like typeahead and jquery ui autocomplete because Reactjs uses a virtual dom. Another requirement I wanted was to display the suggestions above the input making it a… Continue reading Simple Reactjs AutoComplete using Typehead’s Bloodhound
When working with a team of frontend developers/designers or working by yourself, having a components list of what css is available to you can be a real time saver. I don’t know how much longer I would have taken without bootstraps components. There is a small rails gem (component_library)[https://github.com/richarcher/component_library] that allows you to build your… Continue reading Building a component library
Now that I have manage to write a few components using reactjs/rails and I feel I understand the basics of reactjs, I wanted to be able to write tests for my components. I looked into using jasmine-rails for testing my components. Installing it was as simple as following the Gems README. You will need PhantomJS… Continue reading Writing jasmine test for reactjs components on Ruby on Rails
I recently wanted to add functionality that would allow multiple shoppers to work on the same Price Book. I wanted to write my feature spec in such a way that it was obvious that there were multiple actors and it allowed me to easily capture common logic like signing in. I wanted to use 2… Continue reading Acceptance testing multiple sessions/actors using capybara
I have been recently trying out reactjs and decided to rebuild the shopping list section using it. give it a try, you can login as a Guest.READMORE To get started with react and rails I used a gem called react-rails. The gem allows you to do server side rendering as well which I thought could… Continue reading Reactjs Shopping Lists
Keeping your code on a project in shape is a daily challenge but there is a a ruby gem called rubocop that can help you with this. READMORE I have been using rubocop on the grocery app and a few other projects for a while now. It’s is really a great tool to help keep… Continue reading Police your code with Rubocop