Project has_many Users through

Ruby on Rails tutorial Here is a Ruby on Rails example of adding a join table so that you can create a has_many Users through situation with Projects. This assumes that you already have a Project and a User model. 1. Generate your scaffold: Generating a scaffold here called UserProjects. It has two reference fields … Read more

Add Index to join table with unique checks

Ruby on Rails add index to join table, generate migration 1. make uniqueness index on areas_deals:*This stops the association from being able to be duplicated, but throws an error causing bad UI, we will address that below** 2. Check the schema and make sure you got what you want. We wanted this added: t.index [“area_id”, … Read more

Status Plan by work.shopMG

By far the most complex piece of software that I have built, Status Plan by work.shopMG is a Ruby on Rails application used in the property development industry. The majority of my last 5 years has been spent servicing a great company work.shopMG. We handle a handful of services for the property development industry including … Read more

Carrierwave Image Upload Validation Error Message Issue

So I have two models: (area.rb and areaimage.rb) Issue resolved here => area.rb – The Area model has_many :areaimages. The areaimage uploader must exist on area#edit areaimage.rb – AreaImage model – belongs_to :area – I need to be able to upload this on area#edit, and if it fails validation, I need it to display the … Read more

My Skill Set

231 Web Dev Skill Set Let’s throw something down here. A line in the sand if you will. I am going to lay out what I consider my Skill Set to be… WordPress Development – Expert Level. Custom Plugins and Themes. Password protected user based corporate websites. HTML5 – Expert Level. Recently mastering the HTML5 … Read more