-
Guanacotoon, I never thought I would see the day
Most of us that live in the US are familiar with a web comic. We enjoy great quality, fairly regular updates and great diversity. This American experiment is spreading around the world but I never thought this would ever reach my home country. So I was genuinely happy and impressed when I discovered OB’s World…
-
Using Rails 4 engine/plugin helpers across your entire app
Sometimes you need your rails engine/plugins helpers to work across the host app. An example of this is my Gem Paginas. I provide helper methods to generate menu links, since the menus can exist outside the scope of my gem, it was necessary to include these methods in the host app. It is quite simple…
-
Getting tinymce-rails to play nice in Rails 4 and Turbolinks
I am using the plugin on a project and I kept having problems loading the editor on for the second time. The problems materialized in two different ways. On first page view the editor worked as intended, on second page viewed the editor did not show at all After trying to fix #1, on first…
-
TIL some awesome ActiveRecord behaviors in Rails
So I started using rails about 3 months ago and it has been awesome. ActiveRecords was my first experience using ORM. I wish I had started using this a long time ago since using associations makes life so easy. As you read tutorials, there are many things that are left out. And unless you find…
-
Adding and Removing Children From a Form in Rails 4
This is a topic that seems to get asked a lot and answered in so many different ways. I haven’t really found an answer that I considered full and easy to follow. Also, most answers were give for rails 3. So I decided I would share my implementation. I have made this project available in…
-
Handling dates when using Rails 4, bootstrap and bootstrap3-datetimepicker-rails gem
The bootstrap3-datetimepicker-rails is a very nice plugin that adds a nice date and time picker to your bootstrap based rails application. I started using it the other day and I ran into huge problems. I will show you what I did and explain why I did it rather than explain the problems before hand.
-
Using Devise to create a new Copmany that a User belongs_to in Rails 4
I was creating my first Rails app the other day and although the online tutorials are very useful, I couldn’t find a way to have my devise registration form create a new company and assign it to the new User. After a lot of googling and hair pulling I made it work. I created a…
-
Meeting Your Blog Readers
I know this is a small blog and the audience is very limited. I don’t really go to programing conferences so my chances of meeting people that might read my blog are very slim, or so I thought. Roll back to July 2014.
-
Setting Up A Ruby On Rails Dev Enviroment in Ubuntu For PHP Developers
So I am trying to jump on the ruby bandwagon and just spent a few days trying to understand how to configure a dev machine. Now, being a PHP developer I am spoiled by the relative easiness to set up a dev environment. The options are abundant: WAMP servers, the manual install is very easy,…
-
How to get the Job ID in a KPL macro throughout the product lifetime
Sometimes we need to get the Order ID for use in our macros. This can be for any number of reasons, but what’s important to know is that you need to grab the job id in different ways depending on where a product item is during its life-cycle. When a product is sitting in the…
