search for: pic_link

Displaying 1 result from an estimated 1 matches for "pic_link".

Did you mean: pci_link
2013 Sep 18
2
Accessing model attributes in ActiveSupport::Concern module
...he path in the model. My problem is that I''m not able to access the attribute in my module. my model: class Job < ActiveRecord::Base include ImageModel image_dir = "jobs"end my module: module ImageModel extend ActiveSupport::Concern def delete_image unless pic_link == "" || pic_link == nil begin if File.delete(Rails.root.join("public", "images", image_dir, pic_link)) return true else return false end rescue return true #an error occured but when the i...