Software engineering and personal development

Tag: gem (Page 2 of 2)

Get random data for your tests with Faker gem

Img caption: railscarma.com

Developers may feel they do not have that much creativity when it comes to use random words as arguments, or values for many fields. For example, if we have some test cases when we are creating a new instance of a Book object, chances are that we will assign ‘book’ to this object’s title, which does not seem that much interesting. We code because it is something that gives us pleasure, and getting help with these types of difficulties can be helpful. Fortunately, there is a Ruby gem called Faker that generates random fake value that you can use in your tests.

Continue reading

Add like/upvote function for your model using Acts as Votable gem

Img source: instructables.com/

The ability to rapidly develop new features in your Rails applications with a lot of cool gems gives you the opportunity to be very productive. At the time of this writing, 14,821,263,017 Ruby gems have been downloaded, which represents a really large number of developers who have fortunately been able to use open source gems of other fellow developers in their applications. Acts as Votable is no exception.

Continue reading

Create ready-to-deploy-to-Heroku Rails apps with suspenders gem

Rails is one of the most popular web development frameworks. For those who do not know, it represents a compilation of many commonly used programming libraries written in Ruby, and that comes with the pattern of convention over configuration. In other words, it saves you a lot of time by avoiding the need to repeat the same initial procedures of setting up a project and so you only need to start implementing the business logic. Continue reading

Newer posts »

© 2024 Fatos Morina

Theme by Anders NorenUp ↑