Sha256: d2122030be76163c0db8138aca8de38332ac75a05c9361e3ccd3019164e3cd75
Contents?: true
Size: 951 Bytes
Versions: 1
Compression:
Stored size: 951 Bytes
Contents
FileManagerEngine ================= Rails 3 engine to track used files elsewhere your models Install ================= Use ================= You need add this lines to used FileManager in your app: <pre><code> include 'FileManagerEngine" self.file\_field\_name = [name field] </code></pre> name_field is refered to name the field or scope how you used to relationated the entity with the file or files included in the instance to save. Examples: If a new post used a file image called "foto.jpg" and Post entity has a field called "image\_id" to refered with this image file, then you self.file\_field\_name = :image\_id Other case, if you don't have a entity to admin files, and you insert a files by their path and the post entity has a field called "path" you self.file\_field\_name = :path. In conclusion, this params is used to search the file when you need to delete it and search the relation with the rest of entities in your model.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
file_manager_engine-0.0.3 | README.md |