Software engineering and personal development

Tag: controller

Save code formatting when copying from an IDE/editor to Microsoft Word

If you ever needed to paste a code that you have written in your favorite IDE or editor inside Microsoft Word and do not want to lose your formatting, then PlanetB is a really great tool that gives you that opportunity. It has a really easy-to-use user interface. It comes with the support for several programming languages like: C/C++, C#, CSS, Delphi, Pascal, XML, Java, Javascript, PHP, Python, Ruby, SQL, VB and HTML. Continue reading

Rename Rails controllers, views and migrations with Rails Refactor

Img source: https://www.youtube.com/watch?v=-sX05s0STs8

There can be cases where you wished you named that controller a lot better, as it does not make any sense and is very ambiguous in its current form. If you have ever wondered whether there is a way for you to do quick renamings of multiple related files inside a Rails project, then I have some good news for you. There is already a gem called Rails Refactor, that can be used to do these renamings. Continue reading

HTTP Basic authentication with built-in Ruby on Rails method

Img source: microcosm.com

You may have cases when you may need to do some authorizations for certain pages, so that they cannot be accessed by unauthorized clients. There are many authorization ways that you can use in a Ruby on Rails application. In this article, I will mention one very simple, yet not that much famous method that comes implemented and ready to be used each time you create a new Rails application. Continue reading

© 2024 Fatos Morina

Theme by Anders NorenUp ↑